Click here for a free subscription to "HDE" our site newsletter.
Email:

Power Failure Detection Circuit

Power off detector

Power fail circuit diagram Power fail detector

Switch when the power fails

In the previous pages I've shown you how to create a shutdown delay and drive a relay but none of that is any use unless the Raspberry Pi knows when the mains has failed so that it can prepare itself for the ultimate power down.

12V from the mains power supply is used to keep T7 turned on. When the power fails T7 turns off and the power fail signal goes high. Simple. The collector resistor R11 is connected to the 3.3V supply from the Raspberry Pi so the signal will go from between close to zero to 3.3V. This signal is taken to a GPIO pin on the RPi where software monitors it and initiates a shutdown when it goes high.

The 5.6v zener diode D12 together with the LED D13 provide a voltage drop of approximately 8v to ensure that T7 switches off when the 12v power starts to drop.



Now subscribe to our newsletter and don't miss a thing
 



Comments (1)

Topic: A Power Off Delay For Computer Shutdown
Full StarFull StarFull StarFull StarEmpty Star 4/5 (1)
Facebookdel.icio.usStumbleUponDiggGoogle+Twitter
Full StarFull StarFull StarFull StarEmpty Star
Jacob (US) says...
In your Power Failure Detection Circuit you reference D12 and D13. I see them in the closeup of your circuit, however, they are missing in your overall layout. What happened to D6? Did it go away or is it in series just before D13?
17th February 2017 7:01pm

Add Comment

* Required information
(will not be published)
 
Bold Italic Underline Strike Superscript Subscript Code PHP Code Quote Insert line Bullet list Numeric list Link Email Image Video
 
Smile Sad Huh Laugh Mad Tongue Crying Grin Wink Scared Cool Sleep Blush Unsure Shocked
Captcha
Refresh
 
Enter code:
 
Notify me of new comments via email.
 
Remember my form details on this computer.
 
I have read and understand the privacy policy. *
 
I have read and agree to the terms and conditions. *
 
 
Powered by Commentics
Click here for a free subscription to "HDE" our site newsletter.