Tbeam DIY ADC battery level % and Voltage ? #5039
Closed
lagunacomputer
started this conversation in
Troubleshooting
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
UPDATE: FIXED It was a combination of having my voltage divider resistors flipped + having to recompute my ADC modifier value from 3.6 to around 4.521 after resoldering and installing new resistors in my circuit
In the last few firmwares, my batt Lion level is either showing as 11.xV @ USB/Charging, or as 3.25v @ 7% depending on how i flip my voltage divider resistors around.
It is as if the node can't figure out if i have a 12v, or 4.2v battery. Either the voltage is too high, or the % is too low.
By playing with my voltage divider resistors, I can take the 4.2v Lion and send either 1.1v or 3.3v to the ADC pin.
Which is the correct voltage to send to ADC pin (1.1v or 3.3v) ?
Did something change because of #4871 ? :
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define ADC_MULTIPLIER 3.6
I am using 150k/45K or 45k/150k resistors in the voltage divider, and 4.2v Lion battery.
Beta Was this translation helpful? Give feedback.
All reactions