Read voltage VCC, strange measurement[solved]
-
I am using readVCC to read my battery node.
ATMega328P-PU, like this , home made PCB, Fuses(BOD) is set to 1.8 Vlong readVcc() { // Read 1.1V reference against AVcc ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1); gw.wait(2); // Wait for Vref to settle ADCSRA |= _BV(ADSC); // Convert while (bit_is_set(ADCSRA,ADSC)); result = ADCL; result |= ADCH<<8; result = 1126400L / result; // Back-calculate AVcc in mV //return result; batteryPcnt = (result - 3300) * 0.111111; batteryVolt = result/1000.000; }
it is working perfect on many of my nodes but one node have low battery compared to other nodes. They all have same battery type CR123A, 3 volt battery.
On this node the volt level is 2.4 V. It was not new when I start to use it. It was starting at 2.5V.
Last month it gives noise/jumping measurement. Going from 2.4 down to 1.9 see below. There are no measurements between 2.4 and 1.9.
From start
Anyone seen this before or know what it can be?
-
@flopp coincells can drain very quickly if too much power is used or if they have low capacity left.
Is the power consumption of the node approximately the same all the time or does the node sleep?
If it does sleep, the answer is probably that the chemistry in the battery is able to recover after a while, but the battery does not have much power left.
-
@mfalkvidd said:
Is the power consumption of the node approximately the same all the time or does the node sleep?
Thanks
It is sleeping for 30 minutes. So it can be on the end of the battery life as you say.
-
-
@flopp thanks for the feedback!
Just wondering, how long did it take to get from full to this jumpy state?
-
@Yveaux
I don't know because the battery was old when I started to use it.
Home made pcb. Report every 30 minutes. No cap on battery.
Take a look at this graph. This may be a new battery, don't remember. Has been running since 1/4 2016
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
is this project dead?
General Discussion • 3 days ago • perfectom 3 days ago -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 20 days ago -
Is it possible to extract child ID from a just sent message?
General Discussion • 8 Nov 2021, 09:21 • Nigel31 14 days ago -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 4 Mar 2025, 00:29