AstroCAN AutoDome

AstroCAN AutoDome

Connectors

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

CAN-Bus

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

2

AstroBus

6-pin connector for specific module mounts

3

Power Supply

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

!Check polarity!

4

JTAG-Connector

Debugging Interface, Developers only.

5

I2C Connector

I2C Port for connecting other dome modules.

6

Power Supply from Motor Driver

See wiring instruction for details. Do not just connect constant voltage!!!

7

Dome Motor Connector

Pin header to connect your Dome Motor with built-in encoder.

8

Center Sensor Connector

Connect your position sensor here. Can be a microswitch, an optical switch or a hall sensor. Recommended to install at center position.

9

ESP32 Dev Kit V4

ESP32 Dev Kit V4

10

WIFI/NOW-Antenna

Do not cover with metallic case etc.

11

Connector Motor Driver

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

12

Serial Connector Syren Motor Driver

Serial communication from Shadow to Syren. See wiring below.

13

Serial Connector PID-Tune

Interface for communication with serial monitor for PID tuning.

14

CAN-Bus

Can-Bus pin header

15

CAN-Bus Terminator

CAN-Bus Terminator

16

Reset Button

Press to restart module

17

USB-Connector

Connector for flashing and configuring your device.

18

Pair / Boot Button

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

AstroCAN AutoDome Connectors
HotspotFunctionDescription
1CAN-BusCAN-Bus Pin Header
2AstroBus6-pin connector for specific module mounts
3Power Supply, 5.0VPower Supply, 5.0V. Important: 5V ONLY! Otherwise you will damage your board.
4JTAG-ConnectorDebugging Interface, Developers only
5I2C ConnectorI2C Port for connecting other dome modules.
6Power Supply from Motor DriverSee wiring instruction for details. Do not just connect constant voltage!!!
7Dome Motor ConnectorPin header to connect your Dome Motor with built-in encoder.
– M- : Motor Power Supply –
– VCC : 5V Encoder Supply
– C2 : Encoder Pin 2
– C1 : Encoder Pin 1
– GND : Encoder Ground
– M+ : Motor Power Supply +
8Center Sensor ConnectorCenter Sensor Connector

Connect your position sensor here. Can be a microswitch, an optical switch or a hall sensor. Recommended to install at center position, but can be installed anywhere below gear ring.
GND – Sensor Ground
SIG – Sensor Signal
5V – Sensor Power Supply

9ESP32 Dev Kit V4ESP32 Dev Kit V4 (in case you have to replace it…)
10WIFI/NOW-Antenna
Do not cover with metallic case etc.
11Connector Motor DriverConnector for IBT2 Motor Driver (or similar). See pinout below.
12Serial Connector Syren Motor DriverSerial communication from Shadow to Syren. See wiring examples below.
13Serial Connector PID-TuneInterface for communication with serial monitor for PID tuning. See PID-Tuning for Details
14CAN-BusCan-Bus Screw Terminal. Same as CAN-Bus Pin Header
15CAN-Bus TerminatorCAN-Bus Terminator. See CAN Termination for Details
16Reset ButtonPress to restart module
17USB-ConnectorConnector for flashing and configuring your device
18Pair / 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!

JTAG

Dome 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-AutoDome. 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 AutoDome 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
/NOWSETBRAINMAC Address in xx:xx:xx:xx:xx:xx formatset ESP-NOW brain/body peer address/NOWSETBODY 01:23:45:67:89:AB
/SETMINSPEEDspeedset minimum dome rotation speed 0-100 (speed in percent)/SETMINSPEED 50
/SETINITSPEEDspeedset dome initialization rotation speed 0-100 (speed in percent)/SETINITSPEED 70
/SETAUTOINIT[0|1]dome autoinit at startup 0=no / 1=yes/SETAUTOINIT 1
/CALIBRATE[ALL|SPEED|STEPS]start calibration test(s):
ALL – minimal speed + steps per 360 deg
SPEED – minimal speed test only
STEPS – steps per 360 deg only
/CALIBRATE ALL
/INITDOMEinitialize dome position and turn to start position/INITDOME
/ROTATEspeedrotate dome motor at speed -100 to 100 (speed in percent). 0 to stop./ROTATE -50
/TURNdegrees + speedturn dome motor by degrees at speed 0 to 100 (speed in percent)./TURN 45 100
/POSITIONdegrees + speedmove dome motor to absolute position degrees (0-365) at speed -100 to 100 (speed in percent)./POSITION 180 -100
/SPOSITIONdegrees + speedmove dome motor to absolute position degrees (0-365) at speed 0 to 100 (speed in percent), shortest way./POSITION 270 50
/SETPdoubleset P value for PID tuning/SETP 0.3
/SETIdoubleset I value for PID tuning/SETI 0.0
/SETDdoubleset D value for PID tuning/SETD 0.0
/SETFRONTstores the current position as front looking position/SETFRONT
/SETAUTOMOVE[0|1]random dome movement/SETAUTOMOVE 1
/SETAUTOMAXDEGdegreesrandom dome movement, max degrees/SETAUTOMAXDEG 90
/SETAUTOMINDEGdegreesrandom dome movement, min degrees/SETAUTOMINDEG -90
/SETAUTOMAXSPEEDspeedrandom dome movement, max speed/SETAUTOMAXSPEED 80
/SETAUTOMINSPEEDspeedrandom dome movement, min speed/SETAUTOMINSPEED 35
/SETAUTOMAXTIMEmillisecondsrandom dome movement, max time between movements/SETAUTOMAXTIME 12000
/SETAUTOMINTIMEmillisecondsrandom dome movement, min time between movements/SETAUTOMINTIME 4000

