Main > Raspberry Pi & Dev Board

Power button for retropie

(1/5) > >>

GrizzlyThunder:
Hey all,

Is there a script for the retropie to hook up an arcade button to the gpio for the power function. My cocktail cabinet currently is out of range of the wireless router therefore I believe I would need to directly write to the pie.

Titchgamer:
There are scripts out there that will turn the pi off.

I use a mausberry circuits power switch to turn my pi on and off though.

1500points:
ETA Prime on YT shares a python script that works great for powering off the pi with a momentary push button.


The scripts here work equally well and give you a few more options, like an LED light and a game reset button, too.
http://www.westaby.net/nespi/assembly2.html
doesn't require the pcbs you see in the pic, just-->
put a latching switch across gpio pin 5 to gnd.
put a momentary switch across gpio pin 7 to gnd.
put an LED+resistory across gpio pin 8 to gnd.
gpio pinout- http://www.westaby.net/nespi/images/electronics/RP2_Pinout.jpg

when i was first getting started with this stuff i bought an expensive powerblock. never could get it to install properly, so tossed it in a box.

chito:
Posts like these that contain stuff that everyone has issues with should be a sticky! awesome find. I knew about ETA primes solution and even Daft Mikes.. but this other guy Westaby seems very easy to follow and has made improvements. awesome!

GrizzlyThunder:

--- Quote from: 1500points on May 01, 2017, 09:17:23 am ---ETA Prime on YT shares a python script that works great for powering off the pi with a momentary push button.


The scripts here work equally well and give you a few more options, like an LED light and a game reset button, too.
http://www.westaby.net/nespi/assembly2.html
doesn't require the pcbs you see in the pic, just-->
put a latching switch across gpio pin 5 to gnd.
put a momentary switch across gpio pin 7 to gnd.
put an LED+resistory across gpio pin 8 to gnd.
gpio pinout- http://www.westaby.net/nespi/images/electronics/RP2_Pinout.jpg

when i was first getting started with this stuff i bought an expensive powerblock. never could get it to install properly, so tossed it in a box.

--- End quote ---

I tried following those guides but the problem I'm having is that my workshop is out in BFE and there's no internet out there. Therefore I have to connect with Ethernet, which I cannot successfully connect. I found a few scripts that I can manually enter but the pi is not recognizing the language change and won't run it.

I figured this part of the project would be difficult, but even the dang language is hassling me.


Sent from my iPhone using Tapatalk

Navigation

[0] Message Index

[#] Next page

Go to full version