Skip to the content
2 layers29.2 × 16.5 mmCurrent voltage sensor, the printed circuit board in 3D

Current voltage sensor

MedadRufus/MastersProject2

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

Size
29.2 × 16.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
11
Nets
10
Pads
43
Tracks, vias
9, 0
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
19 Nov 2020
Updated
2 Jul 2021

Overview

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.

Main components

1

README

README.md

MastersProject

Requirements

Design a data logger for E bikes that can record:

It needs to

  • measure: battery current for output and charging(1mA precision), voltage(10mV precision), inclination of road, humidity(as proxy for rain), tempreature of battery, external temperature, e-bike velocity, accleration.
  • run off the battery pack
  • consume minimal power
  • be sturdy enough to survive near the battery pack
  • Measure the environmental values(temperature, humidity) without being affected by the system(e.g. heat from the battery)
  • measure at least 2 weeks of non stop data
  • option to auto upload to the cloud, when connected to wifi.
  • cloud dashboard
  • log data at max data rate of 1 sample per second
  • Needs to handle significant noise in power supply generated by Motor
  • Need to handle inductive currents from motor
  • Needs isolation from motor.

The idea is to see how estimate battery discharge profiles to do accurate range and state of charge estimations.

Hardware ideas:

  • Accleration/tilt from LSM9DS1. Tilt can be measured from sensor fusino on the mcu
  • Processor: ESP32
  • Current sensor: INA226, 500 kHz +/- 30% sample rate. Up to 36V.
  • GPS: Ublox with antenna

Overall System diagram

image

Basic physical design

image

Uses of sensor variables

Picture2

Software development

The following commands must be run as workarounds on the eBike Blackbox.

How to disable strapping pin function of the MTDI pin(IO12)

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.

text
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:

bash
pip install esptool

Then run the following command to actually set the fuses. Set the -p argument to the port your esp32 is connected to.

bash
python -m espefuse set_flash_voltage 3.3V -p COM6

You should be done now!

References:
https://www.esp32.com/viewtopic.php?t=5970
https://forum.micropython.org/viewtopic.php?t=4387#p25381

Parts

11
QtyValueFootprintReferences
22KResistor_SMD:R_0402_1005MetricR2, R3
2Conn_01x01TerminalBlock_TE-Connectivity:TerminalBlock_TE_282834-2_1x02_P2.54mm_HorizontalJ2, J3
2SolderJumper_3_OpenJumper:SolderJumper-3_P2.0mm_Open_TrianglePad1.0x1.5mm_NumberLabelsJP1, JP2
2TestPointTestPoint:TestPoint_THTPad_D2.0mm_Drill1.0mmTP1, TP2
10.02 ohmResistor_SMD:R_Shunt_Ohmite_LVK25R1
1Conn_01x04Connector:NS-Tech_Grove_1x04_P2mm_VerticalJ1
1LTC4151Package_DFN_QFN:DFN-10-1EP_3x3mm_P0.5mm_EP1.55x2.48mmU1

More from MedadRufus/MastersProject

1
  • 2 layers90.2 × 48.3 mmBike logger, the printed circuit board in 3D

    Bike logger

    MedadRufus/MastersProject

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

    108 parts2MIT

Similar boards

  • 2 layersM4psu, the printed circuit board in 3D

    M4psu

    cuspaceflight/m4-avionics

    Martlet 4 Avionics

    246 parts8
  • 2 layers134.6 × 109.2 mmPacMan, the printed circuit board in 3D

    PacMan

    Lafayette-FSAE/PacMan

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

    169 parts1
  • 2 layers60 × 30 mmController, the printed circuit board in 3D

    Controller

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    11 parts3kApache-2.0
  • 2 layers103 × 30.5 mmTS Front Endcap, the printed circuit board in 3D

    TS Front Endcap

    EEVengers/ThunderScope

    ThunderScope GitHub Repo

    11 parts1.3kMIT
  • 2 layers26 × 30 mmExpansion Card, the printed circuit board in 3D

    Expansion Card

    FrameworkComputer/ExpansionCards

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

    11 parts1.1kCC-BY-4.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

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

    11 parts1kGPL-3.0
  • 2 layers10 × 20 mm2 connector Sensor Board, the printed circuit board in 3D

    2 connector Sensor Board

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    11 parts915

Questions

How big is the Current voltage sensor PCB?

It measures 29.2 × 16.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Current voltage sensor use?

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.

Where can I download the Current voltage sensor KiCad files?

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.

Can I use the Current voltage sensor design in my own project?

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).