spotkc.blogg.se

Arduino lipo battery monitor
Arduino lipo battery monitor










arduino lipo battery monitor
  1. #ARDUINO LIPO BATTERY MONITOR HOW TO#
  2. #ARDUINO LIPO BATTERY MONITOR SERIAL#
  3. #ARDUINO LIPO BATTERY MONITOR CODE#

Now you can order the PCB and components together in a kit from PCBWayĭisclaimer: Please note that you are working with Li-Ion battery which is highly explosive and dangerous. The device can be used as an Electronic Load Users can set the discharge current by using the push-buttons.Ĥ. It is suitable for almost any kind of battery rated below 5V.Ģ. Capable of measuring the capacity of AA / AAA NiMh / NiCd, 18650 Li-ion, Li-Polymer, and Li FePO4 battery. The main features of Capacity Tester V2.0 are :ġ. I made this device by inspiring the original design by MyVanitar To overcome this, I have made the V2.0 which is designed in such a way that the current will remain constant throughout the discharging process. The drawback of the earlier version was that during the testing, as as the battery voltage decrease, the current also decreases which make the calculations complex and inaccurate. The battery to be tested is discharged through a fixed resistor, current and time duration is measured by Arduino Nano and capacity is calculated by multiplying both the readings ( Discharge current and time ). The earlier version was based on Ohms Law. In the year 2016, I have written an tutorial on " Arduino Capacity Tester - V1.0 " which was a very straight forward and simple device. So, a device is required to measure the true capacity of the batteries. Similarly, it is difficult to know the capacity retained in the salvaged 18650 laptop batteries. So it is really difficult to distinguish between a real and a fake battery.

#ARDUINO LIPO BATTERY MONITOR SERIAL#

Next the setup, there's nothing really intrusting to explain here, just setting up the serial monitor, this is not an obligation, but for the purpose of debbuging we'll do this.Nowadays fake Lithium and NiMH batteries are everywhere which is sold by advertising with higher capacities than their true capacity. Then we declare a simple variable that will act as a timer, it will prevent false positive for exemple when you have the trhottle up for a moment. NOTE : Lipo battery should never go under 3V per cell, in this case the limit is a safety margin of 3.3V.

arduino lipo battery monitor

Just after that, we declare another variable, that is our cellLimit voltage, below this value buzzer will tone. They'll contain the current cell voltage in order to compare it. So first of all, we define pins where our cells and buzzer are connected to. It is simple but for the comprehension of everyone I'll explain all the code. So for a 4S lipo we have :įor the buzzer it's pretty simple, connect the GND to GND and the positive to the pin 8.įor portability add a 5V regulator where the GND is connected to GND, input of the regulator to positive of the first cell, and output of the regulator to VIN of the arduino. If you want to add more cell simply add 1K to the first resistor. Third three : Add 2K resistor, A2 cable, 1K resistor to GND. Seoncd two : Add 1K resistor, then the A1 cable, then another 1K resistor connected to GND. For this project I'm using a 3S Battery (3 cell battery), so I have to use 2 bridge dividers like so : - First cell : Connects directly to A0. The only thing to take in consideration here is that the arduino uses 5V so we can't directly put the lipo max voltage in. The idea is simple, we read the voltage of each cell via an Analog pin and then compare it, if the voltage is below a certain limit for more than 5 seconds, the buzzer tones.

#ARDUINO LIPO BATTERY MONITOR CODE#

Schema and code avaible for downloading and on thinkercad :

#ARDUINO LIPO BATTERY MONITOR HOW TO#

In this project I will show you how to build a simple Lipo cell Monitor/Alarm for your RC car or drone.












Arduino lipo battery monitor