How can a battery powered PIC turn itself off?
I am trying to build a battery powered device that runs on 2 CR2032 coin batteries. I want to be able to press a button to activate it, then it does its thing and powers itself off.
So I put the button switch between the battery ground and circuit ground and put a MOSFET across it. Push the button, PIC wakes up and sends a HIGH signal to the MOFET gate to hold power on when the button is released. So far so good.
Now when the PIC has completed its task I drop the MOSFET gate line low in code, but the circuit does not power down. A voltage remains on the driver line and I'm not sure why.
Anyone have a working solution to this problem. I am open to anything!
Guy
If your circuit is not powering other blocks
Hi,
If your circuit is not powering other blocks having higher quiescent current you may use the PICs sleep mode. Nanowatt PICs with internal or LP oscillator works great and never lets me down.
Advantage : You might end up using a single CR2032 for your circuit. Cause your circuit drops out at least 0.6 volts and PICs works from 2 volts.
Re: How can a battery powered PIC turn itself off?
Had the same problem, then I looked carefully at the circuit and laughed my head off!
Like you I switched the POSITIVE side of the power....BAD MOVE..put the FET in the NEGATIVE rail so the circuit you want to power is effectively the LOAD use a pull down resistor of 10K or so and ALL will be well.
Took me a while to figure this out, but if you look at what is happening then it's obvious. :rolleyes:
Hope this helps.