Skip to content

802. IronMaple ESP32‐FRC‐devkit function test code

Nathan zhou edited this page Sep 8, 2025 · 6 revisions

Peripheral test

https://github.com/sikaxn/FRC-Custom-CAN-Sensor/tree/dev-board/pcb/factory-fw/seal_rgb

IO0 button will toggle relay on off

IO17 button will toggle different LED colour.

Peripheral test with CAN

https://github.com/sikaxn/FRC-Custom-CAN-Sensor/tree/dev-board/pcb/full-demo-fw

Protocol:

roboRIO -> ESP32
  0x185 : [R, G, B, relay_bool, 0,0,0,0]
ESP32 -> roboRIO
  0x195 : [ain_lo, ain_hi, btnA, btnB, 0,0,0,0]
  0x196 : [reset_device, 0,0,0,0,0,0,0] 

Python test script

image

https://github.com/sikaxn/FRC-Custom-CAN-Sensor/blob/dev-board/pcb/demo-fw-comm.py

Python script can be used to simulate roboRIO. CAN adapter supporting python-CAN is needed.

Clone this wiki locally