Ok i need some help with my next/1st real project. My brother has a traffic light(pictured below) that has been modified to plug into the wall. It has two light blubs that saty on all the time. Well the idea I have is to control it with an ardunio. Make it work as it really would if still in use on the street. So i know how to code it thats easy. However i am trying to figure out the hardware part. I was thinking of going with an optoisolator. My questions are...
1) Is this the best way to do it?
2)How would i wire it up? Im thinking 2 optos one for each bulb but i am not totally sure how it would work.
3) what do I exactly need to buy? (brand names/ part numbers)
4) since it is coming from ac power at 120 volts is there a special opto i need?
here are some pictutres for a better understanding
also i am thinking the red and green are power and white is ground what do you guys think?
the traffic light ^
the wires coming fro the ac plug
the 1sr 2 wires going to the 1st blub
any other ideas and comments would be great!