so i'm working on dimming lighting project using arduino uno and had a weird behavior on the input interrupt of my push button.
so the dimming light is a classic one. i used an arduino output to drive the optocoplor/triac and i connected the zero crossing signal to the interrupt input pin2 . i also add a push button for manual operation in the interrupt input pin3.
see the attached file for the schema.
the project work well except some weird behavior on the input interrupt that's triggering unexpectedly when i turn off or on the Electrical power strip which feed the triac circuit and lamp. when i turn it on or off it trigger the button interruption without touching the push button which is connectd to my arduino,
i even removed all the connection between the arduino and the triac circuit and let only the push button connected to the arduino and when i turn on the Electrical power strip of the triac circuit the push button interruption is triggered,
here's a video demonstration of my problem that i made here : https://www.youtube.com/watch?v=6yDz70JTnzQ
the only way to minimize this Phenomenon is to add a 100nF capacitor in parallel with the switch.
the switch input interrupt is configured with the internal pull-up resistor.
can anybody have a glue why this happen since i removed all physical connection between the TRIAC and the arduino ?
i saw a similar problem that was discussed in this forum but using arduino 2560 and i didn't see any response to explain why http://forum.arduino.cc/index.php?topic=252430.0