Momentary power switch question
Posted: Tue Feb 19, 2019 8:45 pm
I'm working on a custom GBZ build. I'll be machining the housing from billet aluminum. I'm designing it from scratch so once it's off the CNC machine, all the parts should drop in. I have no problem with the mechanical side of things but I'm pulling my hair out trying to get the electrical side figured out.
My main problem right now is figuring out the power switch. I'm wanting to use a momentary push button instead of the slide switch. I don't want my kids to be sliding a power switch back and forth a 100 times, so in order to power the unit on and off, you will need to hold the power switch button for 5 seconds. After 5 seconds, I need to latch the EN HIGH of the Power Boost 1000c. In order to power the unit off, hold the power switch for 5 seconds and then have something that sends a signal to the PI GPIO to shut down with a script. Once shut down, latch EN LOW on the Power Boost.
So far I've been looking at the following to latch the EN...NPN/PNP combination, SCR Thyristor, and the 555 IC. I read somewhere that the 555 can be power hungry so it may not be the best choice for a battery powered device, there is a LMC555 but still may not be the best choice. When the unit is off, I would like to have all power consumption off. Seems like a 555 setup I saw, it would still draw a very small amount of current when the unit is off. I'm thinking a NPN/PNP combination might be the best option but I'm not sure how to go about adding the 5 second delay for both powering on and powering off.
Thanks in advance for your help. Looking forward to sharing my build on here.
Justin
My main problem right now is figuring out the power switch. I'm wanting to use a momentary push button instead of the slide switch. I don't want my kids to be sliding a power switch back and forth a 100 times, so in order to power the unit on and off, you will need to hold the power switch button for 5 seconds. After 5 seconds, I need to latch the EN HIGH of the Power Boost 1000c. In order to power the unit off, hold the power switch for 5 seconds and then have something that sends a signal to the PI GPIO to shut down with a script. Once shut down, latch EN LOW on the Power Boost.
So far I've been looking at the following to latch the EN...NPN/PNP combination, SCR Thyristor, and the 555 IC. I read somewhere that the 555 can be power hungry so it may not be the best choice for a battery powered device, there is a LMC555 but still may not be the best choice. When the unit is off, I would like to have all power consumption off. Seems like a 555 setup I saw, it would still draw a very small amount of current when the unit is off. I'm thinking a NPN/PNP combination might be the best option but I'm not sure how to go about adding the 5 second delay for both powering on and powering off.
Thanks in advance for your help. Looking forward to sharing my build on here.
Justin