Pi4 latched power switch
-
Hello, I'm Chris.
I'm fairly new to Raspberry Pi and coding. I have watched a few videos in the past to make some retropie gaming systems. I'm working on a project that I want to use a latched switch to turn on and safely shut down the Pi 4 I'm using. Building gaming systems I know how to use a momentary switch to accomplish this. So the question is can I use a latched switch on the gpio pins to turn on and shut down a Pi 4.
Thank you for your time
-
In case you have not found it yet by yourself: [1] discusses this.
TL;DR you will need some extra circuits (monostable circuit or timer IC NE556) to do this.
And in addition to the StackExchange post you will also need a circuit for the falling edge of the latched switch.
Then you can use the "momentary switch approach" [2]
[1] https://electronics.stackexchange.com/questions/589099/converting-latching-switch-to-momentary-output
[2] https://raspberrypi.stackexchange.com/questions/77905/raspberry-pi-3-model-b-dtoverlay-gpio-shutdown#77918
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.