

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.mdBattery 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 4.7k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R4, R5, R6 |
| 2 | 330 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2, R3 |
| 2 | LED | LED_THT:LED_D5.0mm | D1, D2 |
| 1 | 100n | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1 |
| 1 | ACS712 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J1 |
| 1 | BATTERY | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J4 |
| 1 | Buzzer | Buzzer_Beeper:Buzzer_12x9.5RM7.6 | BZ1 |
| 1 | I2C | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J2 |
| 1 | LM35-D | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | MQ2 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | STM32F401RETx | Package_QFP:LQFP-64_10x10mm_P0.5mm | U1 |
| 1 | SWD | Connector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_Vertical | J5 |
| 1 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1 |
Similar boards
- 2 layers27.9 × 16.5 mm

- 2 layers42.7 × 13.7 mm

Stm32-mini12864
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group
18 parts1.1kGPL-3.0 - 2 layers41.2 × 46.6 mm

- 2 layers44 × 51.3 mm

4272MAVcoder R4
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
18 parts915 - 2 layers28.3 × 14.3 mm

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 mm

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 layers

- 2 layers42.5 × 28.8 mm

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