I tried to dim a light with the arduino, but it didnt work. I'm quite new to the arduino, so i just tried to build the project.
I used this instructable: http://www.instructables.com/id/Arduino-controlled-light-dimmer-The-circuit/?ALLSTEPS
I used the components used in this instructable, and i also used the schematic you can see in the attachments. For the code i used the one in the instructable.
In the attachment you can also see my breadboard, i know it isn't that clear, but i just took a picture because maybe it could help. The mains aren't connected on the picture tho.
When i plug in the mains, the lamp just stays off.
Can someone help me troubleshooting? I hope i explained it well!
Disconnect the resistor connected to the MOC020 opto-isolator from the Arduino's I/O pin. Leave the ground. Connect that resistor to +5V. That should turn-on the opto-isolator and the TRIAC, and the light should come on. If it doesn't come on, you've got a problem in that part of the circuit.
Write a little sketch to read Arduino pin 2, and send that pin's status to the serial monitor. You should see that state changing between zero and one if the zero-crossing detector is working.
I tried both the things DVDoug said, and neither of those work, it get all 1, and the light doesnt go on.
I'm just going to clear my breadboard and start again. Then i'll run those tests again.
if working with mains on the breadboard is so bad, then what do you guys advice to prototype?
Also, TomGeorge, i made a mistake, it's the TIC206!
A lot of thanks for the replies!
EDIT: Tomgeorge, i'll show you another picture when i rebuilded it!