Pushbutton based power on / self power off
Hi,
I'm pretty new to BS2. I am an software engineer that starts to explore the world beyond the µC.
Now I want to achieve the following:
I have a project that should be powered on when pushing a button executes a program once and then cuts the power of the BS2 automatically.
This is because I really only need the execution of the program on pushing the button from time to time and I want to reduce power consumption to the absolute minimum.
Best
Thomas
I'm pretty new to BS2. I am an software engineer that starts to explore the world beyond the µC.
Now I want to achieve the following:
I have a project that should be powered on when pushing a button executes a program once and then cuts the power of the BS2 automatically.
This is because I really only need the execution of the program on pushing the button from time to time and I want to reduce power consumption to the absolute minimum.
Best
Thomas
Comments
I do not want to switch it off afterwards, the program should switch it of as it's last statement. The question is how to design the self holding on switch (I know how to do this with a relais, but I wnt to use transistors and how to switch it off by a IO-Pin
Best
Thomas
Ken
-Phil
You·power your circuit using a·voltage regulator that has an on/off pin; there are many to choose from.
Do you have a part # that i can look at some Thank You for any help that you can give me in this matter
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
·
·
·
·
Sam
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Is this what you were thinking? SW1 grounds the gate, turning on the P-Mosfet and powering the µC. The Program makes P1 a low output holding the Mosfet ON. To terminate, the program makes P1 a high impedance input. Is there any possibility of this I/O pin appearing as a ground as a BS2 (or any PIC based controller) looses power? Is there a current path from the battery through R1, R2, and P1 to ground with the µC unpowered?
Ken
This topic has come up a few times... originally I had designed this circuit around a BS2 for a "doorbell" for my daughters play house.· In her playhouse and MANY doorbell presses, a·9V battery would last over a year with this circuit.
http://forums.parallax.com/attachment.php?attachmentid=38912
Source Link:
http://forums.parallax.com/showthread.php?p=550676
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Here's the regulator I used for my auto off circuit. Digikey #425-1713-1-ND. There are quite a few other as well.
-Phil
That is similar...I was thinking the resistor on the I/O line would prevent the MOSFET gate from being pulled low...Of course, I wouldn't have used a 100K pull-up resistor I would have used 10K. Unfortunately I do not have any P-Channel MOSFETs on hand...Only several N-Channel so I can't really test the theory anyway. =( In retrospect I remember Beau's circuit working for a friend who happened to spot his thread and had a use for it, but the current of the system would be limited by the 2N3906, which is under 200 mA I believe...Still, for a battery powered circuit it's pretty hard to beat.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I got an even simpler solution from a german forum. They recomended to use a High-Side Switch like the BTS621 and connect it with two diodes to the button and to the µC
Thomas
Thank You for your reply
I look at the Data Sheet it show a test· circuit· but it dose not give all of the part· value
What· circuit do you use with this chip
Thank You for any help that you can give me in this matter
http://www.sharpsma.com/Page.aspx/americas/en/part/PQ1X501M2ZPH/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any·
·
·
·
·
Sam