0

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 picI dont need this one!. So tell me how i can power RPI2 like thisWhere to plug?? But if this is not correct then tell me with a picture and with text on comments below

4
  • All models of pi are exactly the same in this regard. You cannot do this without a power button including a microUSB jack unless you power through the 5V pin, which is risk prone since it bypasses fuses, etc.
    – goldilocks
    Jan 29, 2016 at 18:57
  • @goldilocks read DaBoss'ses messages
    – user40614
    Jan 29, 2016 at 19:07
  • I've read the whole thread. What is it in that answer (which does not do what you want, by the way -- in other words, it is wrong) do you think changes anything?
    – goldilocks
    Jan 29, 2016 at 19:08
  • Sorry, that other duplicate was the wrong one. The switch in your picture runs shutdown to stop the operating system then disconnects the power; this is distinct from a button which simply runs the shutdown 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).
    – goldilocks
    Jan 29, 2016 at 19:14

1 Answer 1

1

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.

enter image description here

27
  • @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
    – user40614
    Jan 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.
    – TheXed
    Jan 29, 2016 at 17:23
  • 1
    You 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
    – user40614
    Jan 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...
    – TheXed
    Jan 29, 2016 at 17:49