i recently had to much free time and therefore started to built a RGB LED controller for my E-Longboard.
First off i simply built an normal controller with allowed me to set static Colors and let the LEDs fade in different patterns and speeds. But then a friend of mine had an idea why not let the throttle you give the Board also control the LEDs.
Therefore i added two new modes:
The throttle controls the fade speed. More throttle --> faster fade
The throttle controls the Color of the LEDs.
When the throttle is in the idle position the LEDs are Blue when you start to accelerate they fade from blue to green and
finally to red when you maxed out the throttle.
Here you can the the controller which uses an Arduino Mini and 3 N-Channel MOSFETs. You can also see the RGB strip which is temporary mounted with Duct tape
I then also got the idea to add an fourth MOSFET to control a LED break light. Since i already got the throttle value for the RGB modes i simply had to add 5 extra lines and got a nice break light. The IR-Receiver is mounted in the cutout for the trucks, so it is easy to reach while standing on the board.