petergellert03
Posts: 1
Joined: Sat Mar 30, 2019 6:39 pm

shorting pins 5 and 6 while RPI is on

Sat Mar 30, 2019 6:49 pm

Hello, I know that if I short pins 5 and 6 when the RPI is asleep it will wake up, so I've connected a capacitive touch button(with a 3v3 vcc) on it, and I've got it waking up. The turn off will be performed by the user from a locally hosted Apache2 server (part of a bigger project, as we all are :D ).

Now all I want to know, if I accidentally short it while the PI is awake - because it is a capacitive "button" and it doesn't needs to be completely touched, if put my hand close (2-3 mm) it does the magic - will anything bad happen?

Thanks in advance :)

User avatar
AdamStanislav
Posts: 147
Joined: Sun Mar 10, 2019 2:44 am
Location: Wisconsin
Contact: YouTube

Re: shorting pins 5 and 6 while RPI is on

Sat Mar 30, 2019 9:53 pm

Perhaps this article answers your question.

klricks
Posts: 6777
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: shorting pins 5 and 6 while RPI is on

Sat Mar 30, 2019 10:37 pm

petergellert03 wrote:
Sat Mar 30, 2019 6:49 pm
Hello, I know that if I short pins 5 and 6 when the RPI is asleep it will wake up, so I've connected a capacitive touch button(with a 3v3 vcc) on it, and I've got it waking up. The turn off will be performed by the user from a locally hosted Apache2 server (part of a bigger project, as we all are :D ).

Now all I want to know, if I accidentally short it while the PI is awake - because it is a capacitive "button" and it doesn't needs to be completely touched, if put my hand close (2-3 mm) it does the magic - will anything bad happen?

Thanks in advance :)
By default shorting pins 5 & 6 will do nothing on a running RPi.

In order to add shutdown function to pin 5 & 6 you would have to add dtoverlay=gpio-shutdown to /boot/config.txt -OR- create and run a script to do shutdown or some other function.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

mrreality13
Posts: 56
Joined: Tue Feb 26, 2019 6:45 am
Location: texas usa

Re: shorting pins 5 and 6 while RPI is on

Sun Mar 31, 2019 7:12 am

if we use the "shut down" in menu can we still just jump 5/6 to wake ,,as opposed to unplug/plug to restart?
remember ,never approach a computer thinking this will only take a minute
~~pi zero w and a 3b+

Milliways
Posts: 502
Joined: Fri Apr 25, 2014 12:18 am
Location: Sydney, Australia

Re: shorting pins 5 and 6 while RPI is on

Sun Mar 31, 2019 7:31 am

AdamStanislav wrote:
Sat Mar 30, 2019 9:53 pm
Perhaps this article answers your question.
You COULD do this, but Raspbian now has gpio-shutdown built in.

NOTE the pin 5/6 thing is an anachronism. Now all Pi models have an accessible RUN pin it is unnecessary, and doesn't work if gpio-poweroff is used.

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

Re: shorting pins 5 and 6 while RPI is on

Sun Mar 31, 2019 10:15 am

It might be worth reading this...

viewtopic.php?t=221760

alphanumeric
Posts: 2304
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: shorting pins 5 and 6 while RPI is on

Sun Mar 31, 2019 12:03 pm

Milliways wrote:
Sun Mar 31, 2019 7:31 am
AdamStanislav wrote:
Sat Mar 30, 2019 9:53 pm
Perhaps this article answers your question.
You COULD do this, but Raspbian now has gpio-shutdown built in.

NOTE the pin 5/6 thing is an anachronism. Now all Pi models have an accessible RUN pin it is unnecessary, and doesn't work if gpio-poweroff is used.
Unless something has changed, if you ground the RUN pin while the Pi is running, it will do a hard reboot, not a good thing.
Using the pin 5 and 6 method is a better way to go IMHO. Nothing happens on a button press if the Pi is already running unless you add the dtoverlay=gpio-shutdown to /boot/config.txt. No RUN no foul. Other than maybe messing up your i2c coms for a second.

User avatar
AdamStanislav
Posts: 147
Joined: Sun Mar 10, 2019 2:44 am
Location: Wisconsin
Contact: YouTube

