Introduction: Measure of Assistance Given by SUGG Electric Bike

I want to know how much my assisted SUGG bike help me.

The only solution i think is to measure the current from the battery.

Happily, the connectors are standard (XT60E) , so it is easy to put a sensor in the power line.

So: current sensor, converter, and display showing

  1. Percent of full power and percent delta power
  2. Thermometer style percent
  3. Measured current, computed power
  4. Autoshutdown with displayed time to off and last x seconds 'thermo' and numeric display countdown.
  5. Demo mode ..

The shutdown is done when delta between max and min usage drop below a preset value ( std 0.5 A) for more than 'TimeOutmills'

The mean of current is updated every 'DampingDurmills' ms.

In addition, the 37V converter give 2 USB ports.


WARNING: I burn two converter, on by short-circuit (my fault) but the other simply when charging my smartphone: It seems that the 'Thermal shutdown and current-limit protection' on the LM2596 is not efficient.

So it is probably better to not use USB outputs.


Contact me for more informations.

Supplies

Current sensor hall effect :

https://www.gotronic.fr/art-capteur-de-courant-12-5-a-mr392-25747.htm

XT60E connectors:

https://www.aliexpress.com/item/1005007526349818.html

OLED 128x64 SSD1306:

https://www.aliexpress.com/item/32896971385.html

NodeMCU esp8266 (with CP2102)

https://www.aliexpress.com/item/33053690164.html

DC6..40V to 2 x USB :

https://www.aliexpress.com/item/1005008854445547.html

.stl for SSD1306 displaycase for handle bar:

https://github.com/openbikesensor/OpenBikeSensor3dPrintableCase/tree/main/export/Mounting


( As the handlebar display from the OBS project fit perfectly the function, i re-use it )

Step 1: Schematics

The schematic is really straigforward, the SSD1303 is directly connected to the NodeMCU, and the A0 is used to get the analog measure from the current sensor.

I put a selection entry jumper and potentiometer on the board to be able to check the circuit on the bench.

The circuit is cabled on a proto board. Yes, i need to increase my drawings skills ...