Control a Relay for start a 220v Ligth

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Zaffo69
 
Posts: 1
Joined: Mon Jul 02, 2012 9:03 am

Control a Relay for start a 220v Ligth

Post by Zaffo69 »

Hi..
I need to turn on and off a lamp 220v with Arduino. How can I do? Should I use a relay? There are tutorials for it?

Thank you

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Control a Relay for start a 220v Ligth

Post by adafruit_support_bill »

This diagram shows how to connect a relay to a digital out pin: http://www.arduino.cc/playground/upload ... relays.pdf
If you are new to the Arduino, I'd recommend working through the Arduino Tutorials to get familiar with the programming: http://www.ladyada.net/learn/arduino/index.html

Totoro
 
Posts: 10
Joined: Fri Aug 28, 2009 4:05 pm

Re: Control a Relay for start a 220v Ligth

Post by Totoro »

I used a Triac driver chip and a Triac. Specifically the MOC3041M and a BT139-600. With a small heatsink, you can easily switch a lamp, even up to 300W. You can see the circuit in the datasheet for the MOC3041M on the Fairchild Semiconductor site.

User avatar
john444
 
Posts: 443
Joined: Sun Mar 04, 2012 2:42 pm

Re: Control a Relay for start a 220v Ligth

Post by john444 »

Hi Zaffo69,

I was going to suggest the PowerSwitch Tail as a safe and easy way to switch your lamp.
However, the one at Adafruit it is not rated for 220-Vac.
In addition, it should not be used over 120-V.
The supplier does make 240-Vac versions.
Check out http://www.powerswitchtail.com/Pages/PSTIIU.aspx

I wouldn't recommend that a person new to electronics deal directly with line-voltages.
Something like the PowerSwitch Tail will keep you safely isolated from that danger.

Good Luck, John

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”