Calculate Peukert's law with INA219
Re: Calculate Peukert's law with INA219
Re: Calculate Peukert's law with INA219
float c = 0;//combined mA draw reading
int t = 0; //number of loops
void loop()
{
float z = ina219.getCurrent_mA(); //current mA reading
c += z;
float y = c/t; //averaged mA draw reading
int ratedCapacity = 2850; //rated capacity for the battery in mAh
float estimatedHours = ratedCapacity / y * 0.7; //The factor of 0.7 makes allowances for external factors which can affect battery life
t++;
}
Re: Calculate Peukert's law with INA219
Re: Calculate Peukert's law with INA219
Re: Calculate Peukert's law with INA219
Re: Calculate Peukert's law with INA219
adafruit_support_bill wrote:I don't have any formula for alkaline cells that i can give you.. If you search the net, there are probably some out there.