loading

 sales@gsl-energy.com     0086 13923720280

arduino true battery capacity tester (li-ion/nimh/nicd/pb)

If anyone sees my last instructions
They can now upgrade to computerized hi-
Technical version capable of measuring almost any type of rechargeable or unrechargeable battery (
But in the process it consumes a charge from them).
It can even connect to the pc and provide you with the full \"data-
Chart of emissions and total capacity.
Please note that this is my first Arduino project (
I don\'t count my \"flashing LED \").
This is the chart obtained during the drain cycle from the text file sent to PCduring.
I really wanted to get this Diecimila copy Arduino board bit and it took me about 2 weeks to get it by mail so I had to start with my own bread --
Arduino board, so I bought a version of the atlag168 and thought I could get it to run without any components. .
It doesn\'t work for me, I just need to buy another batch of 16 Mhz crystals and two 22 pf hats. .
Then I got the next one. . .
I basically take the garbage apart and add components one by one. . .
Most of the information can be found on the Arduino web page: there\'s really everything you need.
It took me about a week to get it up and running (
Boot loader/build ISP cable and RS232 cable. . . )-
You can read all the information about this on the website above.
Add a \"on\" resistor ~ The FET of 8 mOHM is quite simple (
There is no force separation on It)and a 2. 2 10 w resistors.
I connect the two A/D pins of the Arduino to the resistor pole and subtract these values to get the exact voltage drop on the resistor.
Now I sample them every second and calculate the current (I=DeltaV/R).
I also added a buzzer to indicate when the charge will end and stop the discharge.
So I also connected to the LCD (
I separated it from the rest of the garbage)
Found the data.
There is a cool driver on the Arduino web page online and start coding.
Automatically detect battery type according to voltage.
Will it detect whether it is NiMH/NiCD or Li-
Ions within the voltage range.
Then start the discharge cycle.
Discharge can be from 30-
120 minutes depending on the battery capacity, but in the end you will get a real indication of the battery capacity/quality.
Do you want to make air with that battery?
Or no receiver?
This is a schematic diagram of the discharge circuit. . .
Very simple, 2 A/D are connected on both sides of the resistor/Vr = VbatVfet.
/Code for this library: Liquid crystal LCD Display (
12, 11, 5, 4, 3, 2);
/Initialize the library with the number of interface pinsint sensorPin = 0;
/Select the input pin for the potentiometer (pin 23)
Int sensor2Pin = 2;
/Select the input pin for the potentiometer (pin 23)Int ledPin = 13;
/Select pin for LEDint SPKPin = 6;
Int sensorValue = 0;
/Stores variables from values of sensor int sensor2Value = 0;
/Variables to store values from sensor floating threshold = 2700;
/Lithium minimum voltage LiMaxThreshold = 4200 for load removal;
/Maximum lithium voltage nmhminthresold = 950 for load removal;
/NMH minimum voltage floating NMH maximum threshold for load removal = 1600;
/NMH maximum voltage selection threshold for load removal = 5000; int i;
Int BatVoltage = 5000;
Voltage = 5000;
Long total current = 0;
Boolean one = false;
Long, unsigned PrevMillis;
Unsigned long Milli; void CL2(){lcd. setCursor(0, 1);
/The first line of char LCD. print(\"\"); lcd. setCursor(0, 1);
/Line 2 first char}void setup(){Serial. begin(9600);
/Start the serial port to send data to PC pinMode during Operation (ledPin, OUTPUT);
Activation led and enable OF/FET pinMode (SPKPin, OUTPUT);
Activation led and enable for/FET LCD. begin(24, 2);
/Set the number of rows and columns of the LCD: LCD. print(Bat pressurized water reactor Tester [Active]\");
/Print a message to the LCD. lcd. setCursor(0, 1);
/The first line of char LCD. print(
\"Detect Bat type. . . \");
/Print voltage value delay (2000); lcd. setCursor(0, 1);
/The first line of char LCD. print(\"\"); lcd. setCursor(0, 1);
/Write the first char number in the second line (ledPin, HIGH);
/Set the LED on sensorValue = analogRead (sensorPin);
/Read value from sensor: digitalWrite (ledPin, LOW);
/Set LED off/detect battery type BatVoltage = sensorValue * 4. 887; if (
Batvolage> 4500){lcd. print(\"Warning high-V! \"); done = true; }else if (
BatVoltage> minthresold){lcd. print(\"Type:Li-Ion Bat \");
SelectedMinThreshold =; }else if (
BatVoltage> nmhminthresold){lcd. print(
\"Type: NiMH/Cd Bat\";
Select threshold = nmhminthresold; }else{lcd. print(
[Unknown bat V

GET IN TOUCH WITH Us
recommended articles
SERVICE INFO CENTER Knowledge
Embarking on a New Era of Smart Energy Storage! GSL ENERGY and Huawei Grid Connection System Reach Communication Agreement
On July 1, Shenzhen GSL Energy Co., Ltd. announced that its core equipment has successfully integrated the communication protocol with Huawei's smart photovoltaic grid connection system. This cooperation marks a further deepening of integration between the two parties in the field of smart energy storage, laying a solid foundation for promoting the global user-side energy storage market.
Common Questions About Commercial Battery Energy Storage Systems
As electricity prices become more volatile, electricity demand rises, and renewable energy becomes increasingly widespread, commercial battery energy storage systems (C&I BESS) are emerging as a critical tool for businesses to reduce costs, improve efficiency, ensure reliable power supply, and advance green transformation. This article will provide a comprehensive analysis of the core architecture, operational mechanisms, application advantages, and typical use cases of commercial energy storage systems, showcasing how GSL ENERGY leverages safe, intelligent, and efficient energy storage solutions to help businesses achieve a more controllable and sustainable energy future.
Malaysia Solar Battery Storage Solutions for Homes & Industry
Discover Malaysia's solar battery storage opportunities for homes and businesses. Learn about residential battery backup, commercial BESS systems, and real GSL ENERGY installations. Get expert pricing insights and storage solutions tailored for Malaysia's energy landscape.
Vietnam Solar Battery Solutions for Homes & Businesses

Explore Vietnam's growing demand for solar battery storage across residential and commercial sectors. From home backup systems to large-scale BESS battery energy storage, GSL ENERGY offers tailored lithium solutions optimized for Vietnam's climate and energy challenges. Discover real installation cases, price insights, and how to choose the right solar battery partner.
Iraq Solar Battery Companies & Energy Storage Solutions

Iraq is entering a transformative phase in its energy landscape. With rising electricity demand, unstable grid performance, and frequent blackouts—particularly during peak summer months—solar battery storage systems are gaining traction across residential, commercial, and off-grid sectors.

Although Iraq possesses vast oil reserves, the country faces serious challenges in ensuring 24/7 power access for all citizens. This gap has accelerated interest in solar energy, especially when combined with solar battery backup systems to provide reliable and independent power.
Ecuador Solar Battery Companies & Energy Storage Solutions
Ecuador is rapidly emerging as a promising market for solar battery storage, driven by growing demand for clean, stable, and off-grid energy solutions. With high solar irradiance and rising electricity costs, both residential and commercial users are turning to lithium-based solar batteries to ensure energy security and reduce diesel dependence. In this article, we explore key trends in Ecuador’s solar battery market, price factors, and how GSL ENERGY supports the country’s energy goals with real-world installations, advanced LiFePO₄ battery technology, and customizable storage systems from 10kWh to 5MWh.
Kenya Solar Battery Company & Energy Storage Solutions
Kenya is rapidly emerging as one of Africa's leading renewable energy markets, driven by government initiatives and growing demand for solar battery storage and off-grid solutions. In many regions, over 75% of residents still lack access to a reliable power grid, making solar power battery systems essential for energy equity, resilience, and long-term cost savings.With average solar irradiance between 4–6 kWh/m²/day, Kenya is perfectly positioned for the adoption of solar battery backup systems in both urban and rural settings.
Philippine Solar Battery Company & Solar Storage Solutions

The Philippine solar market is undergoing rapid transformation, driven by both government initiatives and increasing consumer demand for clean energy. The Philippine Energy Plan outlines the goal of reaching 20 GW of renewable energy capacity by 2040 (or 15 GW by 2030), a target that positions solar energy at the center of national development.
GSL ENERGY's 25kWh stackable solar batteries successfully installed in Mauritius

Amidst the challenges of unstable power grids, rising electricity prices, and overreliance on diesel generators in multiple African countries, an increasing number of businesses and households are actively seeking cleaner and more reliable energy solutions. In March 2025, GSL ENERGY completed the installation of a 25kWh stackable home energy storage system in Mauritius, providing local households with a clean and stable power supply while adding another case study to Africa's clean energy development.
Installation of 40kWh server rack solar batteries and Deye inverters in Israel

Installation of 40kWh server rack batteries and Deye inverters in Israel

Installation Date: January 3, 2025
Installation Location: IsraelProject Type: Small to Medium-Sized Commercial Energy Storage System
System Configuration: 40kWh GSL Server Rack Battery + Deye Inverter
no data
 Service Tel: +86-755-84515360
 Address: A602, Tianan Cyber Park, Huangge North Road, Longgang District, Shenzhen, China
GSL ENERGY - A leader of green energy provider in china since 2011

0086 13923720280

Solar energy storage battery manufacturer contact information
Contact us
whatsapp
Contact customer service
Contact us
whatsapp
cancel
Customer service
detect