Settings

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

AstroCAN AutoDome 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
MinSpeedMinimum dome rotation speed (0-100), speed in percent35/SETMINSPEED
InitSpeedDome initialization rotation speed (0-100), speed in percent50/SETINITSPEED
SpeedFactorCalibration factor for dome rotation direction. Calibrated automatically.1
MotorRangeNumber of steps for a 360 deg turn, center sensor not active. Calibrated automatically.1800
CenterRangeNumber of steps for a 360 deg turn, center sensor active. Calibrated automatically.30
POS_FrontFront looking position300/SETFRONT
AutoInitDome autoinit at startup, 0=no / 1=yes0/SETAUTOINIT
PID_PP value for PID tuning0.300000/SETP
PID_II value for PID tuning0.000000/SETI
PID_DD value for PID tuning0.000000/SETD
PeersDescriptionExampleConfiguration
PeerMAC-Adress of ESP-NOW communication partner, not used in autodome module12:34:56:78:9A:BC/NOWSETPEER
Brain/BodyMAC-Adress of ESP-NOW communication partner placed in body12:34:56:78:9A:BC/NOWSETBRAIN
AutoMoverandom dome movementtrue/SETAUTOMOVE
AM_MaxDegrandom dome movement, max degrees90/SETAUTOMAXDEG
AM_MinDegrandom dome movement, min degrees-90/SETAUTOMINDEG
AM_MaxSpeedrandom dome movement, max speed80/SETAUTOMAXSPEED
AM_MinSpeedrandom dome movement, min speed35/SETAUTOMINSPEED
AM_MaxTimerandom dome movement, max time between movements, in ms12000/SETAUTOMAXTIME
AM_MinTimerandom dome movement, min time between movements, in ms4000/SETAUTOMINTIME

F.A.Q – AstroCAN AutoDome

What is it?

The AstroCan AutoDome provides precise dome positioning. Optionally it replaces the Syren10 motor controller by a simple H-Bridge motor controller like the BTS7960. If you already own the Syren10, it can be used in place of the BTS7960. See wiring examples for details.

This is all you need:
  • a dome motor with encoder (such as the JGB37-520 with a Hall encoder), 100% compatible to the existing solution (ca. $10)
  • a simple switch (photoelectric barrier, or hall sensor or even a simple microswitch)
You do not have to modify anything of your standard Michael Baddeley built. Just replace the motor and find a place for the module. (I’d recommend using Gonz Pousada J Luis motor mount modification https://www.facebook.com/reel/674742714720239) and add something to the dome gear that activates the switch at a specific position (mount examples will follow at release date).

Features

  • AstroCAN extension module
  • ESP-NOW Wireless Comm (serial, Canbus, I2C)
  • Support for existing Syren 10 motor controller
  • JTAG-Live Debugging
  • Status Leds for serial & CanBus transmission
  • Plug and Play for existing systems. Just connect it to existing droid control system (Shadow, Padawan…) which uses Syren/Sabertooth motor controllers
  • Syren simulation. Just use a cheap standard motor controller (e.g. IBT-2) if you like, the AstroCAN module will be able to understand the serial protocol. No need for Syren motor controller any more.
  • Auto-Calibration, Auto-Adjustment on startup, move to position, move by degrees
  • PID based motor positioning

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.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-AutoDome download

OTA-Upgrade (Firmware 2.5 and greater)

Firmware AstroCAN-AutoDome

Fileystem AstroCAN-AutoDome

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.0.2 (01. January 2025)

Bugfixes

Features

  • based on recent AstroCAN Toolkit
  • added auto-movement

Version 1.0.1 (30. July 2024)

Bugfixes

Features

  • First official release