Dear all,
Since I have now decided to power everything except for the motor itself from 2.8V in my vehicle decoder to suit the VL6180X distance sensor supply and logic requirement, I have a new kind of problem with single cell LiPo battery monitor. I learned back then, I could use a simple calibdac command, compare the reading to internal fixed voltage reference and thus get the actual LiPo battery voltage. It did not work great, since it produced very varied readings, but I averaged it out from 10 readings and got reasonable results.
Now, with the 2.8V regulator, there is plenty of power always. Down to a dead battery (the lowest "safe" voltage for a LiPo seems to be 3.8V). Taking a direct connection from the LiPo seems scary as that would make ADC input more than the supply voltage. But maybe that is ok?
Another solution would be a voltage divider, I guess.
One more solution and probably the best would be this clever IC. It requires I2C, which I already have, but some extra components and board space, which I don't really have.
Edmunds
Since I have now decided to power everything except for the motor itself from 2.8V in my vehicle decoder to suit the VL6180X distance sensor supply and logic requirement, I have a new kind of problem with single cell LiPo battery monitor. I learned back then, I could use a simple calibdac command, compare the reading to internal fixed voltage reference and thus get the actual LiPo battery voltage. It did not work great, since it produced very varied readings, but I averaged it out from 10 readings and got reasonable results.
Now, with the 2.8V regulator, there is plenty of power always. Down to a dead battery (the lowest "safe" voltage for a LiPo seems to be 3.8V). Taking a direct connection from the LiPo seems scary as that would make ADC input more than the supply voltage. But maybe that is ok?
Another solution would be a voltage divider, I guess.
One more solution and probably the best would be this clever IC. It requires I2C, which I already have, but some extra components and board space, which I don't really have.
Edmunds