Skip to content

LED Debugging Guide (WIP)

tan7271 edited this page Apr 3, 2024 · 1 revision

-Note:

All LEDs are checked by an interrupt every 50ms. After 3 calls to the interrupt, (150 ms), any LED that is on turns off.

There are 3 LEDs on the General Purpose Motor Board:

  1. Error_LED
  • Turns on whenever an error code is trying to be displayed
  • FAULT_MOTOR Pin is turned on (NEED TO IMPLEMENT).
  1. Debug_1
  • This happens when:
  • Motor Unit sets PWM when not in PWM mode
  • PID values are trying to be set when not in PID mode
  1. CAN_LED (NEED TO IMPLEMENT):
  • Turns on when:
  • Can Packet with non-valid ID is received.
Clone this wiki locally