AstroCAN Pro Dual Shield

AstroCAN Dual Mega Shield Pro

Connectors

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
1

CAN-Bus #1

CAN-Bus #1 Screw Terminal. Same as CAN-Bus #1 Pin Header.

2

CAN-Bus #2

CAN-Bus #2 Screw Terminal. Same as CAN-Bus #2 Pin Header.

3

CAN-Bus #1

CAN-Bus #1 Pin Header.

4

CAN-Bus #2

CAN-Bus #2 Pin Header.

5

CAN-Bus #1 Terminator (J1)

CAN-Bus #1 Terminator

6

CAN-Bus #2 Terminator (J2)

CAN-Bus #2 Terminator

7

DF-Mini MP3-Player

MP3-Player. Place SD-Card with Astromech-Sounds.

8

Audio Jack

Stereo audio jack. Connect to your amplifier.

9

Audio Signal

Audio Signal Pin-Header

10

Serial Screw Connectors

Connections to Dome-Controller, Motor Controllers and Body-Controllers.

11

I2C Screw Connector

I2C bus screw connector. Used to connect additional modules.

12

I2C Pin Header

I2C pin header. Used to connect additional modules.

13

Power Supply, 12V

Important: 7-12V ONLY! Otherwise you will damage your board.

14

5V Power Supply for ATMega

Jumper to provide 5V power from Shield to ATMega. Recommended to leave open!

16

12V Power Supply for ATMega (J5, recommended)

Jumper to provide power from Shield to ATMega. Don’t use separate power supply at ATMega board, then!

17

Arduino Mega Free GPIOs

reserved for future use

18

12V to 5V

12V to 5V step down module.

19

MP3-Connector (J6)

Closed: Use onboard DF-Mini-Player

Opened: fork communication to external sound modul

20

ESP32 GPIOs

reserved for future use

21

JTAG-Interface

Developers only

22

Reset Button

Press to restart module

23

USB-Connector

Connector for flashing and configuring your device.

24

Pair / Boot Button

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

25

WIFI/NOW-Antenna

Do not cover with metallic case etc.

26

USB-Host-Connector (below antenna)

Insert your Bluetooth-Token here

27

ESP32 Dev Kit V4

ESP32 Dev Kit V4

AstroCAN Shield Connectors
HotspotFunctionDescription
1CAN-Bus #1CAN-Bus #1 Screw Terminal. Same as CAN-Bus Pin Header
2CAN-Bus #2CAN-Bus #2 Screw Terminal. Same as CAN-Bus Pin Header
3CAN-Bus #1CAN-Bus #1 Pin Header
4CAN-Bus #2CAN-Bus #2 Pin Header
5CAN-Bus #1 TerminatorCAN-Bus #1 Terminator. See CAN Termination for details.
6CAN-Bus #2 TerminatorCAN-Bus #2 Terminator. See CAN Termination for details.
7DF-Mini MP3-PlayerMP3-Player. Place SD-Card with Astromech-Sounds.
8Audio JackStereo audio jack. Connect to your amplifier.
9Audio SignalAudio Signal Pin-Header
10Serial Screw ConnectorsTX1: Connection to Dome-Controller
TX2: Connection to Motor Controllers
TX3: Connection to Body-Controller
11I2C Connector Screw ConnectorI2C Port for connecting other dome modules.
12I2C Connector Pin HeaderI2C Port for connecting other dome modules.
13Power Supply, 12.0VPower Supply, 12.0V. Important: 7-12V ONLY! Otherwise you will damage your board.
145V Power Supply for ATMegaJumper to provide 5V power from Shield to ATMega. Recommended to leave open!
15
1612V Power Supply for ATMega (recommended)Jumper to provide power from Shield to ATMega. Don’t use separate power supply at ATMega board, then!
17Free ATMega GPIOsreserved for future use
18Power Converter12V to 5V step down module.
19MP3-Connector
Closed: Use onboard DF-Mini-Player

Opened: fork communication to external sound modul

20Free ATMega GPIOsreserved for future use
21JTAG-ConnectorDebugging Interface, Developers only
22Reset ButtonPress to restart module
23USB-ConnectorConnector for flashing and configuring your device
24Pair / 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!
25WIFI/NOW-AntennaDo not cover with metallic case etc.
26USB-Host-Connector (below antenna)Insert your Bluetooth-Token here
27ESP32 Dev Kit V4ESP32 Dev Kit V4 (in case you have to replace it…)

