Arduino Battery Analyzer
Hello,
Information: The original project code, written in C, has been translated and adapted for the Arduino / Arduino Nano environment. This version is based on the battery analyzer project and has been modified to work with the Arduino Nano and the ATmega328P microcontroller.
This project is an Arduino-based battery analyzer designed to measure battery capacity, estimate internal resistance, and operate as a constant-current electronic load. It can be used not only with single 18650 Li-ion cells, but also with other rechargeable batteries and battery packs up to approximately 20 V.
Functions
- Power supply requirement: 12 V, 250 mA
- Input voltage: 0.8–20 V, measurement resolution 0.01 V
- Adaptable for other batteries or battery packs up to approximately 20 V
- Battery capacity measurement
- Constant-current load operation
- Internal resistance measurement
- Discharge current: 0.01–2.55 A
- Control interface: 4 push buttons and a 20x4 character LCD
- Optional fan control using an LM35 temperature sensor

LCD Menu and Measurement Screens
The project uses a 20x4 character LCD for menu navigation, capacity measurement, constant-current load testing, internal resistance measurement, and device settings.
Main Menu

Capacity Measurement
This mode is used to discharge the connected battery at the selected current and calculate the measured capacity.

Constant-Current Mode
This mode allows the circuit to operate as a constant-current electronic load.

Internal Resistance Measurement
This mode estimates the internal resistance of the battery by comparing voltage values under different load-current conditions.

Settings Menu

The settings menu includes options such as sound control, ADC offset compensation, and saving calibration values to EEPROM.
Hardware
- Arduino Nano / ATmega328P
- Battery holder or external terminals for battery connection
- Load resistors
- MOSFET driver/control stage
- LCD display
- Voltage divider for voltage measurement
- Current measurement circuit
- Cooling fan for the load resistors and MOSFET
Schematic

The schematic below shows the connections for the Arduino Nano, LCD interface, voltage divider, MOSFET-based load stage, current measurement section, buzzer, fan output, and power supply regulators.
PCB Layout
The PCB layout includes the Arduino Nano, LCD connector, MOSFET load section, load resistor bank, voltage measurement input, current measurement path, fan output, and power supply section.

Important Note
This project is intended for educational and testing purposes only. When working with Li-ion batteries, lead-acid batteries, NiMH packs, or other rechargeable batteries, proper precautions must be taken due to the risks of short circuits, excessive current, reverse polarity, overheating, and incorrect voltage-divider calibration.
For battery voltages higher than a single Li-ion cell, the voltage divider ratio, load resistor power rating, MOSFET voltage and current ratings, heat dissipation, and software calibration values must be checked and adjusted accordingly before use.
The maximum usable battery voltage depends on the voltage divider ratio, ADC input limits, MOSFET specifications, load resistor power rating, fuse value, PCB trace current capacity, and cooling performance.
Related article / project page:
https://320volt.com/arduino-pil-analizoru/
GitHub
https://github.com/gevv/arduino-battery-analyzer/
Original project:
Arduino Battery Analyzer
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(1)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by burhan
-
500W Quasi Complementary Amplifier ZENER V3
https://320volt.com/rms-500w-amplifikator-zener-v3/
-
Washing Machine Motor Control Speed-Power Lathe Machine Saw
Hi, A simple and inexpensive circuit to start the washing machine engine externally. Soft start, Spe...
-
Valentine's day project 2 RGB Led Heart
Hi,PIC12F629 RGB Led Moon Light multi effecthttps://320volt.com/rgb-led-kalp-devresi-pic12f629-mood-...
-
200W Power Amplifier
200W Amplifier circuit does not require quiescent current adjustment.200W RMS with 4-OHM speaker100W...
-
Valentine's day project
Atmega8 led heart, df player music box, rgb mood light demo cardboard box :) https://320volt.com/l...
-
Arduino Battery Analyzer
Hello,Information: The original project code, written in C, has been translated and adapted for the ...
-
PWM DC/AC 220V Power Inverter
Hello, this is a UPS inverter project I've been testing for a long time, designed for home use. It c...
-
TDA7377 2+1 Amp Compact PCB Design
The TDA7377 can provide 4 separate outputs. For building a 2.1 amp, 2 outputs are used normally, and...
-
8 Mosfet Electronic Load
Hi, The basic circuit form isTL431Provide reference voltage,Current detection resistance LM324. 100x...
-
[Updated] 200W Power Amplifier
"200W Power Amplifier" The 200 Watt amp circuit I shared in the article with the quiescent current r...
-
Peak Hold Vumeter
In this project, a 15 channel Vu meter circuit design with peak hold feature is considered. The circ...
-
SSOP20 to DIP Adapter
SSOP20 to DIP Adapter single layer PCB diy friendly
-
Power Supply board for Amplifier 2X35mm Capacitors
Hello, DC Rectifier, filter symmetrical power supply. 2x35mm cap.
-
Power Supply board for Amplifier 2X25mm Capacitors
Hello, DC Rectifier, filter symmetrical power supply. 2x25mm cap.
-
RMS 250W Hybrid Amplifier
250W Amplifier: High Power and Quality Sound PerformanceThe 250W amplifier is a high-quality and hig...
-
Big Breadboard Project - Mini SMPS
The second phase of the Big Breadboard project, which is the power supply, has been completed and en...
-
Breadboard Regulator Board
https://320volt.com/breadboard-guc-kaynagi-regulator-karti-bolum-1/
-
Capacitor Discharge (Repairing a Switching Power Supply)
Hi, it is a tool with LED indicator to discharge high voltage. Capacitor discharge pen. AC and DC R...
-
Programmable Mist Maker - XIAO / QT PY Extension
222 0 0 -
RadioHAT - Raspberry Pi radio development platform
250 0 1 -
-
-
-
-
ARPS-2 – Arduino-Compatible Robot Project Shield for Arduino UNO
2801 0 5 -
-
A Compact Charging Breakout Board For Waveshare ESP32-C3
3307 3 8 -
AI-driven LoRa & LLM-enabled Kiosk & Food Delivery System
3587 2 2







