I am doing a project, with a traffic light that i need it to blink, randomly through the day and while its switching it still has a color on and then switches over, I have all the wiring done, all the lights have their own independent feed to them, I was thinking of using a relays, the one here: (Amazon.com: SainSmart 4-Channel Relay Module) I think i would be ok coming off of my main 120 Volt feed and wiring it to relay 1 and the jumping the hot wire to 2 and then jumping to 3 and 4 would be left untouched, then the lights would connect to each relay. I have a 120 volt outlet inside of the light for the arduino to get its power from. I have all the wiring down, but i cant get my head around how I am going to code it. I have the arduino UNO.
thank you, any assistance on this would help!