Help with Relays for Home Project

  • Thread starter thedash
  • Start date
In summary, the conversation discusses the use of a microcontroller to control a lighting unit. It is suggested to use a solid state relay with a 5 volt output and a voltage regulator to step down the 9 volt source. It is also recommended to use a relay driver and a 3.3 volt regulator to power the microcontroller and an on board Xbee. The use of a solid state relay with a 12 volt coil is also mentioned as an alternative. It is emphasized that the relays should be able to handle the 120V AC from the wall outlet and that the hot wire should be switched on and off, while keeping the neutral and ground connected. A specific relay, the T9A_DS, is recommended for
  • #1
thedash
20
0
Hi everyone! So I'm working on a little home project and could use some advice. I'm making a little thing where I have a microcontroller that sets a pin high at certain intervals. When that pin goes hi, I would like it to turn on the plugged-in lighting unit, and when the pin goes low, I would like it to turn off the plugged-in lighting unit. The plugged-in lighting unit will just be a regular desk lamp made to connect to a 120V regular AC outlet.

So my question I guess is: how do I do the switching for the lamp? A relay? Are there relays that can use like a 3.3V hi pin from a microcontroller to turn on and off, and are still robust enough to pass 120VAC from a wall outlet? If not, is 12V more reasonable/are there relays that can handle that (I'm thinking maybe outdoor 12V lighting instead)?

In case your wondering, I'm making stage lighting stuff for my band. Thanks!
 
Engineering news on Phys.org
  • #2
You could use a solid state relay which typically have on of like 5 volts which are capable to output a voltage as high as like 400V
 
  • #3
You could make a relay driver like this:

[PLAIN]http://interactive.usc.edu/members/phoberman/relayCircuit.gif
 
Last edited by a moderator:
  • #4
Thanks so much for your responses.

waht said:
You could make a relay driver like this:

[PLAIN]http://interactive.usc.edu/members/phoberman/relayCircuit.gif[/QUOTE]

Very cool - something like this is exactly what I was looking for -- What kind of relay/BJT do you suggest? I'm vaguely familiar with relays in general much less specific components. Also, would this work for 3.3V instead of 5V? More than likely I'll have a 9VDC jack from the wall to the main circuit, which will be stepped down via voltage regulator to 3.3V to power the microcontroller and an on board Xbee (the xbee will send commands to the microcontroller from a "lighting booth" across the stage, and the microcontroller will process the commands and turn on and off the corresponding pin). I don't have the datasheets for the microcontroller/Xbee in front of me but I'm pretty sure 3.3V was their "sweet range" and 5V may be too high. I guess I could use two different regulators (a 3.3V and a 5V), but I'm a minimalist if I can be ;)

Feldoh said:
You could use a solid state relay which typically have on of like 5 volts which are capable to output a voltage as high as like 400V
What exactly is a solid-state relay? Do you have any specific component recommendations for this kind of project?Oh I don't know if I mentioned this, but I plan on having three or four separate/different color lights, plugged into three or four "outlets" on my box. The microcontroller will set certain pins high/low, allowing different combinations of the 3/4 plugged-in lights to turn on and off. So I will probably have one 9VDC plug powering the circuitry, and one normal 120VAC plug plugged into the wall powering the different light combinations. Kind of like this (externally):
[PLAIN]http://www.midtownmunch.com/setup.jpg

So does this mean the relays have to be 3PDT so that the lighting's ground/neutral/voltage is being switched-&-connected to the main ground/neutral/voltage line with the relay?
 
Last edited by a moderator:
  • #5
thedash said:
[...]So does this mean the relays have to be 3PDT so that the lighting's ground/neutral/voltage is being switched-&-connected to the main ground/neutral/voltage line with the relay?

Unless you need a full disconnect, it's usually sufficient to break the hot line. Breaking neutral means that a nicked power cord might expose someone to 120V relative to ground, whereas breaking the ground conductor may not turn off the unit, but will break the case ground (if present) and remove the protection that affords (in case a wire or something breaks loose inside the case and electrifies the whole case!)

EDIT: To add to waht's point, you can usually find relays with 12V coils (make sure that they're capable of switching the types of current you expect, and that they're rated for 120V AC!) The ratings will usually be printed right on the relay. The coil will switch on at some voltage less than 12V--if you only have 9V as your main power source, that may or may not be enough, and you'll have to do some experimentation.
 
  • #6
MATLABdude said:
Unless you need a full disconnect, it's usually sufficient to break the hot line. Breaking neutral means that a nicked power cord might expose someone to 120V relative to ground, whereas breaking the ground conductor may not turn off the unit, but will break the case ground (if present) and remove the protection that affords (in case a wire or something breaks loose inside the case and electrifies the whole case!)

EDIT: To add to waht's point, you can usually find relays with 12V coils (make sure that they're capable of switching the types of current you expect, and that they're rated for 120V AC!) The ratings will usually be printed right on the relay. The coil will switch on at some voltage less than 12V--if you only have 9V as your main power source, that may or may not be enough, and you'll have to do some experimentation.
Thanks for your input -- So would something like this work: http://www.sparkfun.com/datasheets/Components/T9A_DS.pdf

Just to switch the hot (black) wire on and off, and I'll keep neutral and ground connected? It seems like it has a 5v - 110v coil, too, so I should be able to switch it with my main 9v source, correct?
 

FAQ: Help with Relays for Home Project

What is a relay and how does it work?

A relay is an electrical switch that is controlled by an electromagnet. When electricity is passed through the electromagnet, it creates a magnetic field that pulls a lever to make or break a connection in the circuit. This allows a low voltage circuit to control a high voltage circuit.

How can I use relays for a home project?

Relays can be used in a variety of ways for home projects. They can be used to control lights, fans, motors, and other electrical devices. They can also be used to create time-delay circuits, safety circuits, and automatic on/off switches.

What are the different types of relays available?

There are several types of relays available, including electromechanical relays, solid-state relays, thermal relays, and reed relays. Each type has its own unique characteristics and uses, so it's important to choose the right type for your specific project.

How do I choose the right relay for my project?

To choose the right relay, you need to consider the voltage and current requirements of your project, as well as the type of load you will be controlling. You also need to make sure the relay is compatible with your circuit and that it has the appropriate number of switches and contacts for your needs.

Are there any safety precautions I should take when working with relays?

Yes, it's important to always follow proper safety precautions when working with relays. This includes turning off the power before making any connections, using insulated tools, and wearing protective gear. It's also important to make sure the relay is properly rated for the voltage and current of your circuit to avoid any potential hazards.

Back
Top