I've started working on a project to control my christmas lights via and arduino. I've read a lot of blog posts about doing this, seen a lot of videos, and done a good bit research. The only problem that I am running into is being able to dim the lights.
My initial plan was to connect the arduino to some shift registers and have the shift registers control SSRs. I'd probably toss an optocoupler between the shift register and SSRs to help further isolate the AC from the control. This setup, however, dose not allow me control the brightness of the lights, only if they are on or off. I've looked into TRIACs and kicked around the idea of switching the SSRs on and off very quickly (kinda like a DC speed controller).
I'm planning roughly 40 channels. The maximum a channel would pull would be 5 amps (for the floodlights), but a typical channel would be roughly 1 amp. The majority of the lighting is going to be rope lights with a few strands. All of the lighting is going to be 120 VAC.
I'd probably toss an optocoupler between the shift register and SSRs to help further isolate the AC from the control
No need an SSR will be opto isolated already.
If you pick the right SSR then that will do proportional control. Don't even think about just randomly turning the SSRs on an off rapidly, it will end in tears.
I did a kick ass Halloween display one year with 12 Cyber Lights and 8 AF100 strobe units ] (Google them)
Have a look on eBay for "dimmer pack" there are a few NSI units going for $60 and one Leprecon for $40. You can not buy the part cheaper and these are all set ready to go!
The protocol of choice would be DMX512 since all the software and equipment is designed to use it. AMX is a Strand protocol an I would avoid it. Midi also sucks. DMX512 can have a 5 pin or 3 pin XLR connector. Read the manual for the equipment you get.
If you look into the DMX protocol you should be able to make the Arduino send or read it. I always liked having the ability to live edit any project I was working on.
Well I feel a bit dumb now. I was kicking around the idea of just buying a Mega, so I could eliminate the shift registers. If I did that, I'd have 14 PWM outputs, so I'd scale back my lighting a bit to just use the 14 PWMs for the dimmable channels. My question is, what would the PWM drive? A proportional SSR, or is there something else I can use?
I've worked with speed controllers for DC applications and understand the idea behind them, however, with AC wouldn't I just be able to modify, or clip the wave and get the same results?
with AC wouldn't I just be able to modify, or clip the wave and get the same results?
No with AC you need to phase angle control the waveform. PWM works far too fast. You need to detect the zero crossing point of the AC waveform, then delay a little, then turn on the triac or SCR. That is what a proportional SSR does for you. You can do that in hardware or software.