RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    New build, want a power button option.

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    11 Posts 7 Posters 4.0k 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.
    • Nathan1031982N
      Nathan1031982
      last edited by

      Hi everyone here! I got a new build of a RetroPie running on a Raspberry 3. This is my first Pi project, but I am loving it so far.
      Eventually, I want to add a power button to my Pi. I would prefer to be able to turn off the Pi by either a button, or by using the Emulation Station interface. Either way would properly issue the shutdown command, as well as turn off the Pi.
      I know that might not be possible, but I can hope.
      Regardless, I will be looking into a new case to hold everything at that point as well, so that shouldn't be an issue.
      Currently, I have a CanaKit 5V 2500Mah power supply.

      Is there a way to do this?
      Thank you in advance,
      Nathan

      1 Reply Last reply Reply Quote 0
      • C
        Concat
        last edited by

        For the button, you need to buy a board in order to accomplish the shutdown safely. I went with the Powerblock and it worked on first test when I followed their instructions.

        You can perform a safe shutdown from within EmulationStation, yes, but this doesn't turn off the pi. It simply puts it into a sleep/standby mode where you can safely disconnect the power. Some people have just put an inline button on the USB line to accomplish this without having to physically remove the mirco USB cable from the Pi.

        1 Reply Last reply Reply Quote 0
        • P
          PaulCheffus
          last edited by PaulCheffus

          Hi

          I've done that but in order to shutdown from the menu you will need something that uses a momentary switch and as far as I am aware the PowerBlock uses a latching switch.

          For mine I used an ATXRaspi and wrote my own short script that is called from emulationstation.sh when either shutdown or restart is selected. You will also need a bc337 transistor and a 1k resistor with the resistor connected to a GPIO pin (I used gpio4) and the other end to the base of the bc337. The emitter and collector of the transistor are connected across the switch contacts. The script takes gpio4 high for a number of seconds depending on whether you want to shutdown or reboot.

          Cheers

          Paul

          1 Reply Last reply Reply Quote 0
          • monstermadeofmanM
            monstermadeofman
            last edited by

            Might I suggest having a look at these guy;

            http://mausberry-circuits.myshopify.com/

            You can purchase either the one with the blue led momentary switch already on it, or get the one without a button and add one yourself.

            They are really good quality and so easy to install.

            Not all those who wander are lost

            1 Reply Last reply Reply Quote 0
            • Nathan1031982N
              Nathan1031982
              last edited by

              Thanks for the info Concat, Paul, and Monster.
              I'll have to look into these options a bit and go from there.

              1 Reply Last reply Reply Quote 0
              • P
                petrockblog Global Moderator
                last edited by

                Of course, I also want to mention the PowerBlock here ;-) The PowerBlock issues a shutdown command regardless you are in EmulationStation or in any other program and safely shuts down your RPi. It also provides visual feedback, if you connect an LED to it. Furthermore, it provides additional pin outs for voltage in and voltage out, to give you the freedom to choose for different input connectors as well as to connect, e.g., a cooling fan or so. It is tested very well with RetroPie.

                P 1 Reply Last reply Reply Quote 1
                • P
                  PaulCheffus @petrockblog
                  last edited by

                  @petrockblog

                  Hi

                  Does it turn the Pi off from the Shutdown menu option in ES? Rather than just shutdown and leave the power on.

                  Cheers

                  Paul

                  1 Reply Last reply Reply Quote 0
                  • P
                    petrockblog Global Moderator
                    last edited by

                    Yes, it turns the power off, rather than leaving the power on for the RPi.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dawtyne10
                      last edited by

                      @Nathan1031982

                      here's another cool option I found through google for IR on/off board.

                      more info on same product

                      Has anyone tried this out yet? ...still waiting on mine to be delivered and tested out!

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zeus @dawtyne10
                        last edited by

                        @dawtyne10 said in New build, want a power button option.:

                        @Nathan1031982

                        here's another cool option I found through google for IR on/off board.

                        more info on same product

                        Has anyone tried this out yet? ...still waiting on mine to be delivered and tested out!

                        I'm in the same situation waiting on a PiBoard to be delivered :( but then again I only ordered it at the end of last week and MSL quote 10-15 days delivery from Thailand (where the boards are made) to Europe. I'll post up my experiences just as soon as it arrives and is installed.

                        1 Reply Last reply Reply Quote 0
                        • D
                          dawtyne10
                          last edited by

                          @zeus same here. my new board just came in, but haven't had a chance to test it out!

                          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.