RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Pi4 latched power switch

    Scheduled Pinned Locked Moved Help and Support
    latchedpowerswitch
    2 Posts 2 Posters 263 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Carraudio
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • LolonoisL
        Lolonois
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        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.