Power switch option?

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 3 replies, has 3 voices, and was last updated by Profile photo of runshadowfaxrun runshadowfaxrun 1 year, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #103563
    Profile photo of runshadowfaxrun
    runshadowfaxrun
    Participant

    Hey everyone. Can I add my huge thanks to all contributors (especially floob and techtipsta) as a newcomer with no linux experience – everything works very well and is of exceptional quality.

    I am just finishing off the physical building of my project, and need to decide on a few last things.

    One of the issues I seem to be having with my pi 2 B is occasional corruption of data on my SD card, resulting in fsck errors and strange behaviours (deleting my images from scraping on each reboot claiming they contain errors, for example).

    I am hoping to fix this by using a proper shutdown method as opposed to simply pulling the usb cable out. For my final build I won’t have a keyboard available – I am using an IPAC-2 to interface a standard arcade buttons and joysticks with a couple of extra microswitches for function buttons.

    How difficult is it to program one of these microswitches to function as a “soft” power button (via input through the IPAC-2)? Or would purchasing something like the PowerBlock be what I am after here?

    Thanks, and pictures coming soon!

    #103567
    Profile photo of herbfargus
    herbfargus
    Moderator

    This is a good thread that discusses various options:

    http://blog.petrockblock.com/forums/topic/how-do-you-turn-off-your-retro-pie/

    #103598
    Profile photo of labelwhore
    labelwhore
    Participant

    I’ve just been using a momentary switch and a pull up resistor connected to a couple unused pins on the GPIO, this triggers a script that issues the shutdown command.

    It’s probably the simplest, least expensive option IMO.

    In case my PI ever freezes, I have another momentary switch connected to the reset pins on the PI as well. this one is for emergency use only, because it has the same risk of corrupting your SD card, but has come in handy a couple times.

    Here’s a solid article about your options:
    http://www.raspberry-pi-geek.com/Archive/2013/01/Adding-an-On-Off-switch-to-your-Raspberry-Pi

    http://www.th3rdwave.com/tracks/
    ^^ my other hobby

    • This reply was modified 1 year, 8 months ago by Profile photo of labelwhore labelwhore.
    • This reply was modified 1 year, 8 months ago by Profile photo of labelwhore labelwhore.
    #103965
    Profile photo of runshadowfaxrun
    runshadowfaxrun
    Participant

    Thanks labelwhore, I think this is what I’m looking for.

    Now that I think about it, obviously a keyboard input would not be able to do what I need because it wouldn’t be able to run a script at anytime.

    GPIO it is!

    Cheers

Viewing 4 posts - 1 through 4 (of 4 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar