Introduction: Relay Controlled Backup Hard Drive
Use a $3 relay to turn your External Hard Drive ON and OFF Automatically !! The hard drive enclosure below is a "Vantec USB 2.0", and it houses a 500 GB Seagate drive - suweeet !! I have two of them and they are critical !! They have saved my butt on more than opne occasion. But I got sick of constantly turning them OFF and ON !! I also often forgot to turn them OFF along with my PC, and they would spin all night. I even forgot to turn them ON when I booted the PC, and would then have to do a full reboot !! Here we FIX all of that with a cheap relay.
The Backup Drive has saved many a career. Once you have one you can't imagine ever living without it. But there is one BIG problem - they do not turn ON and OFF along with your PC. So they spin incessantly, even while your machine is off.
But with a relay, You won't ever forget again, because YOU don't have to do it anymore !!
The same relay can also be used to control an Auxiliary Power Supply. The aux supply is not needed by most - but it is a Godsend for Power Users and for anyone heavily into Case Modding. The external supply drives all those fancy things and leaves your main PSU alone to do its job. Again we have the same problem - the aux supply does not shut off with the PC !! The fix, once again is the Relay.
I have 3 devices: 2 drives and one aux PSU. I used to have to reach behind and shut each one OFF - every time I turned OFF the PC, and every time I turned ON the PC. It was always a hassle and I'm glad it over and done with.
Step 1: Sample System That Needs Aux Power
Here is my own system called The Bubbler (click for my site's detailed Description of this machine) - which will be a "Mega-Instructable" at a later date. this might give you an idea how somebody might need both a Backup Drive AND auxiliary power. As you can see, I have a ton of added lighting components, so I run one auxiliary supply to take the load off the main PSU. Both drives and aux PSU run off the relay - and I haven't touched a switch since !!
Step 2: My Backup Drives
Here are the two Vantec USB 2.0 enclosures, each with a Seagate 500 GB dribe inside. Unlike many enclosures, they do not need a cooling fan because the Aluminum lays against the surface of the drive and heat is removed via convection.
My Auxiliary supply is hidden - it is held to the back of the PC with Velcro strips. All 3 devices plug into the relay-controlled extension cord outlet. Since I only use my Auxiliary supply when I run my case mod lights, I have also added a manual ON/OFF switch to the front of my PC. In this way the Aux supply will start and stop when I turn the PC ON and OFF, but if I want to just work in peace I can kill the supply with the switch and the extra lighting goes OFF. The plasma ball, scrolling text display fan, and Smiley Lamp are just a few of the many added items that run off the Aux PSU.
Step 3: Materials
The tools needed are:
felt tip pen
The materials needed are:
Extension Cord - 12 to 15 feet - get these from anywhere
AllElectronics Enclosure - TB-1 which is 2.7x1.7x1.2" - $1.75
Red/Black Zip Cord - 25 feet, AWG 24 - this cable has both wires bonded together just like the extension cord (looks better than separate Red and Black wires) - $4.40
Perf Board - PC-1, 10 holes per inch - $0.75
Relay - 12vDC, 270 ohm coil - 120v AC, 10 Amps contacts - $2.30
*** this relay only requires 50 mA to keep contacts closed !!
AC to DC Adapter - optional - 110v AC to 12v/5v with molex DC converter - $13
Step 4: Overview
Just to give you a preliminary idea of how it works before you actually start . . . the schematic below says it all. Once you have prepped the relay and wire with solder joints and placed them inside the enclosure, you connect the wires up as shown.
Step 5: Relays 101
How they Work - a coil of wire becomes magnetized when a small amount of electrical current is sent through it. A metal plate (or "armature")is then attracted and pulled to the coil of wire, which in turn causes two contacts to touch - enabling current to flow. A Relay uses that simple concept and enables you to send a small current IN, and get a large amount of current OUT. It is basically a switch and an amplifier, that electrically goes from small to large !!
NO and NC - Actually the armature movement can either makes or break a connection with a fixed contact. The contacts that are pulled together are called NO (Normally Open). The contacts that are pulled apart are called NC (Normally Closed). Over 90% of relay appliocations use only the NO contacts !! When the current to the coil is switched off, the armature is returned to its original position by a spring.
Input and Output - Coil and Contacts - the "inputs" of the relay are the two connections to the coil. The outputs are the two contacts that are typically "NO". A voltage is applied across the contacts - but unless the relay is activated, the contacts stay open and no current flows.
- voltage is applied to the inputs of the coil
- the voltage results in the flow of a small
current through the coil. This magnetizes the coil
and the core inside the coil
- a metal plate or bar (armature) is pulled towards the
magnetized core, and either:
a) shorts two open contacts, and and power is
applied to the load
b) open two closed contacts - and power is removed
Step 6: The Perf Board (optional)
Perf board can be used or omitted - you CAN solder directly to the pins of the relay !! But mounting it on a small board ford ease the soldering of the connections and protects the bottom of the relay from your solder gun tip and excess heat during soldering.
First insert the relay contacts by feeding them through the holes. Then Mark the edges as an outline on the perf-board with a sharpie or any felt tip pen. Remove the relay, and cut the perf board to size using a hacksaw or shears. Re-insert the relay into the perf-board.
Step 7: Solder the Wires to the Relay
Spread the two wires of the extension cord apart and peel back about an inch. Cut one of the wires and strip the ends. Then make the 4 solder joints as shown.
Step 8: Notch the Enclosure and Insert Relay
Remove the 4 screws and take off the top of the enclosure. Then cut 3 notches in the edges of the enclosure as shown - this is holes for the wires to pass through.
DO NOT Drill holes instead !! You will not be able to feed the wire through the holes. No, you need notches.
The plastic is soft, so you can use a hacksaw, a dremel, or even a set of wire clippers to cut two slots and the use pliers to break off the plastic and create the notch. Then insert the relay and screw the cover back on.
Step 9: Check Your Work
Your Enclosure should now look like this. You might want to plug it into the wall, plug a lamp into the other end, and connect the zip cord to a 12v source or a (9v battery will work) - the lamp should turn ON and it should turn OFF when the voltage is removed from the zip cord.
Step 10: Splice the Zip Cord to PC Molex Plug
This is a simple splice - just cut and strip the wires, add some heat shrink tubing, twist them together, solder, and then apply heat to the heat shrink. Alternatively you can use Electrical tape. Do NOT splice Red-to-Red, as that is only 5 volts, and you need 12 volts.
The professional way is to insert a molex adapter called a "Y adapter". It has three plugs and is meant to "Y" off an additional power source. Cut all 4 wires of the Y and to remove the plug. Cut off the excess unused Red and Black molex wires, and splice your zip cord directly to the black and yellow wires on the Y adapter.
Step 11: Connect It All Up and Test !!
Follow the pic below - which is the same one we showed earlier. Plug the extension cable into the wall, plug the hard drive AC wall wart into the end of the extension cable, and plug in the aux PSU if you are using one. Then connect up the Hard Drive and PSU if not already connected. Finally, turn you machine ON and OFF a few times to make sure the relay is kicking in and turning your stuff ON and OFF.
If you added an Auxiliary PSU then your system can now handle anything you care to throw at it - light it up like Disney World if you want to. And you will never have to worry if you left the backup drive spinning all night or while on vacation. You will never have to reboot if you forgot to turn on your backup drive before starting your machine. And You will never, EVER have to reach back behind your backup drive again.
We have a be nice policy.
Please be positive and constructive.