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

Relay Driver Circuit

Relay driver circuit

Relay driver circuit diagram Relay driver

Driving the relay for the battery supply

9V from the battery supply is provided by a relay and an NiMH rechargeable battery. When the mains power is connected diode D9 is reverse biased so the battery is not used. The relay driver circuit T5 and T6 is powered from the 12V supply and because the output from the delay circuit is held low both T5 and T6 are also switched on. Current is supplied to the coil of the relay which holds the battery supply contacts closed.

The relay is held energized until the mains power is removed and the delay times out after which transistors T5 and T6 are turned off and the relay drops out to isolate the battery. In the delay time after mains power is removed the circuit is powered from the 9V battery allowing the relay to remain energized until timeout.

Using a relay with a variable power supply and constant current

Relays are generally specified in terms of the voltage that is intended to be applied to it to energize the coil and switch the contacts. I chose a relay with a 5V coil and I drive it with a constant current so that the changing supply voltage does not cause any problems.

The constant current for the relay is generated by T5, R7, D10, D11, T6, R14 and R15. The two diodes provide a voltage reference of approximately 1.2V making the voltage on the emitter of T6 0.6V. The two 15 ohm resistors R14 and R15 are connected in parallel when the relay is de-energized making the effective resistance 7.5 Ω. The current in the relay coil is then 0.6/7.5 = 80mA. The resistance of the relay coil is approximately 60 Ω so the voltage across it would be 0.08 * 60 = 4.8V.

To save power drain from the battery during the delay time I used a little trick. It takes a lot more current to switch a relay on than it does to hold it there so I've connected R14 and R15 to the normally closed side of one of the poles of the relay contacts. When the coil energizes and the contacts switch one of the resistors drops out of the circuit which halves the current supplied to the relay.

Protecting the driver circuit from spikes and overheating

You might be wondering what the purpose of D4 across the relay coil is. It is connected reverse biased so it has no effect while the relay is energized. When the transistor T6 switches off however and the magnetic field in the relay collapses it produces a large spike of current in the opposite direction of flow. If it were not for D4 short circuiting this negative spike it could damage the transistor T6.

The driver transistor T6 will generate a little heat. I used a small power transistor which gets warm to the touch so I bolted a small piece of metal to it to act as a heat sink. The heat sink isn't strictly necessary but I feel happier when things don't get too hot.

The power dissipation in the power transistor will be greatest when running from the 12V supply which is most of the time. The voltage across the transistor will be approximately 9V with a current of 40mA. The power that will be dissipated by the transistor is therefore 9 * 0.04 = 360 mW. Just over a third of a watt. Well within the parameters of a power transistor but enough to make it get warm.



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. *
 
Click here for a free subscription to "HDE" our site newsletter.