Controlling 120VAC with a Propeller?
Microcontrolled
Posts: 2,461
I am wanting to build remote controlled christmas lights for my grandparents so that they don't have to go into the cold to turn them on. I have gotten everything down exept for how to operate the high voltage. How do you control a relay with a Propeller? I've heard of "optoisolators" somewhere but I don't know what they are or what it takes to drive them. Can someone help me with a simple circuit?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
Want to·experiment with the SX or just put together a cool project?
SX Spinning light display·
My overstock is killing me.
PM me for absolutly FREE 8-pin Mini Din connectors.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
Want to·experiment with the SX or just put together a cool project?
SX Spinning light display·
My overstock is killing me.
PM me for absolutly FREE 8-pin Mini Din connectors.
Comments
Something like this should do for 240V AC:
uk.rs-online.com/web/search/searchBrowseAction.html?method=getProduct&R=0476652
I like the more expensive ones with an LED which shows when they they are on.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Post Edited (Leon) : 12/19/2009 1:57:46 PM GMT
Anyway, searching [noparse][[/noparse]SSR] with this site's button turns up lots of examples of those means.
At this late date you probably won't secure parts in time enough.
http://www.rentron.com/Files/Stamp/pc-relay4.gif
The advantage with a relay is the ability to switch very high current loads, and there is no need for isolation which is necessary with an SSR.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
Want to·experiment with the SX or just put together a cool project?
SX Spinning light display·
My overstock is killing me.
PM me for absolutly FREE 8-pin Mini Din connectors.
http://www.efx-tek.com/topics/fc-4.html
http://www.efx-tek.com/topics/rc-4.html
Hid a lot of complexity from my top level control program, because it just had to send commands to these lighting controllers. May be worth a look?
Full disclosure: I'm 1/2 of EFX-TEK.
As the propeller is really fast he should be able to detect the zero-crossing right well.
If you switch ON/OFF only after some hours ONCE this doesn't matter.
For something like dancing lights or phase-cutting of the AC you should use a zero-crossing circuit
best regards
Stefan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
24 bit LCD Breakout Board now in. $21.99 has backlight driver and touch sensitive decoder.
SSR's are nice, I use them often, but sometimes you want it to click and SSR's are a specialty item you'll need to order and start at around $20. They are also prone to leak if they aren't loaded heavily enough. You can test the iron relay by unplugging the 120V and ohming out the high voltage circuitry; that doesn't work with SSR's since they won't act like switches for the voltage put out by a voltmeter.
I did once wire up my shed lighting system with a solid state relay. But at night the flouros glowed even when off, and I don't think solid state relays truly turn off. When a mechanical relay is off, it really is off. Plus mechanical relays are cheaper.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
Post Edited (Dr_Acula) : 12/20/2009 12:00:28 AM GMT
I'm actually thinking of building a wireless device that uses the XBees to control several 120AC devices like xmas lights. Would be cool to only have to run one extension cord and control the lights from inside the house. And with the XBees running only ~$22 it's pretty inexpensive.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim Fouch
FOUCH SOFTWARE
Check this: http://pdf1.alldatasheet.com/datasheet-pdf/view/5039/MOTOROLA/MOC3041.html
Check the suggested schema at page 4, you can do it by yourself at very low price, and works fine !!
I usually use them to control three phase AC motors with the best results.
Basically is the same as Leon suggested to you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
Want to·experiment with the SX or just put together a cool project?
SX Spinning light display·
My overstock is killing me.
PM me for absolutly FREE 8-pin Mini Din connectors.
Could these be used in a dimmer circuit? IOW can they be switched on and off at 60Hz part way through the AC sine wave?
No, those SSRs have their own ZC circuitry inside and only switch on-and-off at the zero-cross. If you're looking for circuitry, www.doityourselfchristmas.com is a good resource.