Replies: 2 comments
-
You're right!, I changed it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Perfect! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am waiting for some replacement hardware components to rebuild my sensor (see #20 ;). Meantime, I've started to look at the code and I see in the arduino sensor code that the battery percentage is mapped from 3.6 to 4.2 volts:
float perc = map(volts * 1000, 3600, 4200, 0, 100);
However, the low battery code is sent when voltage is below 3.36:
if (volts < 3.36 and loopcounter == 1 ){ // Don't change "3.36" !!
Is there any reason for this? Shouldn't the percentage follows around the same 3.36-4.2 voltages?
Beta Was this translation helpful? Give feedback.
All reactions