Help with Relays for Home Project

  • Thread starter Thread starter thedash
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the use of relays for a home project involving a microcontroller that controls lighting units. Participants explore various relay options suitable for switching a desk lamp connected to a 120V AC outlet, considering both solid-state and electromagnetic relays, as well as the appropriate voltage levels for operation.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant suggests using a relay to switch the lamp on and off based on a microcontroller pin signal, questioning if a relay can operate with a 3.3V signal while handling 120VAC.
  • Another participant proposes using a solid-state relay, noting that they typically require a 5V input but can handle high output voltages.
  • A participant shares a relay driver circuit diagram and inquires about suitable relay and BJT components, expressing a preference for minimalism in power supply design.
  • There is a discussion about whether relays need to be 3PDT to switch the lighting's ground, neutral, and voltage, with one participant arguing that breaking the hot line is usually sufficient for safety.
  • Concerns are raised about the implications of breaking neutral or ground lines, emphasizing safety considerations in case of electrical faults.
  • Participants discuss the availability of relays with 12V coils and the necessity of ensuring they are rated for 120V AC, with one participant noting the need for experimentation with a 9V power source.
  • A participant questions if a specific relay from SparkFun would work for switching the hot wire while keeping neutral and ground connected, seeking confirmation on its compatibility with a 9V source.

Areas of Agreement / Disagreement

Participants express varying opinions on the necessity of breaking different lines (hot, neutral, ground) and the appropriate relay specifications. There is no consensus on the best approach or specific components, indicating multiple competing views remain.

Contextual Notes

Participants mention the need for experimentation regarding relay activation voltages and the importance of ensuring relays are rated for the expected current types. There are discussions about safety implications related to breaking different electrical lines.

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.

what 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 what'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 what'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?
 

Similar threads

Replies
37
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K