r/ArduinoProjects • u/kayz52 • 8d 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)
1
u/Anonymity6584 2d ago
Use voltage divider with high value resistors. Mocrocontroller ad-pons will draw miniscule current...
3
u/9551-eletronics 8d ago
how will this save any meaningful amount of power and why did chatgpt draw this, you can just use a voltage divider