Adapting RetroFlag Shutdown/Reset Script for use without retroflag case
-
Hello there, I have been following a previous thread posted here about setting up a dedicated button to exit a rom and go back to the emulation station menu. It was suggested to use this code made for the RetroFlag cases. I would like to use this code for my arcade cabinet as I think the reset button function is quite handy (and being able to turn it on without reaching behind the cab to unplug/replug is something I have always meant to implement as well). I have the reset working fine and the LED powering on (with a 330 ohm resistor between the LED and the GPIO pin). The GPIO pins are hooked up as mentioned in the thread with the second lead of both buttons and the LED going to ground pin (pin 6). What I don't have working is the power button, and I believe the issue lies with Pin 7 (the shutdown feedback pin) which I read is related to a special function of the RetroFlag cases. I understand (I hope correctly) that this pin is related to a breakout PCB with a dedicated "safe shutdown" switch which is housed in the RetroFlag cases. I don't know enough about these cases to determine if it's possible for me to wire up something similar or if altering the code is the better route.
Full disclosure—I am much more familiar with soldering (both point to point in tube radios and on PCBs), than I am with code. I am nothing more than a hamfisted hobbyist with a keyboard and a backup copy of my SD card when it comes to editing or writing code for Pi (which was also why using the RetroFlag code was appealing). If there is a documented way of making a circuit that functions the same way as that used by the RetroFlag case so there is no need to change the code, I am happy to go this route. I saw a few similar things googling around but don't know how similar they are... and I am not sure my search terms on google have been adequate. However, maybe altering the code is better. I am sure both physical and coded solutions would also be useful to future googlers. :)
-
@mkp132 have you looked into running a mausberry switch? I have a Pi3b+ setup and running in and old Sears Super Video Arcade shell as the case. I installed the mausberry circuit and used the original console switch as the on/off. All you need to do is install the script and that should work.
You can even wire the mausberry off of the original cabinet power switch.
It might be easier and save you time to do it that way
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.