mamech
Full Member level 3
Hello
I made a circuit that can light a lamp either by a computer command (through a micro) or can light it using 3 way switch. The interface between the micro and the lamp is done using moc3063 optocoupler and two triacs.
The circuit works well if I turn the lamp on and off using micro and triacs, but when I use the 3 way switch, sometimes I found the micro resets !!!
This very weird because the AC supply from 3 way switch to the lamp is completely isolated from micro circuit. The only common thing that both are supplied from the same power terminal.
I suppose that that may happen because of the fact that I turn on the 3 way switch in random point during the half cycle, so that may cause harmonics for example and may be these harmonics goes to the supply of micro circuit and cause severe noise, while that does not happen when I turn on from micro, because it starts only in zero point, because the optocoupler has ZCD.
I am just concluding , but I do not know if my conclusion is right or not.
Also, if my conclusion is right, what should I do to protect micro circuit? I tried to place 1uf cap between the vcc and ground of the main supply of micro circuit, but the problem still exists.
Thanks
I made a circuit that can light a lamp either by a computer command (through a micro) or can light it using 3 way switch. The interface between the micro and the lamp is done using moc3063 optocoupler and two triacs.
The circuit works well if I turn the lamp on and off using micro and triacs, but when I use the 3 way switch, sometimes I found the micro resets !!!
This very weird because the AC supply from 3 way switch to the lamp is completely isolated from micro circuit. The only common thing that both are supplied from the same power terminal.
I suppose that that may happen because of the fact that I turn on the 3 way switch in random point during the half cycle, so that may cause harmonics for example and may be these harmonics goes to the supply of micro circuit and cause severe noise, while that does not happen when I turn on from micro, because it starts only in zero point, because the optocoupler has ZCD.
I am just concluding , but I do not know if my conclusion is right or not.
Also, if my conclusion is right, what should I do to protect micro circuit? I tried to place 1uf cap between the vcc and ground of the main supply of micro circuit, but the problem still exists.
Thanks