Bike Lamp Controller Software

(Back to the bike lamp project)

The controller software is written in in C++ using AVRC-GCC and the Arduino API. This allows for rapid and powerful open source development. The software handles the input interrupts such as the setting button or the break switch. It also handles PWM dimming and flashing of the front and back light. Lastly, it provides security through the monitoring of the battery using the BQ2013H gas gauge and a low power safety mode which is turned on automatically when the battery's capacity reaches a critical level.

Source Code

The code is currently in progress, but you can obtain a copy of the latest firmware in the repository.

Operation Flowchart

(Back to top)