My group and I are currently starting on a project using Arduino Uno and we are first timers with Arduino.
We are working on a project using the following components:
-Servo motor
-2 DC motors
-IR sensors
-USR (Ultra Sonic Ranger)
-LCD display
-Zippy Li-po battery 2200 (3 cell 11.1V)
-Arduino Uno
I was just wondering how to detect battery level of an external rechargeable battery using arduino uno and show it on the LCD display. We want our robot to monitor and display the battery level to know when it is fully charged or low battery.
Also, If require additional components to detect the battery level please do state.
...is clearly not what @justsummer is trying to measure.
@justsummer, you need a voltage divider to reduce the voltage to approximately zero to five volts (zero to Vcc). To start, choose a resistor pair that totals less than 10K ohms.
Presumably the purpose of the indication is to let you know when the robot's going to die? I Googled Li-Po discharge curves and from what I see, the voltage is fairly flat until it drops of a cliff, so looking at the voltage doesn't give a good indication of how long it's going to last.
Other threads on this board have indicated that you really need to monitor the power usage which, when you incorporate time, tells you the energy used and that can be subtracted from the full-charge energy capacity. But I think that's probably a whole project on its own.... 8)
This will work for you. Mind the max voltage of 3 lipocells is 12.4V -> this divider will give you 5V max.
As the battery voltage could be noisy you may use even bigger capacitor - ie. 1uF.
From the voltage level you may decide on the battery "level". If you want to measure the "charge left" - that is difficult - you have to measure the current from the battery at regular intervals and integrate in time - to get mAHours consumed.