Ok, I’m more or less posting this inquiry to avoid experimenting more tomorrow and possibly blowing up some things.
I have built this:
And it works! One of my first major projects and it works, so I was excited of course.
My understanding of this whole circuit is the ZeroCross signal watches as the AC crosses the x-axis. Using this, it triggers the TRIAC. The TRIAC then switches on and off in a frequency that makes the light appear to be dimmed. Somehow I think I’m wrong and I’d like to know what each part does exactly. This would probably help me in understanding my code and how to link the three dimming circuits.
The ultimate idea is to have a single input for AC for the three lamps. My main question is about the ZeroCross signal. I’ve read before that you only need one, but can I control 3 lamps on a single ZeroCross line to the arduino, or do I need to just build the circuit 3 times over? If I can use only one ZeroCross signal for 3 different lights to dim at 3 different levels, then do I still need to duplicate the circuit side with 4N35 and BR or do I combine before the BR and 4N35, or do I still build 3 separate circuits and combine the ZeroCross at the end into the Arduino? Sorry if I seem like I’m taking the cheap way out, but I’m pretty much asking how to put this thing together safely.
If anyone knows a good tutorial for how to code this in applications, that would be awesome as well.