Re: shorting pins 5 and 6 while RPI is on

Sun Mar 31, 2019 5:31 pm

Milliways wrote:
Sun Mar 31, 2019 7:31 am
NOTE the pin 5/6 thing is an anachronism. Now all Pi models have an accessible RUN pin it is unnecessary, and doesn't work if gpio-poweroff is used.
Unfortunately, it requires soldering. Not everybody can solder, and even some of those of us who can are reluctant to solder on a board they have not made from scratch (as in, what if I mess up and kill my RPi).

User avatar
Imperf3kt
Posts: 3220
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: shorting pins 5 and 6 while RPI is on

Sun Mar 31, 2019 7:53 pm

Fishing line makes a good alternative to solder.
55:55:44:44:4C
52:4C:52:42:41

User avatar
davidcoton
Posts: 4535
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

Re: shorting pins 5 and 6 while RPI is on

Sun Mar 31, 2019 10:39 pm

Imperf3kt wrote:
Sun Mar 31, 2019 7:53 pm
Fishing line makes a good alternative to solder.
Must be 1 April in Australia.
Signature retired

User avatar
Imperf3kt
Posts: 3220
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: shorting pins 5 and 6 while RPI is on

Sun Mar 31, 2019 11:15 pm

davidcoton wrote:
Sun Mar 31, 2019 10:39 pm
Imperf3kt wrote:
Sun Mar 31, 2019 7:53 pm
Fishing line makes a good alternative to solder.
Must be 1 April in Australia.
It is, but I was serious. Thread the line through the holes, push in some wires for a friction fit connection.

There's several posts about it in this very forum, mostly from before the Pi0WH existed.
For example:
viewtopic.php?t=210660
scruss wrote:
Wed Apr 11, 2018 2:39 am
Eugene ‘thirtytwoteeth’ Andruszczenko (of Game Boy Zero – Handheld Edition fame) posted a neat idea to help your Raspberry Pi Zero take jumper wires without soldering. He threaded fishing line through the 40 hole header, making an interference fit for male header pins. I tried it with 0.38 mm Trilene, which worked rather well.

eugenes_fishing_line_header_hack-rpi0.jpg
55:55:44:44:4C
52:4C:52:42:41

mrreality13
Posts: 56
Joined: Tue Feb 26, 2019 6:45 am
Location: texas usa

Re: shorting pins 5 and 6 while RPI is on

Mon Apr 01, 2019 6:42 am

AdamStanislav wrote:
Sun Mar 31, 2019 5:31 pm
Milliways wrote:
Sun Mar 31, 2019 7:31 am
NOTE the pin 5/6 thing is an anachronism. Now all Pi models have an accessible RUN pin it is unnecessary, and doesn't work if gpio-poweroff is used.
Unfortunately, it requires soldering. Not everybody can solder, and even some of those of us who can are reluctant to solder on a board they have not made from scratch (as in, what if I mess up and kill my RPi).
never tried this but have a look
https://shop.pimoroni.com/products/gpio-hammer-header
remember ,never approach a computer thinking this will only take a minute
~~pi zero w and a 3b+

User avatar
AdamStanislav
Posts: 147
Joined: Sun Mar 10, 2019 2:44 am
Location: Wisconsin
Contact: YouTube

Re: shorting pins 5 and 6 while RPI is on

Mon Apr 01, 2019 3:15 pm

mrreality13 wrote:
Mon Apr 01, 2019 6:42 am
never tried this but have a look
https://shop.pimoroni.com/products/gpio-hammer-header
LOL. That would not help anyone with the RUN thing, which is not on the header. At any rate, as others have pointed out, shorting RUN would do a hard reboot, like turning the power off and on, something to be avoided.

mrreality13
Posts: 56
Joined: Tue Feb 26, 2019 6:45 am
Location: texas usa

Re: shorting pins 5 and 6 while RPI is on

Mon Apr 01, 2019 10:43 pm

[/quote]

Unfortunately, it requires soldering. Not everybody can solder, and even some of those of us who can are reluctant to solder on a board they have not made from scratch (as in, what if I mess up and kill my RPi).
[/quote]
remember ,never approach a computer thinking this will only take a minute
~~pi zero w and a 3b+

Return to “General discussion”