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
Control a Relay for start a 220v Ligth
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Control a Relay for start a 220v Ligth
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
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
-
- Posts: 10
- Joined: Fri Aug 28, 2009 4:05 pm
Re: Control a Relay for start a 220v Ligth
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.
- john444
- Posts: 443
- Joined: Sun Mar 04, 2012 2:42 pm
Re: Control a Relay for start a 220v Ligth
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
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
Please be positive and constructive with your questions and comments.