Quantcast
Viewing latest article 10
Browse Latest Browse All 30

Use GPIO to disable voltage divider

I’m using a voltage divider to read the battery level of a wireless sensor platform using STM32L151. I’m shooting to use 20k for R1 and 10k for R2, to be under the 50k limit of the MCU’s ADC peripheral.

How do I calculate the current wasted by the divider?

Originally, I was planning on using a P-channel MOSFET to enable the divider when taking measurements to reduce power consumption, but I see that MOSFETs have leakage current and raise the part count.

Can I just set the GPIO to push-pull as the ground for the divider and set it low when I want to measure and high when I don’t?


Viewing latest article 10
Browse Latest Browse All 30

Trending Articles