If I have a Lipo battery that has a capacity of 2,000mAh, does that mean that it outputs 2,000 mA per hour? So if I have a project that draws 400mA, to calculate how long the project will last on that battery, I would divide 2,000 / 400, which means that the battery will last 5 hours with that project?
osmosis311:
if I have a project that draws 400mA, to calculate how long the project will last on that battery, I would divide 2,000 / 400, which means that the battery will last 5 hours with that project?
Yep.
But don't depend on it. Battery life claims need to be taken with as much salt as car mileage claims.
Also keep in mind, most batteries are rated by finding the current draw that will last 10 hours, then multiplying it by 10. But if you draw current out faster, they lose efficiency. So a 2000mAh battery may last 10 hours with 200mA draw, but only last 45 minutes if you draw 2A.
Also keep in mind - your Arduino may draw 400mA. But if you are using a single LiIon cell and a voltage boost switch mode converter, in addition to the inefficiency of the converter, it must draw more than 400mA from the battery in order to turn about 4V into 5V@400mA. IE, 2W out means something more than 2W in. Say 90% efficiency, so 2.2W in, 2.2W/4V = 550mA. As the battery voltage drops, the current draw increases.
Sorry, yes, don't use more than 80% capacity or to less than 20% charge. Typically that's around 3.2 volts but it depends on the exact cell, some will happily go down to 3v