
Bike logger
MedadRufus/MastersProject
This project does data analysis of parameters from an E bike, in order to do accurate range estimations.

This project does data analysis of parameters from an E bike, in order to do accurate range estimations.
Current voltage sensor is an open-source printed circuit board by MedadRufus, from the MedadRufus/MastersProject repository on GitHub, published under the MIT licence. It is a 2-layer board of 29.2 × 16.5 mm with 11 parts on 10 nets, routed with 9 tracks and 0 vias.
It is built around the LTC4151IMS. Its parts include 3 resistors, 3 connectors and 1 IC. It belongs with the sensors and measurement boards of this library.
Design a data logger for E bikes that can record:
It needs to
The idea is to see how estimate battery discharge profiles to do accurate range and state of charge estimations.
Hardware ideas:



The following commands must be run as workarounds on the eBike Blackbox.
On the PCB, the MTDI pin, IO12, is connected to the SD card MISO pin. In order to boot up, IO12 must be held low. Otherwise, it will brownout.
Some explanation can be found on the documentation.
If driven High, flash voltage (VDD_SDIO) is 1.8V not default 3.3V. Has internal pull-down, so unconnected = Low = 3.3V. May prevent flashing and/or booting if 3.3V flash is used and this pin is pulled high, causing the flash to brownout. See the ESP32 datasheet for more details.Unfortunately, when SD card is inserted, MISO pin gets pulled up, causing continuous resets(boot loop).
So to disable this strapping function, we need to set the efuses to disable its functionality.
So we need to install esptool. On windows 10, using conda terminal, run:
pip install esptoolThen run the following command to actually set the fuses. Set the -p argument to the port your esp32 is connected to.
python -m espefuse set_flash_voltage 3.3V -p COM6You should be done now!
References:
https://www.esp32.com/viewtopic.php?t=5970
https://forum.micropython.org/viewtopic.php?t=4387#p25381
| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 2K | Resistor_SMD:R_0402_1005Metric | R2, R3 |
| 2 | Conn_01x01 | TerminalBlock_TE-Connectivity:TerminalBlock_TE_282834-2_1x02_P2.54mm_Horizontal | J2, J3 |
| 2 | SolderJumper_3_Open | Jumper:SolderJumper-3_P2.0mm_Open_TrianglePad1.0x1.5mm_NumberLabels | JP1, JP2 |
| 2 | TestPoint | TestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mm | TP1, TP2 |
| 1 | 0.02 ohm | Resistor_SMD:R_Shunt_Ohmite_LVK25 | R1 |
| 1 | Conn_01x04 | Connector:NS-Tech_Grove_1x04_P2mm_Vertical | J1 |
| 1 | LTC4151 | Package_DFN_QFN:DFN-10-1EP_3x3mm_P0.5mm_EP1.55x2.48mm | U1 |

MedadRufus/MastersProject
This project does data analysis of parameters from an E bike, in order to do accurate range estimations.


Lafayette-FSAE/PacMan
A KiCad Schematic for PacMan, a Accumulator Management Board for the Lafayette FSAE Accumulator Management System


google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards


FrameworkComputer/ExpansionCards
Reference designs and documentation to create Expansion Cards for the Framework Laptop

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
It measures 29.2 × 16.5 mm and has 2 copper layers, 1.6 mm thick.
11 parts, built around the LTC4151IMS. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the MedadRufus/MastersProject repository on GitHub, at the commit this page was made from: the board is Bike_logger/pcb/current_voltage_sensor/current_voltage_sensor.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).