Arcade1Up - Use Builtin Switch to Turn Raspberry Pi on and off

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • UPDATE: Watch the Reversing the Arcade1Up Power Button On Modded Cabinet with Pi video after this to fix the buttons if you have the same problem as I (and many others) have had: • UPDATE: Read Descripti...
    Watch ETA Prime’s Video for the script. Links for both the video and commands are below.
    If you need step by step info, watch the video: • RetroPie Add A Power B...
    If you know how to copy and paste command, grab the Text file with commands: mega.nz/#!ppdy...
    Instead of the momentary switch he describes, plug your cable from the Off/On switch instead.
    Modified Arcade1Up Street Fighter MAME; when games go rogue, reboot safely and then get rid of the bad games.
    This is part three of the Tame the Mame tips series.
    I appreciate you taking the time to watch my videos.
    Please Subscribe, like the Video and comment below to Help the channel grow. Please share the videos.
    If you want to modify your Arcade1Up game cabinet, the parts list below will show you what you need.
    My hope is that these series of videos will help you enjoy your cabinets for years to come.
    Not looking for a total overhaul Mod?
    Here are some ideas for smaller mods projects: amzn.to/2AvMWvr (affiliate link)
    Here is the parts list for my complete Galaga Modified cabinet: amzn.to/2rfKIvg (affiliate link).
    Here is the parts list for my complete Street Fighter 2 Modified cabinet: amzn.to/2BIpjRb (affiliate link).
    Here are some Arcade1Up Items of Interest. ebay.to/2UVhOxM (affiliate link).
    Affiliate links support the channel, you don't pay more, but the site pays a very small commission for the referral to this channel.
    Thanks for your support.
    All the files that I mention in my videos are here: bit.ly/2LftuqK (Dropbox)
    Love the Channel? Leave a tip to support the channel and show your appreciation for making your Arcade1Up cabinet(s) more enjoyable: paypal.me/tech...
    MUSIC Credit: 8 Bit Summer! by HeatleyBros - Learn More at bit.ly/2LTyula

