2021-10-04 04:03 AM
Running " i-cube-lrwan - End node" firmware on board. We are expecting consistent battery percentage but observing inconsistent in battery percentage.
e.g. At first when battery is fully charged, it should show 100%. Later on as battery started draining percentage should decrease linearly.
But we are observing non linear change in battery percentage. Like
We observed that +Vref voltage itself is fluctuating for each uplink when powered with batteries. So we are suspecting variation in Vref might be the reason. If so how to resolve this issue or is there any other reason for this??
2021-10-13 11:38 AM
@Amotu.1 "as battery started draining percentage should decrease linearly"
Should it?
If you're just measuring the terminal voltage, then that will tend to "recover" if the battery is given a time to "rest" - so it's quite possible (likely, even) that the voltage will vary depending on the duty cycle of the system.
"We observed that +Vref voltage itself is fluctuating for each uplink when powered with batteries"
Have you also measured the battery voltage?
An uplink means that the radio transmitter has been active - which has a very high current drain relative to the average. Therefore it is likely that the battery voltage will drop during & immediately after an uplink.
2021-10-18 10:10 PM
@Andrew Neil I agree with you that radio transmitter has a very high current drain. So how can we calculate accurate battery percentage?
Because at least +Vref level should be constant to calculate uniform step size voltage if we use ADC.
2021-10-19 03:49 AM
@Amotu.1 - "how can we calculate accurate battery percentage?"
You'd need to use a proper "coulomb counter" or "gas gauge" chip.
Measuring terminal voltage will only ever give you a rough estimate - for things like lithium batteries, it's particularly poor.
Also, if you want consistent results, you'll need to ensure that you measure under consistent conditions.
"at least +Vref level should be constant"
It's up to your design to ensure that it is.
You said that you've observed that it's fluctuating - so you need to investigate that, find the cause, and fix it.
Remember that this is just a simple demo - not necessarily a fully-finished, shippable product ...