Skip to main content

HAT+

12 V power and CAN master board for the Raspberry Pi 5. An ESP32 on the HAT runs the CAN master firmware; the Pi talks to it over serial, or joins the CAN bus itself through an MCP2515.

v1v2 (Rev D)
ESP32ESP32-WROOM-32EESP32-WROOM-32E
ESP32 CAN TX / RXGPIO17 / GPIO18GPIO17 / GPIO18
Pi-side CANMCP2515 on SPI0 CE0, INT GPIO12MCP2515 on SPI0 CE0, INT GPIO12, 12 MHz crystal
CAN termination jumperJP1001JP801
CAN activity LED jumperJP1002JP802
Bus power offESP32 GPIO4, Pi GPIO23 (pin 16), E-stopsame, plus E-stop sense on ESP32 GPIO34
Sensors–INA226 (0x46), 2× TMP102 (0x4A, 0x4B)
Bus connectorJST-XH 4 "12V+CAN" (plus a "5V+I2C" XH)J102, JST-XH 4: 1 GND, 2 +12 V switched, 3 CAN_H, 4 CAN_L

Both run the firmware env UC2_canopen_master: CAN master, node 1, serial 921600 baud via USB-C (CP2102) or the Pi UART (pins 8/10).