I’ve got a particle electron in deep sleep mode with a 4-20mA current loop receiver attached via I2C. The problem is that the attached hardware is still powered:
In deep sleep all GPIOs (but WKP) will go to High-Z state and Vin/3v3/Li+ will still be powered as if the device was not in deep sleep.
So in order to cut power to external circuitry you need to power this via some kind of switch (e.g. FET) that - by default - cuts the connection between your Vin/3v3/Li+ supply and only reapplies power when a respective GPIO pin is activated.
Since you are using the Electron in a 3rd party board, you may need to contact the creator of that board whether or not there is any means to do that already. If not, you may be stuck with at least some permanent current draw caused by the “main board”.
Well apparently it didn’t work out after all, and they withdrew the board from purchase
I’ve been looking at MOSFETs for the job like you said, but i don’t have the slightest idea what kind could be used for this purpose? do you have any guidelines to what kind of specs i should be looking for? - or even a link to something?
From a HW perspective, a load switch would be a good way to remove power from the sub-system. Here is a link to an application note on load switches for reference.
Thanks. From a quick glance of the three datasheets, I think that these could all work. As a disclaimer of not knowing the full/precise setup, think I would personally go with either of the P-channel load switches for a variety of reasons (lower Iq, simpler design).
However I suggest that you look into load switch IC development kits as a first step. This could be easily integrated into your setup and you could test the design (HW+FW) prior to going to a custom PCB.
I don’t seem to be able to find anything when searching for load switch IC development kits on google.
It would be nice with a breadboard friendly load switch so that I could test as you said, but I can’t find anything.
Either I’m searching wrong or I’m missing something?
An example or link would be very much appreciated if possible
I’m gonna read up on MOSFETs until tomorrow, as I don’t really understand how they work.
Maybe i have better luck searching for what i need, when I actually understand what FETs do and how they work.
There is an example circuit in the data sheet. The EN pin will go to a GPIO pin of your choice, and just add a resistor to from EN to GND. Something in the neighborhood of 4.7 - 10k should be good.
A N-Channel fet can do the same thing, but as you said if your not that familiar with them, this would be another way to go.
Here is a little tutorial on transistors & fets to get you started.
That is a cool product, cant believe it's that cheap. It does not say what the drive current is for the LED and OPTO though. I am curious how much that is as it does not state what opto they are using.
Thank you for all your links!
VERY much appreciated
I will have a closer look at them and figure out what to buy.
when I get it to work I’ll post an update on what I did.
EDIT:
I’ve bought the Gravity MOSFET Power Controller (DFR0457) and the Power Switch IC (TPS2034P) that @seulater and @RWB mentioned.
(btw a nice explanation video @seulater! I learned a lot)
I want the Power Management IC Development Tool (NCP334FCT2GEVB) that @dmfische mentioned to test out as well, but the price is a wee too spicy for me atm for these tests