Main > Project Announcements
javeryh's Salisbury Beach Twin Tullys
<< < (74/80) > >>
PL1:
Looks like there are two ways to proceed.

Option 1 - Go simple like Mike suggests.

Use the power inlet on/off switch to apply/remove power.

Use the power button on the GPIO for safe shutdown.
- Switch off the power inlet several seconds after the monitor switches off.

Stash a backup SD in the cab and keep a backup at home so you can repair a corrupted SD.

Option 2 - Go more complicated.

Like Zebidee suggested earlier, it looks like the smart strip is allowing enough current through the switched outlets to power the amp and the LED strip.

Disclaimer: I'm not sure exactly how to do this, but it can be done.

Use a relay board controlled by one of the GPIO pins on the RasPi to switch power on/off to the amp and LED strip.
- During startup you would need to set that GPIO pin to high.
- During shutdown you might need to set the GPIO pin to low if the shutdown doesn't remove the logic high voltage from that pin.
- The relay would be spliced into the Hot wire of the power splitter cord before the split.  Leave Ground and Neutral always connected.
- The power splitter cord would be plugged into an always-on outlet.

  Relay board - https://www.amazon.com/HiLetgo-Channel-optocoupler-Support-Trigger/dp/B00LW15A4W/
NOTE: This relay board can trigger on high or low.  Most boards only trigger on low.

 

  Power splitter cord - https://www.amazon.com/Cablelera-Power-Extension-Splitter-ZWACPQAG-14/dp/B00FRODUR4/?th=1

 

----------------------

Mike's way is a lot easier and less expensive.   :cheers:


Scott
Gilrock:
Someone should create a GUI with a shutdown menu option. ;)
Mike A:
Can we get an accounting of how many times a Pi setup for emulation actually corrupted a drive for people here?

pbj:
It happened to me when cutting power sitting at the Emulation Station menu, and I had used the Pi less than 10 times.  Now I do a shutdown from the menu which is annoying.

javeryh:
It happened to me once with a pi3 before I had any idea it was even a thing.  I downloaded some ridiculous image with games and emulators set up but I hated it and after spending hours deleting games and changing the stupid artwork that came with it I corrupted the memory card by pulling the plug.


--- Quote from: PL1 on February 08, 2022, 02:01:36 pm ---Looks like there are two ways to proceed.

Option 1 - Go simple like Mike suggests.

Use the power inlet on/off switch to apply/remove power.

Use the power button on the GPIO for safe shutdown.
- Switch off the power inlet several seconds after the monitor switches off.

Stash a backup SD in the cab and keep a backup at home so you can repair a corrupted SD.

Option 2 - Go more complicated.

Like Zebidee suggested earlier, it looks like the smart strip is allowing enough current through the switched outlets to power the amp and the LED strip.

Disclaimer: I'm not sure exactly how to do this, but it can be done.

Use a relay board controlled by one of the GPIO pins on the RasPi to switch power on/off to the amp and LED strip.
- During startup you would need to set that GPIO pin to high.
- During shutdown you might need to set the GPIO pin to low if the shutdown doesn't remove the logic high voltage from that pin.
- The relay would be spliced into the Hot wire of the power splitter cord before the split.  Leave Ground and Neutral always connected.
- The power splitter cord would be plugged into an always-on outlet.

  Relay board - https://www.amazon.com/HiLetgo-Channel-optocoupler-Support-Trigger/dp/B00LW15A4W/
NOTE: This relay board can trigger on high or low.  Most boards only trigger on low.

 

  Power splitter cord - https://www.amazon.com/Cablelera-Power-Extension-Splitter-ZWACPQAG-14/dp/B00FRODUR4/?th=1

 

----------------------

Mike's way is a lot easier and less expensive.   :cheers:

--- End quote ---

Thanks.  I was searching for info on relays but not sure what I'm looking at.  The IOT Power Relay I linked up above is made for the pi.  You plug a USB cable into the pi and then strip the other end to go into the relay.  When the pi comes on, the signal gets sent to the relay to power everything else.  Seems simple but they are sold out everywhere and I can't seem to find a similar product.

Option 1 is already set up.  I can power on the cabinet using the switch on the rear where power comes in.  Everything will boot as expected.  Then to shut it down there is a button inside the coin door that will turn the pi off and once that happens I can hit the switch on the back of the cab to completely cut the power.  This is not ideal because of the 2-step shutdown and the main reason of the switch being up against the wall.

Option 2 deserves some additional consideration.  I have the time since I'm no longer on a deadline with these but I'm really effing annoyed and want to be done.  But if I can figure it out and learn something towards the next project I'd be happy.  If these cabs were mine I'd just live with it but I really need to make things as easy as possible for the intended users.
Navigation
Message Index
Next page
Previous page

Go to full version