The NEW Build Your Own Arcade Controls

Main => Raspberry Pi & Dev Board => Topic started by: CASUSMC0311 on April 29, 2016, 04:07:05 pm

Title: Power switch for Pi 3
Post by: CASUSMC0311 on April 29, 2016, 04:07:05 pm
Hello all, this is my first post. I tried looking around and finding an answer before I posted and was unable to. So here it goes. I decided after watching my friend build a Coleco mini donkey kong I was going to build a unit myself. He is helping me however, I just wanted to see what ideas everyone has. I am modifying an icade cabinet and equipping it was a raspberry pi 3 and a 10.1 inch screen. It will be Mame, NES, SNES and Genesis equipt. I had to modify the cabinet a little for the screen to fit but it looks great. I am debating whether or not to place a power switch on the back, or just run a micro usb off the unit to the wall. I saw a unit on ebay that had a lighted power switch and it looked great. I tried contacting the seller but he will not answer me. The problem I am having is that I cannot find a toggle switch with a cord that will run 5V. Does anyone have a website or a suggestion on fabricating one? Thank you in advance.
Title: Re: Power switch for Pi 3
Post by: Goglu2 on April 30, 2016, 02:14:38 am
Hi,

probably not what you're looking for but I got 1 of each from banggood.

http://www.banggood.com/USB-22AWG-Power-Cord-With-Switch-1_5M-Cable-For-Raspberry-Pi-2-p-1044555.html (http://www.banggood.com/USB-22AWG-Power-Cord-With-Switch-1_5M-Cable-For-Raspberry-Pi-2-p-1044555.html)

and

http://www.banggood.com/USB-2_0-Type-A-to-Micro-5pin-B-Female-Converter-Adapter-Connector-p-1015354.html (http://www.banggood.com/USB-2_0-Type-A-to-Micro-5pin-B-Female-Converter-Adapter-Connector-p-1015354.html)

I use them with my Pi power supply.
Title: Re: Power switch for Pi 3
Post by: CASUSMC0311 on April 30, 2016, 12:16:44 pm
Thank you for the response. Those seem to be the only ones I can find as well. I'm wondering if I can just find something at the hardware store and splice in some different wires.
Title: Re: Power switch for Pi 3
Post by: ballboff on May 16, 2016, 06:18:11 am
I've heard that you can solder a momentary switch into p6 header on the raspberry pi, and with a simple bit of programming you can get it to shutdown and restart your pi.  Haven't tried this myself though.  You could connect the led wire of the momentary switch to pins 1 and 6 on the gpio of the pi, to give you a power light...
Title: Re: Power switch for Pi 3
Post by: darthpaul on May 18, 2016, 12:15:50 am
You probably want to use something like this https://mausberry-circuits.myshopify.com/products/shutdown-circuit-use-your-own-switch (https://mausberry-circuits.myshopify.com/products/shutdown-circuit-use-your-own-switch) powering the Pi off by just cutting off the power could corrupt the SdCard.
Title: Re: Power switch for Pi 3
Post by: ballboff on May 18, 2016, 09:05:32 am
I've heard that you can solder a momentary switch into p6 header on the raspberry pi, and with a simple bit of programming you can get it to shutdown and restart your pi.  Haven't tried this myself though.  You could connect the led wire of the momentary switch to pins 1 and 6 on the gpio of the pi, to give you a power light...

This is the method I was referring to... http://raspi.tv/2012/making-a-reset-switch-for-your-rev-2-raspberry-pi (http://raspi.tv/2012/making-a-reset-switch-for-your-rev-2-raspberry-pi)

I'm sure i've seen a software shutdown method though...
Title: Re: Power switch for Pi 3
Post by: mrdepths on May 19, 2016, 09:30:53 am
Just bought one of these - https://lowpowerlab.com/shop/ATXRaspi-R2

I like the idea of an on and off button, safely without corrupting the SD card.

Title: Re: Power switch for Pi 3
Post by: geeteoh on May 19, 2016, 04:58:03 pm
Powering down and up a modern system has always confused me.  Vintage dedicated systems, you just put a switch on the power cord. Modern systems you need to safely shut down the processor first then remove power to it and everything else in the cabinet. It seems as you would need a two step process on modern systems.

When you issue the "shutdown" command on the RP, the processor safely halts, but there is still power to the board. Any power glitch (off then on) to the RP, and it will restart. There are power shutdown boards available for the RP which do both (interrupt the processor for shutdown, then remove power), but they only do so for the RP board. You would need to power all your other items in the cabinet (monitor, marquee, etc) from the USB ports on the RP to get your entire cabinet to turn off. I have found a couple of RP shutdown boards that act like uninterruptable power supplies. If you remove power from them, they provide some temporary stored power to the RP and execute a safe shutdown. With this type of board you can just put a switch on the power supply line to your cabinet and it will shutdown everything nicely with a single step.

I shut off my RP cabinet in two steps. 1. Go through the menu on the front-end and pick "shutdown" and wait for the RP to halt.  2. Turn off a switch on my power cable (removing all power to the TV, marquee, sound system, button lights). Power up is simple (for mine) - just turn back on the switch on the power cable.

How does everyone else shut down and power up their game cabinets?
Title: Re: Power switch for Pi 3
Post by: yotsuya on May 19, 2016, 10:53:39 pm
(http://uploads.tapatalk-cdn.com/20160520/5a661ab1c26ce5abb22ec2e8bf869a82.jpg)
Title: Re: Power switch for Pi 3
Post by: pbj on May 19, 2016, 11:08:54 pm
Here we go again.....

Title: Re: Power switch for Pi 3
Post by: DaOld Man on May 22, 2016, 04:39:10 pm
Hello  CASUSMC0311, and welcome to the board!
I have to agree with Darthpaul about the mausberry switch. For around $16 dollars you get a small board that you can solder a switch to. Or they offer one with the switch already attached to it.
This has been an ongoing conversation on here (explaining PBJ's comment), and I dont know what the answer is.

Here is one such conversation:

http://forum.arcadecontrols.com/index.php/topic,148233.0.html (http://forum.arcadecontrols.com/index.php/topic,148233.0.html)
Title: Re: Power switch for Pi 3
Post by: CASUSMC0311 on May 23, 2016, 08:35:41 am
haha thanks for the info gents. I didn't know it was such a contested topic. ;D