Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Custom Power Switch for Mame  (Read 3300 times)

0 Members and 1 Guest are viewing this topic.

Bigbadmamajama

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:October 15, 2018, 08:27:18 am
  • I want to build my own arcade controls!
Custom Power Switch for Mame
« on: August 10, 2018, 07:41:41 pm »
Greetings everyone,
First of all, thank you to everyone on this site for all of the help and instructions they continue to provide. There's no way I could have gotten as far as I have with my build without this website. Now...on to my question:

I'm about to begin the wiring for my cabinet and I have the following in mind:

A smart surge protector that everything will be plugged into:
https://www.amazon.com/gp/product/B000P1QJXQ/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1

A power button on the main control panel that will be plugged into the "Control Outlet" on the smart strip. This is the power button:
https://www.amazon.com/gp/product/B00ZR7MMXO/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

The power button would have to be wired in such a way that it ends in a three pronged outlet. So when I push the button down it engages the control outlet thus powering on the tv, rasp pi, sound system/stereo and LED's. When I push the power button again, it turns it all off.

I more than likely plan on manually powering down the PI to make sure it doesn't corrupt the system, or I could of course add a script. But I simply don't know enough about electrical in order to wire the power button properly. Any suggestions?

Greatly appreciated


PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9394
  • Last login:Today at 02:12:01 pm
  • Designated spam hunter
Re: Custom Power Switch for Mame
« Reply #1 on: August 11, 2018, 07:34:46 am »
A smart surge protector that everything will be plugged into:
https://www.amazon.com/gp/product/B000P1QJXQ/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1
The smart surge protector isn't bad, but might not be necessary. (see below)

A power button on the main control panel that will be plugged into the "Control Outlet" on the smart strip. This is the power button:
https://www.amazon.com/gp/product/B00ZR7MMXO/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

The power button would have to be wired in such a way that it ends in a three pronged outlet. So when I push the button down it engages the control outlet thus powering on the tv, rasp pi, sound system/stereo and LED's. When I push the power button again, it turns it all off.
Plugging a switch into the smart strip master outlet . . . ummm, that's not how a smart strip works.   :dizzy:

The idea is that when you turn on the computer, monitor, or other electrical device plugged into the master outlet the power control circut in the strip senses the current draw and applies power to the slave outlets.

The RasPi probably doesn't draw enough power to trigger the power control circuit.

I more than likely plan on manually powering down the PI to make sure it doesn't corrupt the system, or I could of course add a script. But I simply don't know enough about electrical in order to wire the power button properly. Any suggestions?
Check out the video and script in this post.

Wiring the pushbutton is easy, just look for wires with female Dupont pins. (i.e. cut a F-F Dupont jumper in half)
----------------
It would be less expensive to use a switched IEC power inlet and regular power strip for power.

Use the script and pushbutton mentioned in the video for safe sutdown of the RasPi before you turn off the inlet rocker switch.

There's information about IEC power inlets and how to wire them at https://web.archive.org/web/20150928061832/http://newwiki.arcadecontrols.com/index.php?title=Wiring#IEC_Fused_Power_Inlet_with_a_Lighted_Switch.


Scott

Bigbadmamajama

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 7
  • Last login:October 15, 2018, 08:27:18 am
  • I want to build my own arcade controls!
Re: Custom Power Switch for Mame
« Reply #2 on: August 13, 2018, 07:03:08 pm »
Thanks for the info. I'll for sure check into your recommendations. Updates to follow.