Me and my dad were been looking for making small Pi to bigger Pi out of old PC case from 2004. So I thought that I need power button to power Pi but it's in the PC case so I took those but then i don't know how power Pi so I gone online and I looked how to add power switch to RPI2 but it turns out that it only found as RPI1 and that's not what I need but GPIO headers on RPI1 has less plugs and it uses power from here and I don't have power button that requires micro USB on the button heres a pic. So tell me how i can power RPI2 like this But if this is not correct then tell me with a picture and with text on comments below
1 Answer
Personally, this is my favorite method of shutting down my Rpi2.
http://www.recantha.co.uk/blog/?p=13999
Essentially it allows you to shut down your pi with a paper clip, or another conductive object.
You could probably modify this to work with a button.
Basically, you touch to GPIO headers and the pi runs the shutdown command.
Pretty cool if you ask me...Not as elegant as a button but it still works.
-
@da-boos then which gpio pin i have to use? My faveruite is pc power button so tell where it connects beauce that one you gave me i dint able to understand– user40614Jan 29, 2016 at 17:21
-
@watonis according to the directions. Take a paper clip (or other conductive object) and touch the last two vertical GPIO pins at the same time. If you’re using a 26-pin Pi, it will be GND and GPIO7. If you’re using a 40-pin Pi, it will be GND and GPIO21. See the diagram below.– TheXedJan 29, 2016 at 17:23
-
1You could definitely modify this to work with a button. Use the same script and commands in the link, and simply wire a normally open momentary push button to the correct GPIO pins. Pressing the button will perform the same task as touching the paper clip to the pins. Jan 29, 2016 at 17:24
-
@daBoss i still cant understand i never used gpio before i have few pics taken from xperia t3 from few angles to see clearly theres two ways to know how many gpios pins i have and i cant count them all beacuse i forget them too quick heres. 1.im using raspberry pi 2 model b. 2. the image imgur.com/a/xuadx And edit the image with paint program and send to me so i can understand better beacuse my dad as well doesnt know wich one plug goes to– user40614Jan 29, 2016 at 17:41
-
@watonis Last two vertical headers as outlined in the picture of my OP. Its not rocket science... no need to count...– TheXedJan 29, 2016 at 17:49
shutdown
to stop the operating system then disconnects the power; this is distinct from a button which simply runs theshutdown
command but leaves the power to the pi on. If you want to be able to turn the pi back on with the button, you need more than that (see the new duplicate).