sqfmi / badgy

Home of Badgy - IoT Badge
http://badgy.sqfmi.com
MIT License
311 stars 61 forks source link

Can Badgy measure the voltage of the battery? #37

Closed mrWheel closed 5 years ago

mrWheel commented 5 years ago

Is it possible (with minor modifications, if needed) to measure the voltage of the battery?

chunkysteveo commented 5 years ago

You can - jumper the ADC pads on the back and that will give you the voltage as an analogue readout using the built in ADC of the ESP8266 chip.

sqfmi commented 5 years ago

Moved to Wiki https://github.com/sqfmi/badgy/wiki/Can-Badgy-measure-the-voltage-of-the-battery%3F

chunkysteveo commented 2 years ago

Adding to this all the way in 2022(!) Bridging the ADC solder jumper will only measure up to 3.3V as the voltage divider is 220k/100k - to get a more accurate battery voltage you should bridge the ADC jumper with a 100k resistor, which will bring the recorded ADC value closer to 4.2V when at or near 1V seen on the ADC ( voltage divider will be = 320k / 100k).