Hi,
Add a pulldown resistor between the gate and ground. That will keep the gate closed when the button is not pressed ot the pic pin is high. 10k or whatever you have at hand.
/me
Hi,
Add a pulldown resistor between the gate and ground. That will keep the gate closed when the button is not pressed ot the pic pin is high. 10k or whatever you have at hand.
/me
This ditty does exactly what you want...
http://www.picbasic.co.uk/forum/showthread.php?t=3510
Ah... I think it's too big for the forum since the filesizes have been reduced since that was posted... here's another link to something similar but different...
http://www.picbasic.co.uk/forum/showthread.php?t=57
Jumper - a pull down does not work, don;t know why. But the thread Melaine pointed me to yielded a circuit that I simplified a bit that works like a charm. Thanks Melanie you totally made my day, I will cross post my solution to the other thread. See attached.
Guy
Last edited by skimask; - 29th September 2008 at 21:06.
This circuit is capable of very high current, and I use it several times!
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.
Regards
Sougata
Bookmarks