AstroCAN 232

AstroCAN 232

Connectors

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
1

Connector Motor Driver Main Legs

Connector for IBT2 Motor Driver (or similar). See pinout below.

2

Connector Motor Driver Center Leg

Connector for IBT2 Motor Driver (or similar). See pinout below.

3

Pin Header Endstops Main Leg

Pin header for end stop Main Legs (Front/Back), Low Active.

4

I2C Connector

I2C Port for connecting other dome modules.

5

Pin Header Endstops Center Leg

Pin header for end stop Main Legs (Up/Down), Low Active.

6

CAN-Bus

Can-Bus pin header

7

CAN-Bus Terminator

CAN-Bus Terminator

8

CAN-Bus

Can-Bus Screw Terminal. Same as CAN-Bus Pin Header.

9

AstroBus

6-pin connector for specific module mounts

10

Power Supply

Important: 5V ONLY! Otherwise you will damage your board.

!Check polarity!

11

USB-Connector

Connector for flashing and configuring your device.

12

JTAG-Connector

Debugging Interface, Developers only.

13

ESP32 Dev Kit V4

ESP32 Dev Kit V4

14

Pair / Boot Button

Hold for 3s to start ESP-Now-Pairing (see documentation for details)

15

Reset Button

Press to restart module

16

WIFI/NOW-Antenna

Do not cover with metallic case etc.

17

Connector 4-Channel Remote Control

Connector for a 4-Channel Remote Control. See original Troy Flynn documentation for Details.

AstroCAN Bridge Connectors
HotspotFunctionDescription
1Dome JumperSet jumper, when bridge is placed in dome and receives commands from the body.
2WIFI JumperSet jumper, if you like to control your dome mechanisms with the R2-Touch App. Only one module in your droid should have this jumper set.
3Free GPIOsreserved for future use
4I2C ConnectorI2C Port for connecting other dome modules.
5Serial ConnectorIn DOME-Mode:
– Connect RXD to MarcDuino MP3 pin
– Connect TXD to MarcDuino Master RX

In BODY-Mode:
– Connect RXD to ATMEGA Serial2 TXD
– Connect TXD to MP3 Trigger RX

6CAN-BusCAN-Bus Pin Header
7CAN-Bus TerminatorCAN-Bus Terminator. See CAN Termination for Details
8CAN-BusCan-Bus Screw Terminal. Same as CAN-Bus Pin Header
9AstroBus6-pin connector for specific module mounts
10Power Supply, 5.0VPower Supply, 5.0V. Important: 5V ONLY! Otherwise you will damage your board.
11USB-ConnectorConnector for flashing and configuring your device
12JTAG-ConnectorDebugging Interface, Developers only
13ESP32 Dev Kit V4ESP32 Dev Kit V4 (in case you have to replace it…)
14Pair / Boot ButtonHold for 3s to start ESP-Now-Pairing. Bridge module has to be connected to AstroCAN Shield / AstroCAN Brain via CAN-Bus to get paring information!
15Reset ButtonPress to restart module

JTAG

Motor Driver Pinout

Pin compatible to IBT-2 Motor Driver.

AstroBus (TOP VIEW!)

654321
+5VGNDn/cCANLCANHn/c

Commands

Use serial terminal to connect via USB (see above) to AstroCAN-Module. If your browser supports “Web Serial”, you also can use the terminal available in the Firmware section. Communication speed ist 115200 baud. The following commands are available for configuration and management:

AstroCAN 232 Commands
CommandParametersDescriptionExample
/HELP–shows usage/HELP
/SETTINGS–shows all settings stored in EEPROM/SETTINGS
/WIFIAPSSIDAP SSIDsets the access point SSID/WIFIAPSSID R2TOCH
/WIFIAPPASSWORDAP Passwordsets the access point password/WIFIAPPASSWORD R2TOUCH123
/WIFISSIDWIFI SSIDsets the WLAN SSID/WIFISSID HOMELAN
/WIFIPASSWORDWIFI Passwordsets the WLAN Password//WIFIPASSWORD HOMELAN123
/PAIR–auto pair module with ESP-NOW peer (connect both modules to CAN for pairing)

Pairing mode depends on Dome jumper. When in dome mode, it looks for brain/shield module. When in body mode, it looks for bridge module.

/PAIR
/NOWLMK16 byte keysets the local master key for ESP-NOW communication. See -> ESP-NOW encryption for details./NOWLMK 0123456789ABCDEF
/NOWPMK16 byte keysets the primary master key for ESP-NOW communication. See -> ESP-NOW encryption for details./NOWPMK 0123456789ABCDEF
/NOWCHANNELChannelsets the ESP-NOW channel number/NOWCHANNEL 5
/NOWSETPEERMAC Address in xx:xx:xx:xx:xx:xx formatset ESP-NOW communication peer MAC address/NOWSETPEER 01:23:45:67:89:AB
/NOWCLEARPEERS–clear all ESP-NOW communication peers/NOWCLEARPEERS
/NOWLISTPEERS–list all ESP-NOW communication peers/NOWLISTPEERS
/RESTART–restart module/RESTART
/FACTORY–set factory settings and restart module. All EEPROM settings will also be set to default./FACTORY
/ACTIVATECAN|CAN1|CAN2|NOW|WIFI|ENCacticate CAN-/NOW-/WIFI-Functionality or ESP-NOW encryption. CAN1/CAN2 only available on Dual-CAN-Boards./ACTIVATE CAN
/DEACTIVATECAN|CAN1|CAN2|NOW|WIFI|ENCdeacticate CAN-/NOW-/WIFI-Functionality or ESP-NOW encryption. CAN1/CAN2 only available on Dual-CAN-Boards./DEACTIVATE CAN
/NOWSETBRAINMAC Address in xx:xx:xx:xx:xx:xx formatset ESP-NOW brain peer address/NOWSETBRAIN 01:23:45:67:89:AB
/232[2|3|4]232 positions:
2 – Two Legs, straight
3- Three Legs
4- Three Legs, straigth
/232 2
/MOVE[UP|DOWN|FRONT|BACK] speed timemove center motor or main legs at “speed” (im percent) for “time” (in milliseconds)/MOVE UP 100 2000

HANDLE WITH CARE, DROID MIGHT BECOME INSTABLE!

/REMOTE[0|1]allow 4-channel remote control for 232 (security risk!)/REMOTE 1

Settings

Use serial terminal to connect via USB (see above) to AstroCAN-Module. Communication speed ist 115200 baud. The following settings can be configured (see command set above):

AstroCAN 232 Settings
SettingDescriptionExampleConfig Command
MACMAC Address of ESP3212:34:56:78:9A:BCfix, not configurable
AP_SSIDName of the access point network, the AstroCAN module opens up to get connected by apps like R2-TouchR2TOUCH/WIFIAPSSID
AP_PasswordPassword of the Access point network.R2TOUCH123/WIFIAPPASSWORD
WLAN_SSIDName of the WLAN the AstroCAN module can connect to, to be controlled by other systems within that networkHOMELAN/WIFISSID
WLAN_PasswordPassword of the WLAN the AstroCAN module can connect to.HOMELAN123/WIFIPASSWORD
NOW_PMKESP-NOW encryption parameter: Primary Master Key. See -> ESP-NOW encryption for details.

Only change, if you exactly know, what you are doing!

0123456789ABCDEF/NOWPMK
NOW_LMKESP-NOW encryption parameter: Local Master Key. See -> ESP-NOW encryption for details.

Only change, if you exactly know, what you are doing!

0123456789ABCDEF/NOWLMK
NOW_ChannelWIFI channel to be used for ESP-NOW communication. All ESP-NOW peers have to communicate over the same channel number5/NOWCHANNEL
CAN1_ActiveShows, if main CAN bus is activetrue – activated
false – deactivated
/ACTIVATE CAN
/ACTIVATE CAN1

