As discussed in the previous post, my goals to put a microcontroller programmed with Arduino on electric bike they were:
- With an RGB LED display the charge / status of the battery monitoring one of the (weaker if possible) cells, to avoid surprises of not having enough charge for the trip the next day, showing orange when needed recharging (between 20 and 40%).
- With an accelerometer and a powerful piezoelectric speaker (and a mosfet to activate) we can add an anti-theft alarm, easy disabled with a button hidden from view, which is very handy against foreign's friends.
- And even (this slope time), add light automatic brake using the accelerometer (which changes from low intensity to high intensity when the accelerometer receives a deceleration in the axis of the fly), to keep usage statistics (number of refills, airtime, or adding small OLED display to show instant consumption in Ah with a Hall sensor (such as Allegro ACS75x, etc), battery charging, etc.
So this Christmas I could get down to work, and start to test in a breadboard to get something functional: