Advanced Off/Off Bu...
 
Notifications
Clear all

Advanced Off/Off Button Question for Pi 3

8 Posts
2 Users
0 Likes
915 Views
 mike
(@mike)
New Member
Joined: 7 years ago
Posts: 4
Topic starter  

I have my button working great on a Pi 2 but not so much on a Pi 3. It powers down after about 5 seconds. As if pin 8 never comes up.

I poked around the site and saw a config.txt:

dtoverlay=gpio-poweroff,gpiopin=14,active_low="y"

But I'm not seeing any difference.  I'm sure it's something really stupid that I'm over looking.

Any help would be super appreciated.


   
Quote
othermod
(@othermod)
Reputable Member Admin
Joined: 8 years ago
Posts: 360
 

Could be lots of things causing it, and the simplest way to rule out most of them is to use a different GPIO pin instead of TX. If you change that 14 in the config.txt line to another GPIO that is available, and attach to that pin, there is a good chance that'll get you up and running.


   
ReplyQuote
 mike
(@mike)
New Member
Joined: 7 years ago
Posts: 4
Topic starter  

I also tried pin 7 (GPIO 4) since it doesn't do double duty. (Trying to eliminate possibilities.) Also put a meter on both pins (7 and 8) and they are indeed coming up.  I'm really at a loss.  It works fine on a Pi 2 so this is really confusing me.


   
ReplyQuote
othermod
(@othermod)
Reputable Member Admin
Joined: 8 years ago
Posts: 360
 

Does the pin stay at 3.3v the whole time?


   
ReplyQuote
 mike
(@mike)
New Member
Joined: 7 years ago
Posts: 4
Topic starter  

When I first plug in the Pi 3, it starts at 3.11v then goes to 3.29.

The Pi 2 starts at 3.15v and goes to 3.32.

This is a super cheap meter and I'm guessing those numbers are close enough?

But yes, the pin on both Pis stays 3.3v.


   
ReplyQuote
othermod
(@othermod)
Reputable Member Admin
Joined: 8 years ago
Posts: 360
 

Yeah anything over 2.5v is enough to keep it on. I'm a little baffled. Is this the same board you used on the Pi 2, or did you get two of them and this is the second one? 


   
ReplyQuote
 mike
(@mike)
New Member
Joined: 7 years ago
Posts: 4
Topic starter  

Same board.  I do have another though. Would you like me to wire it up and try it?


   
ReplyQuote
othermod
(@othermod)
Reputable Member Admin
Joined: 8 years ago
Posts: 360
 

Nope. Was just making sure it wasn't maybe being caused by a defective on/off board. 

Ok one last thing to try. Disconnect the wire that goes between TX and the Pi 3, then connect a wire between TX and +5v out. This will keep the TX pin high and rule out the board being the cause. It won't know to power off when the Pi shuts down, but it will at least give us some info. You HAVE to disconnect the TX pin from the GPIO or you'll put 5v straight to the GPIO and bad things will happen.


   
ReplyQuote