Full credit for the idea goes to Jeremy Harris over on ES, a very clever, helpful and all round decent chap. ES thread:
Endless-sphere.com • View topic - Simple ebike 'fuel gauge'
This sounded such a good idea and something I’ve been looking for on my Peugeot, so I decided to give it a try.
The display is a 9 segment LCD ‘analogue meter’ set to give a visual readout of remaining battery capacity and instantaneous current draw readout. Full scale meter deflection (FSD) is set for 30amps and total battery use is set for 10Ah batteries. The unit utilises a Picaxe-08m microprocessor and Jeremy has provided the code / program needed to make it all work. The code can be tweaked to support other capacities up to about 18Ah. Max voltage is around 65v. A reset switch is included to reset the Ah accumulated counter.
Using Jeremy’s cct diagram I laid everything out on some copper strip board, the layout worked first time to my surprise but the board is a little big, as you will see later it only just fitted inside the controller...I did consider fitting it externally but managed in the end to squeeze it in.
The display mounts on the handle bar in a neat small box from Maplin and includes a switch to flick between the two display modes. A small resistor network (potential divider) is needed to limit the meter input voltage to just under 1v for FSD, I ended up with 58K in line and 18K to ground
Just 4 wires are needed to connect the meter and I used the USB cable form an old Microsoft Mouse! I drilled the cable hole off-centre to miss the handlebars and the meter itself was also off set in the box to proved room.
Endless-sphere.com • View topic - Simple ebike 'fuel gauge'
This sounded such a good idea and something I’ve been looking for on my Peugeot, so I decided to give it a try.
The display is a 9 segment LCD ‘analogue meter’ set to give a visual readout of remaining battery capacity and instantaneous current draw readout. Full scale meter deflection (FSD) is set for 30amps and total battery use is set for 10Ah batteries. The unit utilises a Picaxe-08m microprocessor and Jeremy has provided the code / program needed to make it all work. The code can be tweaked to support other capacities up to about 18Ah. Max voltage is around 65v. A reset switch is included to reset the Ah accumulated counter.
Using Jeremy’s cct diagram I laid everything out on some copper strip board, the layout worked first time to my surprise but the board is a little big, as you will see later it only just fitted inside the controller...I did consider fitting it externally but managed in the end to squeeze it in.

The display mounts on the handle bar in a neat small box from Maplin and includes a switch to flick between the two display modes. A small resistor network (potential divider) is needed to limit the meter input voltage to just under 1v for FSD, I ended up with 58K in line and 18K to ground

Just 4 wires are needed to connect the meter and I used the USB cable form an old Microsoft Mouse! I drilled the cable hole off-centre to miss the handlebars and the meter itself was also off set in the box to proved room.

Last edited: