2020-11-19 at 2:33 PM #14846
Just wondering if anybody has looked at algorithms for battery capacity.
For logging reliability, when a LiIon battery is low in available energy, it would be nice to reserve the available energy for just the core logging functions (ie no high powered radio transmission).
I mentioned some work I’m doing in this thread https://www.envirodiy.org/topic/monitoring-power-consumption/
Another possible method of measuring available power is to use a Fuel Gauge Adafruit LC709203F LiPoly / LiIon Fuel Gauge and Battery Monitor https://www.adafruit.com/product/4712.
That is LiIon battery to Adafruit-4712, then pwr cable to Mayfly, I2C cable to Mayfly. Then of course for safety could use some shrink wrap tubing round the Adafruit-4712.
I’ve prototyped the driver on a Mayfly and pretty simple. It does measure the LiIon battery voltage accurately. It does allow a battery capacity to be plugged in (0.5AHr , 1AHr, 2AHr, 3AHr) and then gives a percentage Fuel Gauge. The fuel gauge is pretty squiggy, but possibly good enough to say stop wireless transmission below 60% capacity.
2020-11-25 at 3:26 PM #14862Matt BarneyParticipant
Interesting -thanks Neil. I may try that fuel gauge as well.
2020-11-25 at 7:37 PM #14863
Hi Matt – well been watching the output of the LC709203F with some other testing. It does work for the accurate battery voltage measurement.
However the LC709203F “%” capacity could be challenging to use. There is a lot of technical discussion about battery fuel gauges and what works and doesn’t. Another device that I got was the Seeed LTC2941 which only measures coulombs/mAHrs .
I’m figuring out it needs to be accurate battery voltage ~ for basic battery “gauge” status, and also measure mAhrs to be able to characterize activity (or field monitor) while awake. My test system with Xbee S6, periodically goes into some sort of lock up and consumes current, and the only way to recover is to unplug the battery. For the Xbee LTE carrier board it can be turned off if this happened.
The LTC2942 does coulombs and battery voltage – except no cheap board with it that I’ve found.
An fun link about “orchestrating power” from some work being done at CMU on dealing with power – https://youtu.be/eAhVdSCdv08
Wishing you a good safe thanksgiving – great time of year for giving thanks 🙂
2021-03-10 at 8:37 PM #15235
Just a note, I’ve switched to an STC3100 “Battery monitor IC with Coulomb counter“. The LTC2942 became unavailable and turned out to be more expensive.
I’ve got the basic driver here – the device driver reading the registers is here —https://github.com/neilh10/STC3100arduino
A device manager that can provide power consumed in mAhrs is still wip.
I’m using it with an enhanced RS485 power board that supplies power directly to the 4V to 12V booster – and it can supply a continuous 1.9W.
This a new board, and if anybody wants one they should let me know this week so can be included in a manufacturing build.
- You must be logged in to reply to this topic.