КОМЕНТАРІ • 100

  • @techrev9999
    @techrev9999 5 років тому

    Fixed the script today for mine, posted it below. Works perfect. No clue where to post it. Have fun.

    • @otrich
      @otrich 5 років тому

      Where is below? I can 't find it.

    • @ronaldwells5186
      @ronaldwells5186 5 років тому

      @@otrich change these lines:
      oldButtonState1 = False #change this to False from True
      while True:
      #grab the current button state
      buttonState1 = GPIO.input(5)
      # check to see if button has been pushed
      if buttonState1 != oldButtonState1 and buttonState1 == True: # change this to True from False

  • @feral7094
    @feral7094 Рік тому

    That is one dope intro video. Boondocks is so good

  • @josue3434ify
    @josue3434ify 5 років тому +22

    Turn the botton around

  • @toaddawet
    @toaddawet 5 років тому +3

    Nice video DL. I'm planning to do this (just haven't gotten to it yet), and I read somewhere else that the button needed to be flipped around. That's probably what I'll do with mine.

  • @Twisted-wizard
    @Twisted-wizard 2 роки тому

    Greatings from Flint.

  • @newcreationNB
    @newcreationNB 3 роки тому

    Can u help, I just change my lcd controller board and I also install the raspberry pi. But I have no audio. I tried plugging it from the raspberry no audio then I tried from the board and same no audio.

  • @UMK3HumanSmokeUMK3
    @UMK3HumanSmokeUMK3 5 років тому

    The problem I see here is what does the code say for power on and power off. If you watch ETA primes video he is using an arcade push button which is completely different from that on off switch your using. With the push button the circuit is always open. Then you press it and it closes the circuit telling the board to turn off but when you release the push button the circuit opens back up and the raspberry pie stays off intill it sense a button press”closed circuit again”. Your on and off switch on the arcade1up cab is either indefinitely open or indefinitely closed. So you turn the switch on it completes the circuit and shuts the raspberry down but that switch doesn’t open again intill you slide the switch back off that’s is why your on on button is backwards. So you have to look at what the code/ script says to do. You would need a code that says when circuit is open indefinitely the power stays off. When the circuit is complete indefinilty the power stays on indefinitely intill the circuit is open again wich turns it off.

  • @bombswabs3041
    @bombswabs3041 5 років тому +2

    Beautiful Machine. Thanks for this info. Im going to do this with my machine.

  • @amandafryar
    @amandafryar 5 років тому +1

    Did you try switching the orientation of wire end of the button? As in, put the red cable where the black is and the black where the red is(essentially just turning it around) the button might be polarity sensitive. Might be worth trying before actually switching the physical button around. :)

    • @amandafryar
      @amandafryar 5 років тому

      Detroit Love aww darn! That’s so odd. At least switching the button around is also an easy fix. I’m about to be doing this same mod to mine(I’m super excited) so I’m curious if I run into the same issue!

  • @CollaborationNation
    @CollaborationNation 5 років тому

    Hey Detroit Love, I see you already have bat tops, but if you ever need more or in different colors to review, let me know!

  • @JP-vz2qn
    @JP-vz2qn 5 років тому

    Man, I had this working with the reverse buttons. Switched the button and now switch doesnt work. Checked wires, etc. and all looks good. When removing the pins from 5/6, the pi shuts off. When put back in, the pi turns on and runs. No idea what happened, but my switch wont work at all now. Any ideas?

  • @Charliemmafan
    @Charliemmafan 5 років тому

    Did you replace just the top of your ball tops with bat tops or did you replace the entire joysticks for higher-quality ones and based on what you did how is the Improvement if there's an improvement?

  • @EndoFury1
    @EndoFury1 5 років тому

    Any idea how to mod the power switch to work with a PC? I'm putting an i5 with a decent enough gfx card in it to also run modern arcade games as well as retroarch, but I want to be able to use the built in switch.

    • @nathanmarshall7523
      @nathanmarshall7523 4 роки тому

      For a build like this, and what I am doing with mine is Using a Transformer and a relay, So the switch will be powered by a transformer that will go through switch to a relay and kill power to all 110Volt plug ins. I don't think you wanna run 110 volts through the stock switch.

  • @vernonpope926
    @vernonpope926 5 років тому +1

    How about a detail video on the software part on the power button install I spent 4hrs trying someone else's script. dtoverlay=gpio-shutdown for 4hrs and nothing

  • @Sergio-nf4qp
    @Sergio-nf4qp 4 роки тому +1

    Hello, and thanks a lot for your video. I disconnected the fan and connected the switch exactly as you suggested but it does not work. I used pin 5 and 6 but it does not work. Any idea why? Thanks!

    • @Sergio-nf4qp
      @Sergio-nf4qp 4 роки тому

      Detroit Love thanks a lot! Do you have any tutorial for that? I don’t know much :(

  • @UMK3HumanSmokeUMK3
    @UMK3HumanSmokeUMK3 5 років тому

    So does this just turn the pie off? will the monitor turn off when it doesn’t sense a video source then?

  • @MiKeFish2012
    @MiKeFish2012 4 роки тому +1

    Hey man just did the mod can the volume also we used aswell i really want to use the original on and off switch and volume buttons?

    • @DetroitLove
      @DetroitLove  4 роки тому

      Yes. Look in this playlist. How to Build a Modded Arcade1Up (RetroPie) Cabinet Learning Series by Detroit Love

  • @8BitLatinGamer
    @8BitLatinGamer 5 років тому

    That will turn of the raspberry pi but not the monitor. How can I turn off the monitor?

  • @2Money
    @2Money 5 років тому +1

    Hey Detroit Love.... great vid.... question: how do you use the existing connection from the power switch on the arcade 1up when the pins on the retropie are so close together? I can’t plug that existing connection to my Pi .....thanks in advance!

    • @2Money
      @2Money 5 років тому

      Detroit Love ....just figured it out. There’s a “cap” on the existing connection that you need to remove first before you can plug it into your retropie... otherwise it won’t fit in between the pins on the retropie.... looks like we are good to go! Thanks so much for your help.... again great video.... Happy gaming!

  • @stevepug6842
    @stevepug6842 5 років тому

    I added this to my arcade1up SF cab, any help with this would be appreciated. Alright so I got everything working. (or had everything working I should say) I was able to turn it on and off a few times with the stock power button.Then I mounted everything;
    But now the pi wont power on at all with the power button plugged into pin 5 and 6. Any ideas?

  • @arwinlacre1672
    @arwinlacre1672 5 років тому +1

    By the way which retropie image you got in your raspberry pi and how much gb is it..?😊

  • @greybush38
    @greybush38 5 років тому +3

    If you can pop the switch out, then reverse it.

  • @darkh3lm3t34
    @darkh3lm3t34 5 років тому +3

    You turned my lights off! Hahaha. Damn Google.

  • @guts311
    @guts311 5 років тому

    I am using this script almost exactly as shown in ETA prime's guide and the button wired up as shown here - the Arcade 1Up stock on/off slider switch wired up to pins 5 and 6. Off triggers the shutdown script. It is working fine except that when I shutdown the Pi using the button/script, it seems to lose any newly changed metadata, such as newly favorited games. But, when I shutdown using the shutdown option within the ES menu instead, it retains new data/favorites fine. What am I doing wrong or what do I need to change in the script for it to not lose metadata changes?

    • @guts311
      @guts311 5 років тому

      @@DetroitLove makes sense, thanks

    • @guts311
      @guts311 5 років тому

      @@DetroitLove so, using ETA Prime's script setup the way he tells but using the On/Off Arcade1Up slider switch to activate it...is the safe shutdown via script still happening or is this just cutting the power without safely shutting down? Does the switch type affect that at all...toggle vs momentary?
      Also, if I were using a momentary switch like ETA Prime instead of the slider, would the metadata saves still not be happening, or would it be different?

  • @Th3DarkCanuck
    @Th3DarkCanuck 4 місяці тому

    I don't know if it's a good idea to cut power like that to the Pi.

    • @DetroitLove
      @DetroitLove  4 місяці тому +1

      The switch actually shuts down the power properly. I do however, use my Google home smart device to shut all the power off. I did lose an image once so it's best to have a backup of the image just in case.

    • @Th3DarkCanuck
      @Th3DarkCanuck 4 місяці тому

      @@DetroitLove Nice

  • @stevepug6842
    @stevepug6842 5 років тому

    Hey Detroit Love I have the same button kit as you and 4 of buttons the LED isnt lighting up? any idea why? the are all wired the same.
    Im in the Detroit area also let me know if I can hit you up for any advice.

    • @stevepug6842
      @stevepug6842 5 років тому

      ​@@DetroitLove ok I got every button to turn on except for one pf the red buttons on player 1 side. Is it possible to order to a replacement red button same model as the one in the kit you have? (with the red,blue,green,yellow,white buttons)
      Also it seems that either my player one or player 2 joystick keeps getting inverted, how do I fix this?

  • @PonPonWeii
    @PonPonWeii 5 років тому

    I’m going to try this soon. This is just a theory but maybe when you installed the script, the switch was on the Off position. So when you switch it to on it read that as off. So I’m thinking maybe before we install the script, we should have the switch set at On first? Just a thought

    • @PonPonWeii
      @PonPonWeii 5 років тому

      Detroit Love will do. I just need to gather the necessary parts to complete my mod

  • @rloweable
    @rloweable 5 років тому +2

    Switched the orientation on my power button. Easy to do. Just be careful as there are screws and glue.

  • @Dryxel
    @Dryxel 3 роки тому

    Need to get yourself a momentary switch for that button

  • @jasonflint2713
    @jasonflint2713 5 років тому

    Detroit love, hook a brother up with that intro. Thats fire!💯

    • @JP-vz2qn
      @JP-vz2qn 5 років тому +1

      @@DetroitLove Awesome, thanks. Andy advice on how can I add this intro to my machine? Tried Google. Not having luck.

  • @pdxmetal
    @pdxmetal 5 років тому +1

    With a case, raspberry pi 4 case fan uses pins 4 and 6 by default. But pins 2 and 4 are 5v power, either can be used, and 6 is ground. The case fan should have each connector separated so you can plug the ground to the next nearest ground pin, which is 9. So you should be able to plug the fan into 4 and 9, and the A1U power switch to 5 and 6. I just tested the fan at 4 and 9, and it is running fine.

  • @Rob55Levo
    @Rob55Levo 5 років тому

    I'm having a problem where the pi will just randomly turn on with out me going near it? Anyone have a fix?

  • @negative1723
    @negative1723 5 років тому +1

    hope you're getting a control panel replacement and protector soon.
    later
    -1

  • @junebug102388
    @junebug102388 5 років тому

    How did you get yours to work I'm have error with the script that I followed from eta prime?

    • @exile101
      @exile101 5 років тому

      What script?

  • @justmike1561
    @justmike1561 5 років тому

    Hi Detroit Love. (having issues here)I used the info from your video, Rival Boss and the ETA Prime video and modded my SF2 cabinet with a Raspberry Pi 3 b+. (I flipped my power switch and plan to get it working once the rest is running) I went with a 128Gig file from arcade kings. Everything booted up, have some sound issues and worse cant plan any games. I was able to get sound on the demo screens showing the previews but once I load a game the sound is gone and my coin slot / select button doesnt give credits. I config both controls, everything is set up and lights up and match all wire connections. joystick and buttons work but no coin input and it wont take me back as a hotkey either (they show button designation), I have a wireless KB I have to press ESC to get out. The USB controllers connections match, all pins are in and when I config both controls and buttons they match each other. Any idea what I need to config? I've spent half the day trying to get it work and no luck. Thanks!
    Great video again! I have the switch swapped and ready to get the script set up, I want to have the games work first though!

    • @justmike1561
      @justmike1561 5 років тому

      @@DetroitLove Thanks. I used the [128GB]-Gold.Community.Edition v7.0-4.4.2-VirtualMan.and.2Play from Arcade Punks. It took a little over 7 hours to DL! It looks really nice and clean otherwise, but disappointing if that's the issue. I will grab a smaller image and try a different card. Thanks again for the advise.

    • @justmike1561
      @justmike1561 5 років тому

      @@DetroitLove Which 128 GB Wolfanoz one were you looking for? I need to find another site that has it and DL it myself! Send me a 128 gig card and I'll etch it for you and return it. I'm laughing at the 7+ hours because I remember back in the day I used to run a BBS on a 300 baud overclocked modem to 450 baud on my C-64. Spent 14 hours trying to DL Spelunker and it failed at the end. Like everything else nowadays ... I want it now.(I'm DL'ing it on wireless myself) I need to get another micro sd card to etch the 32 gig Wolfanoz version I Dl'd yesterday and get this machine running today. I'm not yet ready to give up on the 128 gig one I grabbed, so it's off to Best Buy or Walmart this morning. I also need to run that power on/off script you showed. I'm less tech savy nowadays but it doesn't look too difficult. I flipped the switch during my build and already put the wire to pins 5/6 on the Raspb PI 3B+.

    • @justmike1561
      @justmike1561 5 років тому

      I got it to work with the same 32 gig Wolfanoz image Rival Boss used. I was thinking my usb controller was bad, but that's not the case. I removed those overlays and everything works great. I just need to play around with the set-up and system and see how things work. If I remove the micro sd card and go with another card I imagine do I lose all the settings? Can I save the settings so that won't happen? Also I found it has the momentary switch power off script in Emulation Station already there but I need to be sure i'm using pins 5 and 6, because selecting to run the script from the menu didn't work. Worse case I enter all the commands from notepad++ and see.

    • @justmike1561
      @justmike1561 5 років тому

      @@DetroitLove Thanks again for the heads up! I'm loving this machine. I think my next mod will be to do something that utilizes the volume switch properly or maybe a slider pot switch to work the amp from the front in the same switch position. I really wish Radio Shack was still in business! Looking forward to more of your videos.

  • @vansvans332
    @vansvans332 5 років тому +1

    That's a easy fix on the power button problem. You wired the switch on the PCB wrong. Leave the switch on the On position. The ground wire is correct just move the other wire around till it powers. When it does that's where you hook it up to. Send me a pic of the current of the wire set up for the switch.

    • @vansvans332
      @vansvans332 5 років тому

      @@DetroitLove must be a short somewhere, if it powers on then powers off. might be a bad pcb board on the on/off switch.

  • @myopinionz
    @myopinionz 5 років тому

    dose this turn off the monitor and amp too?

  • @martybarron816
    @martybarron816 4 роки тому

    When you do that does it leave the monitor powered on?

  • @N3WERHamRadioElmer
    @N3WERHamRadioElmer Рік тому

    Flip the wiring on the Pi or Flip the Power button upside-down

  • @juanvalencia6898
    @juanvalencia6898 5 років тому +1

    You just need to swap the wires, they’re wrong on the on & off, that’s all you need to do.

  • @arwinlacre1672
    @arwinlacre1672 5 років тому

    Just try to take off the on/off button and turn it around...

  • @Smithka33
    @Smithka33 5 років тому

    Did you have to extend the wire for the on off switch?

    • @Smithka33
      @Smithka33 5 років тому

      Detroit Love and then does it just plug in to connector 5/6 on the PI

    • @Smithka33
      @Smithka33 5 років тому

      Detroit Love not yet taking down my notes getting prepared everything is on order. No extra parts are needed right just the current wire right

  • @ien2023
    @ien2023 5 років тому

    This step by step video link by ETA Prime is dated and the link code doesn't work for the Python 3 line install.
    This link works for me. It's the same steps but in a package with only 1 line to paste:
    pie.8bitjunkie.net/retropie-shutdown-and-startup-switch-the-easy-way
    .
    Pin setting is still the same.

  • @MrMoneybag1988
    @MrMoneybag1988 4 роки тому

    You need a dust cover for your control panel.

  • @XellosMetallium
    @XellosMetallium 5 років тому +1

    2:23 OH GAWD!

    • @XellosMetallium
      @XellosMetallium 5 років тому

      I noticed mine has a thin clear coat on top, is this standard? I wish arcade1up could quickly send out my control panel cover. In their last email, they remind me not to ask them about delivery status.

  • @thenateyshow8900
    @thenateyshow8900 4 роки тому

    Does this need a safe shutdown?

    • @DetroitLove
      @DetroitLove  4 роки тому +1

      This does do a safe shut down. The only downside to it is it won’t save any changes that you made prior to turn it off. If you need to save changes or even a high score, you need to use the menu system to restart the emulationstation and then use this to turn it off

  • @bsdude010
    @bsdude010 5 років тому

    Thank you

  • @troymcdonald
    @troymcdonald 3 роки тому

    Isn’t there a way to power up the pi as the monitor and marquee light up… and the opposite, turn off the pi, then the monitor and marquee… With one switch? I have kids 😊

    • @DetroitLove
      @DetroitLove  3 роки тому +1

      Like this? Arcade1UP Mod - search for “Turn Everything, Yes Everything OFF with Stock Power Switch”

    • @troymcdonald
      @troymcdonald 3 роки тому

      @@DetroitLove Is that the one you did with that special plug brick? I saw that one after my initial question, thanks. But I never saw any follow up video because you still had issues. If I am referencing the wrong video, let me know, thanks.

  • @craigr306
    @craigr306 2 роки тому

    turn the switch around is the only way todo it

  • @brealistic6377
    @brealistic6377 3 роки тому

    Why don't you just spin the button around?

    • @DetroitLove
      @DetroitLove  3 роки тому

      Because you can just do it with software
      Use Arcade1Up Builtin Power Switch without Reversing the Hardware - Arcade1Up Mod Life ua-cam.com/video/nn3jecm1GA4/v-deo.html

  • @samuellam2379
    @samuellam2379 5 років тому

    Thanks

  • @Stichtuation
    @Stichtuation 5 років тому

    which pi intro is that?

    • @2toottoot
      @2toottoot 5 років тому

      @@DetroitLove how you do that bro? Ordered my rasberry p3 B it should be in mail by friday

  • @edstar83
    @edstar83 5 років тому

    I don't know if you know of not but in order to not corrupt the SD card image you need to set up a script. ua-cam.com/video/4nTuzIY0i3k/v-deo.html

  • @TheKendor69
    @TheKendor69 3 роки тому

    Yo man just pop that switch out turn it around and press it back in

  • @carlitoswei5301
    @carlitoswei5301 5 років тому

    I followed the instructions and connected the on/off switch to pins 5/6 but nothing happened. I'm using a Raspberry pi 3 b+ model. Does that make a difference? How can I power on and off my arcade???
    Thanks

    • @carlitoswei5301
      @carlitoswei5301 5 років тому

      @@DetroitLove Which Wolfanoz image? I downloaded the "32GB arcade only" image (which I saw the script lines "shutdown.py") but still doesn't work

    • @tonyturbo13
      @tonyturbo13 5 років тому

      I got you man. I just installed the same image on a Pi3B+ and followed this video by Detroit Love regarding the ON/OFF switch and got it working, even though the same thing happened, the ON/OFF positions are reversed. In the image, disable the script. Install the script that is used for the new Pi Nespi Cases. I'm not sure if it is allowed to post scripts and what not in comments sections but if it is, Detroit Love, let me know. If not, shoot me a message guys and I'll send it to you. It works like a charm.

    • @therisendead7
      @therisendead7 5 років тому

      Yep, I had to replace the script that was already provided in the Wolfanoz image by level1online...it works BUT NOW the system just randomly shuts down...argh.

    • @therisendead7
      @therisendead7 5 років тому

      @@DetroitLove I tried everything with using the stock on/off switch, to no avail...it just kept randomly shutting down. But it works with no problem when I connect it to an arcade button. I'm just going to install another button for my on/off switch.

    • @tonyturbo13
      @tonyturbo13 5 років тому +1

      Yeah, I switched the on/off switch around. Guys, the script that is included in the image is for an on/off button, not a switch. They work differently. I used the script for the new pi cases and it works with no issues.

  • @techrev9999
    @techrev9999 5 років тому +1

    #!/usr/bin/python
    import RPi.GPIO as GPIO
    import time
    import subprocess
    # we will use the pin numbering to match the pins on the Pi, instead of the
    # GPIO pin outs (makes it easier to keep track of things)
    GPIO.setmode(GPIO.BOARD)
    # use the same pin that is used for the reset button (one button to rule them all!)
    GPIO.setup(5, GPIO.IN, pull_up_down = GPIO.PUD_UP)
    sdown_flag = False
    while True:
    #grab the current button state
    buttonState1 = GPIO.input(5)
    # check to see if button has been pushed
    if buttonState1 != False and sdown_flag == False:
    subprocess.call("shutdown -h now", shell=True,
    stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    sdown_flag = True
    elif buttonState1 == False:
    sdown_flag = False
    time.sleep(.1)

  • @DanielMartin1974
    @DanielMartin1974 5 років тому +1

    Better code here for the power switch & volume switch... github.com/dmanlfc/arcade1up

  • @killx123
    @killx123 5 років тому +1

    That only working if u install a pie? Or would that work with a pandora box to