Posts: 13
Threads: 1
Joined: Aug 2016
Reputation:
1
Another way to shut down the Pi without use of hardware is to install Node-Red and add a button to the dashboard that triggers a system call for "shutdown now" so you can safely power off remotely using simply your cellphone web browser over the boat/Pi wifi AP. Once the dashboard webpage becomes unavailable (Pi powered off) you are free to kill the main power switch
Posts: 582
Threads: 65
Joined: Nov 2016
Reputation:
22
[quote pid='13376' dateline='1587099870']
Are the 3.3v and 5V pins powered when the pi is powered but the pi is shut down? I want to use a illuminated momentary switch that will tell me the pi is booted up or shutdown
[/quote]
Yes, it appears that when the PI is halted, the 3.3v and 5v supplies continue to supply power to the appropriate pins. I have small fans connected to my 3.3v supply, and they continue to work after a shutdown command is given. I put a GPIO command in rc.local to turn on an indicator light when the PI up, and another GPIO command in ... (darn it, I can't remember where I put it!) to shut off the indicator when the PI is shut down.
I also added a power button that shuts the PI down cleanly, and also brings it up from halt when shorted to ground. Works great.