This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Safe Power Down
#1
I have been thinking more about how to get cost effective safe power down and then power back up again when the DC power switch is restored.  I could use Pi Juice, but it is a little expensive and other UPS's didn't automatically restore the Pi on power restore - see attachment

This Schematic would use a second source as backup that to the main source and if the main source is cut, then the backup would ensure power to the Pi until power down, then the relay would cut it.  the relays are https://www.amazon.com/dp/B00LW15A4W, the Power supplies are https://www.amazon.com/dp/B01MQGMOKI

There would have to be some code added In the file /boot/config.txt (use sudo nano /boot/config.txt):

dtoverlay=gpio-poweroff,gpiopin=20,active_low="y" <-- this would make sure that the relay released when the Pi was safely powered off.

there would need to be some code to trigger the shutdown when pin 40 (GPIO 21) was at 0v and I am not sure how to do that - I guess it would start with:

dtoverlay=gpio-shutdown,gpio_pin=21

I think I may have to make pin 40 (GPIO 21) pull down? anybody know how to do that?

anyone have any concerns with the plan?

I do currently have a momentary switch that I have on Pin 40 (between Pin 40 and GND), that could stay in parallel

Thanks
Techstyle


Attached Files Image(s)
   
Reply


Messages In This Thread
Safe Power Down - by Techstyle - 2020-10-23, 11:53 PM
RE: Safe Power Down - by st599 - 2020-10-26, 09:35 AM
RE: Safe Power Down - by tkurki - 2020-10-26, 06:10 PM
RE: Safe Power Down - by Techstyle - 2020-10-28, 03:28 AM
RE: Safe Power Down - by Sailabout - 2020-10-29, 07:48 AM
RE: Safe Power Down - by Techstyle - 2020-10-29, 05:37 PM
RE: Safe Power Down - by Techstyle - 2020-10-29, 08:56 PM
RE: Safe Power Down - by Techstyle - 2020-11-15, 09:28 PM
RE: Safe Power Down - by Blue Ocean - 2020-11-17, 09:52 AM
RE: Safe Power Down - by Techstyle - 2020-11-18, 03:56 AM
RE: Safe Power Down - by Blue Ocean - 2020-11-18, 03:11 PM
RE: Safe Power Down - by Techstyle - 2020-11-18, 06:10 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)