I bought a raspberry about a year ago and i tried to do this with failure. now in the future i can say that with everything ive learned because of you and others i have accomplished this objective. Thank You for everything!!!!
I dont know why I didnt search for an ETA PRIME video first, you can spend about 20 mins searching google and then head on to youtube and see some guy drawing it out like a maths problem and a breadboard and all sorts of other videos and then boom ETA PRIME, so simple and exactly what I was looking for! I appreciate the time put into these instructions it is helping me out and saving me so much time!
Great tutorial man. I think you should mention that your script for some reason is updated and there is an extra step. I'm referring to the "1. sudo apt-get install update" If anyone is playing his video side by side as you are doing this. You'll need to start at 2. of his scrip while he starts at 1. and then just follow exactly how he goes from there. Also it's worth mentioning that you have the command to reboot the RPi at 13. before you the "sudo python /home/pi/scripts/shutdown.py &" command. At this point you should skip 13. (reboot) apply said command 14. and then run the reboot command (sudo reboot). Best of luck to everyone out there. Also not that if you have a faulty switch ( i did ) you'll see the retropie splash screen, but then the it will shut down again. Just unplug your switch, get a new one and try again.
SEEtheREPLAY You are a lifesaver! The parts you mentioned corrected my issue. I couldn't get anything to happen with my switch until I ran across your comment. Thank you for taking the time to provide your input!
I realize this is now a year old but I'm using it now so I thought I'd add this. You should still do step 1, its just he got the command wrong. Should be sudo apt-get update This ensures you get the latest versions of the software you are about to install and should be done before installing software on linux.
@@GarrettBlackmon Hey thank you ! that worked great like you said. you def have to do this code first or it wont install properly. thanks for the update!
THANK YOU SO MUCH! Following along with you is my much preferred way of accomplishing these tasks! Really so much easier than trying to decipher 15 pages of text!
hey ETA when I try to do "wget pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz" (without the quotation marks) it is giving me a 404 error. What should I do?
this worked flawless for me. Im not that great with tapping in remote to the PI so I typed every thing out per your copy and past and it worked perfect. Thank you for doing a COMPLETE how to with all the info!!
For some reason I cannot download from megadownload. So basically I typed in all the commands straight off the video. To my immense surprise it all works! Very nice.
Do you mean where you are entering text into NANO? Nano is a linux version of Notepad. At that point you are simply editing a text file that contains instructions the Pi will use later. Forgive me if I misunderstand.
For those of you that have a Raspberry Pi 4, replace step 6, 7, and 8 with the ones below and it will work. Next you need to get RPi.GPIO: 6. wget pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.7.0.tar.gz Uncompress the packages: 7. sudo tar -zxvf RPi.GPIO-0.7.0.tar.gz move into the newly created directory: 8. cd RPi.GPIO-0.7.0
YES!!! Did this today to my cab and worked like a charm! Easy Peasy! I like how fast it works and I wired mine to a seperate LED button. Thanks ETA Prime!
This worked great. I saw many complicated tutorials involving soldering and resistors, but all I needed was to figure out a way to take a power switch from an old PC to hook up to my Pi 3. Downloading your text file instructions worked wonderfully. Thank you!
For those building a pigrrl2, this works great. If using top tft button change script from pin 5 to pin 13. Thanks ETA for making this and other very helpful raspi videos.
Thank you SO MUCH. I was building my RetroPie Table with EXACTLY these buttons and had a couple to spare. Perfect.. now to drill one more hole with my forstner bit..
Cool deal. Got it working! Thanks! As a side note, the reason you can't use CTRL-X is probably because you haven't set up your keyboard as a US keyboard in raspi-config. Run sudo raspi-config and go into Internationalisation options and change the keyboard layout. Select something like a generic 101 key PC keyboard and then on the next screen if it doesn't have English (US) before your options, pick Other and go down to English (US) then go to the top and select English (US). This should fix all your key mapping problems. (Note that you do have to have a keyboard attached to the Pi for the keyboard layout tool to work)
Awww yea thanks ETA PRIME. Now I have one of the original switches in my Atari 2600 pi case hooked up to allow me to turn the thing on and shut it down properly. Your instructions worked great :)
Brilliant! Had a little trouble as the password for my pi user wasn't raspberry. Had to reset it. After that I managed to follow your excellent instructions no problem. Now to do the LED :)
love it! i just started to search for raspberry pi buttons and got a notification about this video. works well on raspian (I for doing it quickly, i skiped the first 2 steps)
please be advised, entire /R/ subdirectory on the PyPi site no longer exists so the file being fetched via wget is no longer there (just tried this last night). as well, it's 'sudo apt-get update'
I rarely comment on the videos I watch but I bought a Pi and have been playing with it and your video have been a great source of information for me. a big thanks for that. I just used this video to setup a on and off switch on my Pi and the video and step were very easy to follow and I succeed with the setup but I realize something that is if you leave the Pi plug after turning it off after a while the Pi turn on back by itself. at first, I thought I turn it on but i turn it off and waited again and sure enough, it turned back on. so small thing but wanted to let you know. thanks again and bye
ange aka Same exact thing is happening with my Pi. The switch works great for shut down and turn on. But after shutting down, and not unplugging- it turns itself back on after a while. Have you found a fix for this?
@@SPRTN085 I haven't found a fix. I use the on/off switch for quick shutdowns, and have the pi power supply plugged into a wall outlet that's controlled by a lightswitch. After a shutdown I wait about 10 seconds and just turn off the lightswitch.
@@mmxmarc Ive started hitting the power button on the back of the cabinet after a shutdown. I've resigned to this being the way. Can't find any other solution unless I next attempt a hardware pull up resistor.
really nice guide, if you can't type in the password screen like i had trouble, remember it just doesn't show your text is being entered and that your login password may be different
Honestly, this was easier than I thought... I'd say I'm disappointed in that, but that would be an utter and complete fabrication. Thank you for this and then some!
thanks for this tutorial i just completed the power switch however i have a tad conflict..i have a cooling fan that plugs into gpio pins 6 and..8? is there a way to move this around or somewhere else the fan could be stuck or is it possible to hook both a wire from this power switch AND a wire from the fan (both ones that need the gpio 6 pin) into it?
Respectfully, I started having issues with the directions from the first...however, after I changed "sudo apt-get install update" to "sudo apt-get update". Everything started working fine. YMMV
Just use the built in "on screen keyboard", I use it almost every single day on my 55" tv since it's easier than getting out the wireless keyboard for it. I only use a real keyboard when I have to type a bunch of stuff but "ctrl x" would work fine.
hey, you can use vi instead of nano. Once in vi you will need to press [i] before pasting the text then [Esc :wq Enter] to save. Excluding the brackets, they are just there to make it clear what the keybord input is.
Love the info. This procedure needs to be updated for the RPi4. Be sure that RPI.GPIO v .7 and not .5 is installed otherwise Error 'RuntimeError: This module can only be run on a Raspberry Pi!' will occur. I renamed the directory and .egg file in '/usr/local/lib/python3.7/dist-packages' then reinstalled with 'sudo pip3 install RPi.GPIO'. This updated it from '0.5.11' to '0.7.0' and the script worked properly. Note: If you decide to make the change to 3.7, be sure to alter the command to the 'rc.local' file from 'sudo python /home/pi/scripts/shutdown.py &' to 'sudo python3 /home/pi/scripts/shutdown.py &' otherwise it won't run at startup. BTW: I would assume you could do the same for python2 in '/usr/local/lib/python2.7/dist-packages' as well, at which point you wouldn't need to alter the command in 'rc.local'. - Hope it helps.
Thank you Mr. Prime. If I want to splice the wire and run it to the floor of my cabinet where my Pi is housed, is there a specific type of wire or gauge I should use?
You can also install all the packages in the command line, Just by adding a space and doing this sudo apt-get install python-dev python3-dev gcc python-pip Saves on time. Other than that ETA great video
The text file from your Dropbox has a couple extra steps/commands that are not in the video. I’d assume we just enter those in order as they come up! Thanks.
Using the same tutorial this should work: For organization: At 8:45 in line 41 in NOTEPAD++ change "/shutdown.py" to "/restart.py" The command: At 9:09 find line 67 in NOTEPAD++, change "shutdown -h now" for "shutdown -r now" 1: According to askubuntu "reboot" may power your device on maintenance mode so shutdown -r is preferable.
Hey there, I’m using one of these goop pins for the fan. Will this work on any other pins or can the fans be moved. I guess they’d need to be reprogrammed.
ETA PRIME I did everything you said it work flawlessly thank you for this video. so what if I also wanted to connect and fan its telling me to use 1 of those pins any other options for the fan?
ETA Prime, great tutorial, got mine working. After shutting down the PI, I see red led lights still on my Raspberry Pi, is it powered off or in a off state only? I used an old power button I had, but I want to order one. The link you provided connector to the Raspberry Pi is different. Where did you buy your power button and cable. I like the wiring connector as it is smaller and more secure it appears.
Worked on an old B+! the only things I did differently was move the ground pin to pin 9 since my pin 6 was occupied by my Pi-Fan's ground...and also I used the current version of RPI.GPIO script , which is 0.7.0 instead of 0.5.11...Cheers!
I bought a raspberry about a year ago and i tried to do this with failure. now in the future i can say that with everything ive learned because of you and others i have accomplished this objective. Thank You for everything!!!!
I dont know why I didnt search for an ETA PRIME video first, you can spend about 20 mins searching google and then head on to youtube and see some guy drawing it out like a maths problem and a breadboard and all sorts of other videos and then boom ETA PRIME, so simple and exactly what I was looking for!
I appreciate the time put into these instructions it is helping me out and saving me so much time!
Great tutorial man. I think you should mention that your script for some reason is updated and there is an extra step. I'm referring to the "1. sudo apt-get install update" If anyone is playing his video side by side as you are doing this. You'll need to start at 2. of his scrip while he starts at 1. and then just follow exactly how he goes from there. Also it's worth mentioning that you have the command to reboot the RPi at 13. before you the "sudo python /home/pi/scripts/shutdown.py &" command. At this point you should skip 13. (reboot) apply said command 14. and then run the reboot command (sudo reboot). Best of luck to everyone out there.
Also not that if you have a faulty switch ( i did ) you'll see the retropie splash screen, but then the it will shut down again. Just unplug your switch, get a new one and try again.
SEEtheREPLAY You are a lifesaver! The parts you mentioned corrected my issue. I couldn't get anything to happen with my switch until I ran across your comment. Thank you for taking the time to provide your input!
I just got it working first try using your extra helping comments. Thank you ETA Prime - I'm an absolut beginner at this. Great work 👍
I realize this is now a year old but I'm using it now so I thought I'd add this.
You should still do step 1, its just he got the command wrong.
Should be sudo apt-get update
This ensures you get the latest versions of the software you are about to install and should be done before installing software on linux.
are you saying Step 14 should go before Step 13?
and what is the correct command in the first step?
"sudo apt-get update" ?
@@GarrettBlackmon Hey thank you ! that worked great like you said. you def have to do this code first or it wont install properly. thanks for the update!
THANK YOU SO MUCH! Following along with you is my much preferred way of accomplishing these tasks! Really so much easier than trying to decipher 15 pages of text!
HOW TO ADD A LED - ua-cam.com/video/of2p-FHg6nY/v-deo.html
Does any coding need to be changed when adding the LED? or is adding it as specified in the image enough.
ETA PRIME And could i paste all the commands in one command? I mean it doesnt change the order or so
hey ETA when I try to do "wget pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz" (without the quotation marks) it is giving me a 404 error. What should I do?
Never mind
Captain 8track how did you fix it? I'm getting the same.
this worked flawless for me. Im not that great with tapping in remote to the PI so I typed every thing out per your copy and past and it worked perfect. Thank you for doing a COMPLETE how to with all the info!!
No problem! I'm glad you got it up and working!
For some reason I cannot download from megadownload. So basically I typed in all the commands straight off the video. To my immense surprise it all works! Very nice.
James Pelt I am having to do the same.
Al goes well until I type the command into the blank script then I save press enter and get nothing.
Do you mean where you are entering text into NANO? Nano is a linux version of Notepad. At that point you are simply editing a text file that contains instructions the Pi will use later. Forgive me if I misunderstand.
James Pelt from 9.04 in. that part mate.
from the # downwards.
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
import subprocess
GPIO.setmode(GPIO.BOARD)
GPIO.setup(5, GPIO.IN, pull_up_down = GPIO.PUD_UP)
oldButtonState1 = True
while True:
buttonState1 = GPIO.input(5)
if buttonState1 != oldButtonState1 and buttonState1 == False:
subprocess.call("shutdown -h now", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
oldButtonState1 = buttonState1
time.sleep(.1)
James Pelt I will try it mate. ĺike I say I have to type it out so I think it's just getting it all just right.
thank you.
For those of you that have a Raspberry Pi 4, replace step 6, 7, and 8 with the ones below and it will work.
Next you need to get RPi.GPIO:
6. wget pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.7.0.tar.gz
Uncompress the packages:
7. sudo tar -zxvf RPi.GPIO-0.7.0.tar.gz
move into the newly created directory:
8. cd RPi.GPIO-0.7.0
Thank you
Thank you!! You solved my problem!!
Thanks. Works like a charm. Previously I could power up the PI but the shutdown did not work
YES!!! Did this today to my cab and worked like a charm! Easy Peasy! I like how fast it works and I wired mine to a seperate LED button. Thanks ETA Prime!
Worked great! Nice to see this is all possible without having to solder headers to the "run" holes
This worked great. I saw many complicated tutorials involving soldering and resistors, but all I needed was to figure out a way to take a power switch from an old PC to hook up to my Pi 3. Downloading your text file instructions worked wonderfully. Thank you!
Great tutorial, I didn't manage connecting to Raspberry PI2 using Putty, so I entered all the commands one by one and it worked. thanks a lot!
Hi! did you have any issues getting python? The links seem to not be valid
No, I used both python links, and both worked for me.
You have out done yourself once again ETA Prime. My micro push button is working perfectly on Retropie. Can't wait for the next vid.
For those building a pigrrl2, this works great. If using top tft button change script from pin 5 to pin 13. Thanks ETA for making this and other very helpful raspi videos.
This is exactly what i was looking for for my Retropie RPi3 - Thank you so much.. Keep up the great work!!
I just installed this now in 2023 and it works. it is amazing! Thank you for this tutorial.
ETA PRIME, Thank you so much for your raspberry pi tutorials they are the most helpful tutorials i've found. Thank you so much again!!
Started at step 2 with everything else from that step forward and it worked like a charm!!!!!!!!!
Your the man, your guide is still helping people all this time later. Thanks man!
You are the best source for understanding all thing about the Raspberry Pi and Retropie systems. Thanks much!
Thank you SO MUCH. I was building my RetroPie Table with EXACTLY these buttons and had a couple to spare. Perfect.. now to drill one more hole with my forstner bit..
Tried this for the first time in 2021. Works like a charm, thanks!
Cool deal. Got it working! Thanks!
As a side note, the reason you can't use CTRL-X is probably because you haven't set up your keyboard as a US keyboard in raspi-config. Run sudo raspi-config and go into Internationalisation options and change the keyboard layout. Select something like a generic 101 key PC keyboard and then on the next screen if it doesn't have English (US) before your options, pick Other and go down to English (US) then go to the top and select English (US). This should fix all your key mapping problems. (Note that you do have to have a keyboard attached to the Pi for the keyboard layout tool to work)
sentry07 yeah that was it , it was odd because all my other keyboards worked without the set up
Awww yea thanks ETA PRIME. Now I have one of the original switches in my Atari 2600 pi case hooked up to allow me to turn the thing on and shut it down properly. Your instructions worked great :)
Brilliant!
Had a little trouble as the password for my pi user wasn't raspberry. Had to reset it. After that I managed to follow your excellent instructions no problem.
Now to do the LED :)
love it! i just started to search for raspberry pi buttons and got a notification about this video. works well on raspian (I for doing it quickly, i skiped the first 2 steps)
Great tutorial. However at 12:14 it looks like it just powers off the pi. Is there a way to configure it so it does the safe shutdown with the button?
please be advised, entire /R/ subdirectory on the PyPi site no longer exists so the file being fetched via wget is no longer there (just tried this last night). as well, it's 'sudo apt-get update'
using 'sudo apt-get update' instead of whats in the video will solve this issue?
When do you enter this command? I'm incredibly new to all of this.
I rarely comment on the videos I watch but I bought a Pi and have been playing with it and your video have been a great source of information for me. a big thanks for that. I just used this video to setup a on and off switch on my Pi and the video and step were very easy to follow and I succeed with the setup but I realize something that is if you leave the Pi plug after turning it off after a while the Pi turn on back by itself. at first, I thought I turn it on but i turn it off and waited again and sure enough, it turned back on. so small thing but wanted to let you know. thanks again and bye
ange aka Same exact thing is happening with my Pi. The switch works great for shut down and turn on. But after shutting down, and not unplugging- it turns itself back on after a while. Have you found a fix for this?
@@mmxmarc I have the same issue. any fix you've found?
@@SPRTN085 I haven't found a fix. I use the on/off switch for quick shutdowns, and have the pi power supply plugged into a wall outlet that's controlled by a lightswitch. After a shutdown I wait about 10 seconds and just turn off the lightswitch.
@@mmxmarc Ive started hitting the power button on the back of the cabinet after a shutdown. I've resigned to this being the way. Can't find any other solution unless I next attempt a hardware pull up resistor.
really nice guide, if you can't type in the password screen like i had trouble, remember it just doesn't show your text is being entered and that your login password may be different
Best Raspberry pi related videos in UA-cam! You Rock! Thank You!
Essentially this would be the same for pi zero, I would just have to solder to the GPIO right?
Excellent tut as always ETA. My power bottom works perfectly in my retropie arcade cabinet.
Thank you for the video. I am just starting to experiment with a Raspberry Pi to set up retro gaming system and this will help immensely.
I was wondering at 5:34 you moved your window and the borders only moved I like it how do you do that?
Just did it on a custom retropie img ...still worked like a charm. Thank you.
Honestly, this was easier than I thought... I'd say I'm disappointed in that, but that would be an utter and complete fabrication. Thank you for this and then some!
You are the best ETA. Thanks for "eating" your valiable time by helping us out. Respect....
Fantastic! I'm a newbie in using Raspberry Pi and this solves my problem!
thx for having you :) appreciate your videos, voice and explaining style :)
Great tutorial, used the current script version on pi 3B and everything worked flawlessly.
the connection is timing out on step 6 for me. you run into anything like that?
Thanx! Worked great. I used pin 5 and 9 though as 4 and 6 are my 5v fan. The only thing now is that the fan still runs after the pi shuts down.
Do you have instructions on how to add a power switch like this but for Batocera?
thanks for this tutorial i just completed the power switch however i have a tad conflict..i have a cooling fan that plugs into gpio pins 6 and..8? is there a way to move this around or somewhere else the fan could be stuck or is it possible to hook both a wire from this power switch AND a wire from the fan (both ones that need the gpio 6 pin) into it?
Thanks ETA PRIME ! Works perfectly. Although I'm just getting into raspberry pie and retro pie, your videos have helped a lot. Great work!
Pound-for-pound, thisnis still the best tutorial video on UA-cam
Awesome work its videos like these that help grow the raspberry pi community!
Respectfully, I started having issues with the directions from the first...however, after I changed "sudo apt-get install update" to "sudo apt-get update". Everything started working fine. YMMV
Awesome! worked out beautiful! thank you for dumbing it down for all of us that are learning.
does this work for the pi4 with the same steps?
You dont have to type y ;D Because when the Y is big (Y/n) then is yes selected. Just press enter :D (6:36 and before/after)
Keep up the great work with the Pi, Loving your vids!
THANK YOU!!!!! I have used your channel for nearly all of my pi arcade projects.
Just use the built in "on screen keyboard", I use it almost every single day on my 55" tv since it's easier than getting out the wireless keyboard for it. I only use a real keyboard when I have to type a bunch of stuff but "ctrl x" would work fine.
Many thanks. 100% works on Raspberry Pi 3 B +
YOU SIR ARE AN ABSOLUTE LEGEND. WORKED FLAWLESSLY - GREAT GUIDE!
This is what i wanted :) Thank you soooo much for this Video! Your Tutorials are both entertaining and helpfull :) Keep on and 1000 Thanks.
hey, you can use vi instead of nano. Once in vi you will need to press [i] before pasting the text then [Esc :wq Enter] to save. Excluding the brackets, they are just there to make it clear what the keybord input is.
Perfect diction! Reciting these detailed instruction with such diction makes everything so much simpler to follow.
Around to doing this - your videos are the best.
Excellent video!! Keep making these informative videos on Raspberry Pi
Thank you good sir, you now have my (Black/white/blue hydro-dipped OG-PS1) Blueberry PieStation fully functional. 1000 likes to you if I could.
Thanks ETA, worked like a charm! I love my new switch.
Still working today. Thank you for the great tutorial.
Love the info.
This procedure needs to be updated for the RPi4. Be sure that RPI.GPIO v .7 and not .5 is installed otherwise Error 'RuntimeError: This module can only be run on a Raspberry Pi!' will occur.
I renamed the directory and .egg file in '/usr/local/lib/python3.7/dist-packages' then reinstalled with 'sudo pip3 install RPi.GPIO'. This updated it from '0.5.11' to '0.7.0' and the script worked properly.
Note: If you decide to make the change to 3.7, be sure to alter the command to the 'rc.local' file from 'sudo python /home/pi/scripts/shutdown.py &' to 'sudo python3 /home/pi/scripts/shutdown.py &' otherwise it won't run at startup.
BTW: I would assume you could do the same for python2 in '/usr/local/lib/python2.7/dist-packages' as well, at which point you wouldn't need to alter the command in 'rc.local'. - Hope it helps.
Awesome tutorial! Thanks a lot for all the raspberry pi/retropie videos.
worked perfectly here, Thanks !! . But if you showed the message "starting" and "turning off" would look better
Thank you Mr. Prime. If I want to splice the wire and run it to the floor of my cabinet where my Pi is housed, is there a specific type of wire or gauge I should use?
Is there a way to use this set up for a nespi case? All the current ones I see require soldering.
I love smart people, thank you so much. And keep up the great work.
Thanks for all the awesome help with the pi.
You can also install all the packages in the command line, Just by adding a space and doing this
sudo apt-get install python-dev python3-dev gcc python-pip
Saves on time. Other than that ETA great video
THANKS For creating this, i've built a retro arcade cabinet and where worried about the ruined sd card possibility.
thank you I plan on getting another sd card and running Retro pie as well to learn more especially about getting arcade like desktop boxes running.
love your tutorials so easy to follow and to the point. Thanks :)
Hey thanks!
I got my RetroPi working with a simple button switch!
1:02 What handle is that?? It looks nice.
It worked like a charm, thanks. Now i need to build something to hold the button xD
Thank you for this video. I have a question though, is it OK to run this with no resistor? I've heard a lot of debate on that
Thanks ETA! Best tutorial. Works magic!
Great instructions mate. Thank you 👍👍
Just did this and it works perfectly. Thank you sir!
Thank you so much for a very clear and helpful tutorial! It works perfect!
Thank you so much man, it worked at my rasp pi 3b+ wirth running magic mirror os
nice tutorial, I was looking at buying a mausberry add on board to do the same, but this seems simpler and cheaper.
thanks ... can we do that with another sensor like ultrasonic sensor? if distance is more the shut off and if distance is near it will wake up ....
The text file from your Dropbox has a couple extra steps/commands that are not in the video. I’d assume we just enter those in order as they come up! Thanks.
to fix that ctrl+x issue on the dell keyboard you could use Vi rather than nano, to save in Vi you can use :wq! - just a thought
Wondering if a rest button could be set up to mimic pressing start and select
Great video! Works just as expected.
Thanks man! This works perfectly on a Pi Zero W!
great work!! could you do one for a reset button
Using the same tutorial this should work:
For organization:
At 8:45 in line 41 in NOTEPAD++ change "/shutdown.py" to "/restart.py"
The command:
At 9:09 find line 67 in NOTEPAD++, change "shutdown -h now" for "shutdown -r now"
1: According to askubuntu "reboot" may power your device on maintenance mode so shutdown -r is preferable.
Hey there, I’m using one of these goop pins for the fan. Will this work on any other pins or can the fans be moved. I guess they’d need to be reprogrammed.
ETA PRIME I did everything you said it work flawlessly thank you for this video. so what if I also wanted to connect and fan its telling me to use 1 of those pins any other options for the fan?
Is this just the same as pulling the power from the RPi though, or does the switch actual shut down the system?
To copy & paste text from notepad to putty. (Copy whatever text you need) Hit Shift button, then INSERT button on your keyboard.
ETA Prime, great tutorial, got mine working. After shutting down the PI, I see red led lights still on my Raspberry Pi, is it powered off or in a off state only?
I used an old power button I had, but I want to order one. The link you provided connector to the Raspberry Pi is different.
Where did you buy your power button and cable. I like the wiring connector as it is smaller and more secure it appears.
Worked on an old B+! the only things I did differently was move the ground pin to pin 9 since my pin 6 was occupied by my Pi-Fan's ground...and also I used the current version of RPI.GPIO script , which is 0.7.0 instead of 0.5.11...Cheers!
Managed to make it work with a Pi 0 W, thank you!