JTAG

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 Shield Commands
CommandParametersDescriptionExample
/HELPshows usage/HELP
/SETTINGSshows 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
/PAIRauto 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
/NOWCLEARPEERSclear all ESP-NOW communication peers/NOWCLEARPEERS
/NOWLISTPEERSlist all ESP-NOW communication peers/NOWLISTPEERS
/RESTARTrestart module/RESTART
/FACTORYset 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
/NOWSETDOMEMAC Address in xx:xx:xx:xx:xx:xx formatset ESP-NOW dome peer address (used, if bridge is in body mode)/NOWSETDOME 01:23:45:67:89:AB
/SETSOUNDMP3|DFM|HCRset sound module for testing purpose
MP3 – SparkFun MP3 trigger
DFM – DF Mini Player
HCR – Astromech Vocalizer
/SETSOUND DFM
/PLAY0..255Plays a sound from the SD card/PLAY 255

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 Shield 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
PLAYERConfigured Sound PlayerMP3 – Sparkfun MP3 Trigger
DFM – DF Robot Mini Player
HCR – Astromech Vocalizer
/SETSOUND
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

F.A.Q – AstroCAN Pro Dual Shield

What is it?

The AstroCan Pro Dual Shield can easily be added to existing Shadow MD systems without any additional system adjustments, including software modifications. It serves as the initial entry point into the Astro CAN world and aims to replace the flawed Host-Shield-2.0 models available in the market. This shield combines the capabilities of the CAN bus and the USB mini host shield. For individuals experienced in CAN, the dual-CAN feature allows for the establishment of two separate bus systems with varying speeds to handle different tasks, such as integrating high-speed sensors with either 500kbps or 1Mbps. Additionally, it may also support future CAN-Bus motor controls.

Features

  • Single or Dual-CAN-Bus for upcoming CAN-enabled Astromech Devices
  • Onboard USB-Host-Shield (tested and working!)
  • Onboard DF-Mini-Player (alternative to MP3-Trigger)
  • External Sound Board Support (MP3-Trigger, Vocalizer, etc.)
  • Stable onboard Power Conversion
  • JTAG-Live Debugging
  • R2TOUCH-Support (no need for XBEE)
  • ESP-NOW wireless Communication to any other AstroCAN-Module
  • Screw Terminals for all ShadowMD connections
  • Status Leds for serial & CanBus transmission

Do I need an ATMega 2560 ADK?

No. The USB-Host integrated in the AstroCAN-Shield is tested and working 100%. A standard ATMega 2560 board is fine.

Best Practice – Wiring

Best Practice – Instructions

  1. Do you already have a ShadowMD-based droid?
    • Yes -> Rip off all shields and connections
    • No -> Buy a standard ATMega 2560 board (no ADK needed)
  2. Place the AstroCAN-Shield onto the ATMega board. Check twice, if it is placed the right way and no pins are bent.
  3. Put your USB-Dongle into the USB-Host Connector of the shield
  4. Put your SD card with your droid sound into the Micro-SD-Slot of the DF-Mini-Player
  5. Check orientation of all on board components:
    • USB-Host-Connector -> facing left
    • ESP32-Module Antenna -> facing left
    • DF-Mini-Player, Micro-SD-Slot -> facing left
  6. Check all on-board jumpers. It is assumed, that the Shield is the first module at the CAN bus (see AstroCAN Tech FAQ for details about CAN-bus termination). When not sure, what we are talking about, check the hotspot picture above:
    • J1: set
    • J2: set
    • J5, 12V to Mega: set
    • J6: set, when using on board DF-Mini / not set when using external sound module
  7. Check again, that only the 4 jumpers are set and all pin headers are free and accessable
  8. Connect 12V to the 12V power connector. !CHECK POLARITY TWICE!
  9. Do you use a AstroCAN bridge in the dome?
    • Yes -> be sure, the bridge is properly paired with your shield (see AstroCAN Tech FAQ and HowTo – Pair for details about ESP-NOW pairing). Do NOT connect TX1
    • No -> connect TX1 to your dome servo controller (e.g. MarcDuino Dome Master)
  10. Connect TX2 to your motor controllers (Syren and/or Sabertooth)
  11. Connect TX3 to your body servo controller (e.g. MarcDuino with Body firmware)
  12. Connect the sound jack to your amplifier
  13. (optional, recommended): Connect CAN-bus #1 to your primary CAN-wiring.

Firmware Installer

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

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

Attention 2: Read HowTo – Upgrade to V2.5 before upgrading!

Firmware Download

ESP-Tool-Upgrade

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

Firmware AstroCAN-MegaShield download

OTA-Upgrade (Firmware 2.5 and greater)

Firmware AstroCAN-MegaShield

Fileystem AstroCAN-MegaShield

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.7 (30. July 2024)

Bugfixes

  • serial dispatcher fixed (dome/body routing)
  • upgrade to recent AstroCAN toolkit
  • fixed crash on startup with invalid settings

Features

  • new /SETTINGS command
  • improved logging
  • separate CAN channel handling
  • added sound module testing functions

Version 1.5.2 (14. July 2024)

Bugfixes

  • Bugfix-Version with updated CAN-Toolkit.

Version 1.5.0 (17. May 2024)

  • First official Release