Skip to the content
2 layers54.5 × 43 mmBms, the printed circuit board in 3D

An intelligent embedded Battery Management System (BMS) utilizing an STM32 microcontroller and HAL drivers to monitor real-time battery pack analytics including temperature, current draw, and gas/smoke hazards.

Size
54.5 × 43 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
69
Pads
119
Tracks, vias
174, 8
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
8 Jun 2026
Updated
11 Jul 2026

Overview

Bms is an open-source printed circuit board by rudreshpandey05, from the rudreshpandey05/STM32-Battery-Management-System repository on GitHub, published under the MIT licence. It is a 2-layer board of 54.5 × 43 mm with 18 parts on 69 nets, routed with 174 tracks and 8 vias.

Its parts include 6 resistors, 5 connectors, 2 ICs, 2 diodes and 1 capacitor. It belongs with the power boards and the STM32 boards of this library.

README

README.md

Battery Management System (BMS) using STM32

An automated, intelligent Battery Management System designed to ensure the safety, efficiency, and longevity of multi-cell battery packs commonly used in Electric Vehicles (EVs) and renewable energy storage systems.

This firmware is built around the STM32 Microcontroller utilizing the Hardware Abstraction Layer (HAL) framework.

🛠️ Hardware Requirements

  • Microcontroller: STM32 Series (ARM Cortex-M core)
  • Temperature Sensor: LM35 Linear Temperature Sensor
  • Current Sensor: ACS712 Hall-Effect Current Sensor (30A Version)
  • Safety/Gas Sensor: MQ-2 Gas and Smoke Sensor
  • Display Interface: 16x2 LCD with an I2C Backpack Module (PCF8574)

⚙️ Project Architecture & Features

  • Multi-Channel ADC Data Acquisition: Configured an Analog-to-Digital Converter (ADC1) with 3 independent channels operating in sequential scan mode.
  • Telemetry Conversions:
    • Temperature Monitoring: Converts raw ADC steps to Celsius based on an scaling factor of 10mV/°C.
    • Current Sensing: Uses the zero-current voltage offset (2.5V) and sensor sensitivity (66mV/A) to track dynamic charging and discharging states.
    • Hazard Detection: Constantly monitors battery gas output levels to prevent runaway thermal events.
  • I2C Protocol Communication: Employs a custom 4-bit initialization sequence over the I2C bus to interface seamlessly with a remote LCD screen.

🚀 Future Roadmap

  • Implement State-of-Charge (SoC) estimation algorithms (Coulomb Counting).
  • Add active or passive cell balancing circuitry control.
  • Integrate CAN-Bus or UART telemetry transmission for remote data logging.

STM32 Based Battery Management System

Description

Designed a Battery Management System using STM32F401RE in KiCad.

Features

  • Battery Voltage Monitoring
  • Current Monitoring (ACS712)
  • Temperature Monitoring (LM35)
  • Gas Detection (MQ2)
  • I2C Interface
  • Buzzer Alarm
  • LED Status Indication
  • SWD Programming

Software

  • KiCad 10
  • STM32CubeIDE

Hardware

  • STM32F401RE
  • LM35
  • ACS712
  • MQ2
  • LEDs
  • Buzzer

Files

  • Schematic
  • PCB Layout

Parts

18
QtyValueFootprintReferences
34.7kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R5, R6
2330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R3
2LEDLED_THT:LED_D5.0mmD1, D2
1100nCapacitor_SMD:C_0603_1608MetricC1
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
1ACS712Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1BATTERYConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ4
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1I2CConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1LM35-DPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1MQ2Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1STM32F401RETxPackage_QFP:LQFP-64_10x10mm_P0.5mmU1
1SWDConnector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_VerticalJ5
1SW_PushButton_Switch_THT:SW_PUSH_6mmSW1

Similar boards

  • 2 layers27.9 × 16.5 mmPowerSSO-24 breakout, the printed circuit board in 3D

    PowerSSO-24 breakout

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    18 parts1.2k
  • 2 layers42.7 × 13.7 mmStm32-mini12864, the printed circuit board in 3D

    Stm32-mini12864

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    18 parts1.1kGPL-3.0
  • 2 layers41.2 × 46.6 mmThumb cluster left, the printed circuit board in 3D

    Thumb cluster left

    JesusFreke/lalboard

    A 3D-printed keyboard inspired by the DataHand

    18 parts993
  • 2 layers44 × 51.3 mm4272MAVcoder R4, the printed circuit board in 3D

    4272MAVcoder R4

    hackclub/OnBoard

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

    18 parts915
  • 2 layers28.3 × 14.3 mmTap Photosensor PCB, the printed circuit board in 3D

    Tap Photosensor PCB

    VoronDesign/Voron-Tap

    Tap is a nozzle-based z-probe for the V2 and Trident printer designs. The entire toolhead moves to trigger an optical switch. Tap offers many advantages:

    18 parts716GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 stepper driver, the printed circuit board in 3D

    L0 stepper driver

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    18 parts546MIT
  • 2 layersMooltipass, the printed circuit board in 3D

    Mooltipass

    limpkin/mooltipass

    Github repository dedicated to the mooltipass project

    18 parts531
  • 2 layers42.5 × 28.8 mmC5VRX JACK DIY V2, the printed circuit board in 3D

    C5VRX JACK DIY V2

    Twotoz/C5VRX

    Ultra-minimal, zero-CPU 5.8 GHz analog FPV video receiver using ESP32-C5 Wi-Fi 6 PHY MODEM_DIAG, BitScrambler WBFM demodulation & resistor DAC CVBS

    18 parts515GPL-3.0

Questions

How big is the Bms PCB?

It measures 54.5 × 43 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bms use?

18 parts. 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 Bms KiCad files?

From the rudreshpandey05/STM32-Battery-Management-System repository on GitHub, at the commit this page was made from: the board is bms.kicad_pcb and its schematic bms.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bms 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).