Help with Relays for Home Project

  • Thread starter Thread starter thedash
  • Start date Start date
AI Thread Summary
For the home project involving a microcontroller and lighting control, solid-state relays (SSRs) are recommended for switching a desk lamp connected to a 120V AC outlet. SSRs can be triggered by a low voltage, such as 3.3V or 5V, and are capable of handling high voltages. It's important to ensure that the relay can switch the expected current and is rated for 120V AC. Typically, only the hot wire needs to be switched, while the neutral and ground can remain connected for safety. A relay with a 5V to 110V coil would be suitable for use with a 9V power source, but testing may be necessary to confirm functionality.
thedash
Messages
20
Reaction score
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
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
 
You could make a relay driver like this:

[PLAIN]http://interactive.usc.edu/members/phoberman/relayCircuit.gif
 
Last edited by a moderator:
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:
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.
 
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?
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top