New build, want a power button option.
-
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 -
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.
-
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
-
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.
-
Thanks for the info Concat, Paul, and Monster.
I'll have to look into these options a bit and go from there. -
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.
-
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
-
Yes, it turns the power off, rather than leaving the power on for the RPi.
-
here's another cool option I found through google for IR on/off board.
Has anyone tried this out yet? ...still waiting on mine to be delivered and tested out!
-
@dawtyne10 said in New build, want a power button option.:
here's another cool option I found through google for IR on/off board.
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.
-
@zeus same here. my new board just came in, but haven't had a chance to test it out!
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.