1

I'm using a battery as my power supply. Is there any command or library to check the battery voltage? I want to monitor the battery discharge.

1 Answer 1

4

You will need to add external circuitry if you want to monitor the battery voltage.

As a minimum you will need an ADC (Analog to Digital Converter) and a pair of resistors to convert the battery voltage range to a Pi safe 3V3.

You will then need to write software to read the ADC.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.