r/ArduinoProjects • u/kayz52 • 39m ago
Project Design/Guidance Battery voltage measurement
I am building a battery powered project and I need it to be low power. I also need to measure the battery voltage. So the way it works is that the esp is in deep sleep by default, it wakes up to do a certain function then goes back to sleep. While it is performing that function, i want to read the battery voltage.
I want to use a voltage divider with a transistor to only measure the voltage when required (to save power). The transistor will be controlled by a GPIO pin.
My problem is that the battery can be charged to 4.2v and the esp pins can only handle 3.3v. If the battery is fully charged, will this damage the ADC pin?
Note- theres arrangement to avoid this by adding an extra transistor but my space is limited so I prefer the simplest option (if possible)
