Hi! I know this is an old old topic, but I have some doubts pertinent that were discussed here.
For power saving reasons, I’d like to turn off almost everything connected to a Pro-Micro (Leonardo), when in sleep mode. The only thing that will be on always is a touch sensor (TTP223) that consumes 6uA when idle, and will wake arduino from sleep by an interrupt.
So for the rest of devices attached to the Pro-Micro, a High-side Mosfet configuration, as I read here, is the way to do it.
So, do I need multiple P-Mosfets for turning off multiple devices in different voltages?
I have to power off an RGB LED (PL9823 - that uses max 52mA), a TOF laser sensor (VL53L0X that uses max 40mA), both 5 volts powered). So the Vcc max current from arduino can power this two.
But I have also a voltage sensor (a simple voltage divider, attached to A0) and a power led driver (that uses 630mA) both connected on 8.4V Lipo Battery, which also powers the Pro-Micro, by it’s RAW pin. Arduino of course will be connected directly to the battery.
So, I’m kind of confused.
Would I need one p-mosfet setup for each device? I mean 4 mosfets?
Or would I need two p-mosfets, one for each voltage? One for 5v from arduino that powers the LED and the TOF sensor, and another one for the battery level sensor and the power led driver, at 8.4V?
Or could I use only one mosfet and have all the positive connections with different voltages attached to it?
Or one p-mosfet for the 5V devices and ine n-mosfet for the 8.4v ones?
Thanks for the help!
Edit: I added my modified schematics based on the info in this thread... Is this the way to turn off all the devices if needed? I used two p-mosfets.. Can anyone tell me if it's right, and if there's a simpler way to do it? I have little space in the tiny enclosure, so, the less extra components the better.