How to switch lights (Mains power) with Arduino?


this first post, i'm sorry if wrong section.

i want switch light inside 1 of lighted ceramic houses people use christmas displays on , off using arduino pin.  however, in united states, live, 120vac beyond capacity of arduino.

1. relay work this, or draw power drive directly pin?
1b. there better options relays?

2. possibility of going wrong , accidentally frying arduino?  necessary take precautions against this?
2b. if so, reccommend?

3. planning on using mega2560 activate these systems, because there lot of houses want control, if makes difference in power distribution/control systems.

quote
would relay work this

yes.

quote
do draw power drive directly pin?

possibly. however, can turn transistor on , have turn relay on. sparkfun sells relay kit needed transistor, resistors, etc. or, powertail.

quote
what possibility of going wrong , accidentally frying arduino?

depends how careful are.

quote
is necessary take precautions against this?

well, duh!

quote
i planning on using mega2560 activate these systems, because there lot of houses want control, if makes difference

it makes difference in how many can control, in no other way.


Arduino Forum > Using Arduino > Project Guidance > How to switch lights (Mains power) with Arduino?


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62