/DEACTIVATE CAN
/DEACTIVATE CAN1

CAN2_ActiveShows, if secondary CAN bus is activetrue – activated
false – deactivated
/ACTIVATE CAN2
/DEACTIVATE CAN2
NOW_ActiveShows, if ESP-NOW is activetrue – activated
false – deactivated
/ACTIVATE NOW
/DEACTIVATE NOW
WIFI_ActiveShows, if WIFI is activetrue – activated
false – deactivated
/ACTIVATE WIFI
/DEACTIVATE WIFI

or

WIFI jumper

NOW_EncryptionShows, if ESP-NOW encryption is active. See -> ESP-NOW encryption for details.true – activated
false – deactivated
/ACTIVATE ENC
/DEACTIVATE ENC
232_Remoteallow 4-channel remote control for 232 (security risk!)1/REMOTE
JumpersDescriptionExampleConfiguration
Dome/Body ModeDOME jumper set: Dome Mode
DOME jumper removed: Body Mode
WIFI_ActiveShows, if WIFI is activetrue – activated
false – deactivated
WIFI jumper set: WIFI activated
WIFI jumper removed: WIFI deactivated
PeersDescriptionExampleConfiguration
PeerMAC-Adress of ESP-NOW communication partner, not used in bridge module12:34:56:78:9A:BC/NOWSETPEER
DomeMAC-Adress of ESP-NOW communication partner place in dome12:34:56:78:9A:BC/NOWSETDOME
BodyMAC-Adress of ESP-NOW communication partner place in body12:34:56:78:9A:BC/NOWSETBODY

F.A.Q – AstroCAN 232

What is it?

This is a module compatible with Troy Flynn’s 232 solution. The mechanics and the motor drivers remain identical, only the AT-Mega is exchanged for the new module based on ESP32 including CAN.

Features

  • ESP-NOW Wireless Module<->Brain Comm (serial, Canbus, I2C)
  • CAN-Bus for upcoming CAN-enabled Astromech Devices
  • JTAG-Live Debugging
  • Status Leds for serial & CanBus transmission

The ESPNow system is exclusively utilized for connecting the AstroCAN modules. It efficiently transfers all CAN signals and one serial interface between the dome and body through ESPNow.

All modules adhere to a standardized size and possess an identical “Astrobus” interface. This uniformity enables secure mounting onto the electronics board without the need for extensive wiring. However, the use of the Astrobus is not mandatory, and traditional free-floating wiring can be used if preferred.

Best Practice – Wiring

Firmware Installer

To install most recent firmware V2.0.0 connect the AstroCAN module via USB to your computer and click on “Connect” button.

Attention: When upgrading one module to V2.x, you have to upgrade ALL other AstroCAN-Modules to V2.x!

Firmware Download

ESP-Tool-Upgrade

The firmware has been compiled using esptool, ready to flash to offset 0x00.

Firmware AstroCAN-232 download

OTA-Upgrade (Firmware 2.5 and greater)

Firmware AstroCAN-232

Fileystem AstroCAN-232

Read HowTo – Upgrade to V2.5 before upgrading!

Revision History

Version 2.5.6 (03. August 2025)

Bugfixes

  • –

Features

  • All new upgrade including OTA update with WebServer

Attention: When upgrading one module to V2.x, you have to upgrade ALL other AstroCAN-Modules to V2.x!

Version 2.0.0 (27. January 2025)

Bugfixes

  • Invalid member initialization

Features

  • based on updated AstroCAN Toolkit
  • Support for MCP2517/MCP2518/MCSP2818FD CAN Protocols

Attention: When upgrading one module to V2.x, you have to upgrade ALL other AstroCAN-Modules to V2.x!

Version 1.5.4 (05. January 2025)

Bugfixes

  • typos

Features

  • added remote control handling
  • updated to recent AstroCAN toolset