switching tube lights


Noob question here: : I’m trying to switch 8 tubelights (blacklight TL) on and of using arduino.

I would need some kind of relais since the lights are working on 220 volts.

How do i do this? Any tips?

Easiest way to do something like this is with a solid state relay. It will take the output from the Arduino directly, and you will be able to control the current running to the lights.

Otherwise, you will need a transistor of some sort, and a relay.

i found this thing:

which would work with 5v - 220v, but i read in the arduino diecimilla spec: DC Current per I/O Pin: 40 mA

will this work?


The relay coil takes just over 100mA so you need a transistor to drive the relay. Look at:-