Simple shift light

July 2, 2025 · View on GitHub

This telemetry indicator consists of one or two single color LEDs. The LED lights up at maximum torque, then flashes at maximum power, then flashes faster at the rev limiter.

Only one output pin is required.

Hardware design

The circuit is fairly straightforward (choose one or two LEDs, left or right):

Circuit design

  • VLED is wired to the power source. Both 3V3 and 5V will work in this case.
  • SLPin is wired to an output-capable GPIO pin. This pin will work in open drain mode.

Components required:

  • One or two single color LEDs. Forward voltage ( VFV_F ) must not exceed 3.2 volts if you are wiring VLED to 3V3. Red color is recommended ( VF=1.6V_F=1.6 ).
  • One or two 500 ohm or higher resistors. 1 K-ohm is recommended. Lower impedance may damage your DevKit board. High impedance will result in dimmer lights.

See at falstad.com

Firmware customization

The involved class is SimpleShiftLight. Pass the SLPin as parameter to the constructor. For example:

ui::add<SimpleShiftLight>(GPIO_NUM_40);

See the corresponding integration test for an example.

Notifications

  • On startup:

    The LED will flash faster and more times the lower the battery charge for one and a half seconds. If there is no battery or the battery is fully charged, it will light up without flashing.

  • On connection:

    The LED will flash twice.