GreenFeanor
Posts: 2
Joined: Mon Oct 15, 2018 10:08 am

Raspberry that turns on when you connect a GPIO to the mass?

Mon Oct 15, 2018 10:56 am

Hi everyone!

Here I want to turn off / start my Raspberry Pi model 3b + via a push button. I use the GPIO 13 which connects to the mass if you press the button. check http://pi4j.com/images/j8header-3b.png2

Python code is used to handle the extinction. A long press (5s) actually turn it off. but how to turn on back again???

it seems that waiting a few seconds and double click on the same button makes it start. But why the hell it starting? the code cannot affect it because the Rpi is "sleep" (the red led stays on but not the green). I waited in case it restart by itself but no.

anyone knows why it turnon when connecting GPIO 13 to the mass?

thanks in advance for your suggestions: slight_smile:


GreenFeanor
Posts: 2
Joined: Mon Oct 15, 2018 10:08 am

Re: Raspberry that turns on when you connect a GPIO to the mass?

Mon Oct 15, 2018 2:35 pm

Thank you but i can't use the pin 5 and 6 because of the I2C conflict. ( I'm using the I2C )

gordon77
Posts: 3402
Joined: Sun Aug 05, 2012 3:12 pm

Re: Raspberry that turns on when you connect a GPIO to the mass?

Mon Oct 15, 2018 5:21 pm

I don't know if you can move the power up from 5&6, only the Powerdown.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11009
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Raspberry that turns on when you connect a GPIO to the mass?

Mon Oct 15, 2018 7:12 pm

The PI has a "run pin" on a separate header (pin 2 of J2) that you can connect to GND to restart your PI, after you did a shutdown.
You still need to have the PI supplied with power, as a PI doesn't really have a power off state (without extra hardware).

Return to “Beginners”