jumanji
Newbie level 6
problems with phase control of a lamp
Hi - I am creating a lamp dimmer using a micro to do phase control. There are 2 issues that I am having problems understanding. I want isolation from mains to my micro so I am using an ILD620 as a zero cross detect. I am using a 50K resistor in series with the mains. This device works but the output "pulse" is really a sinewave with slow rise time so my micro is detecting the zero cross much earlier than it should because of the slow rise time. I am just polling an input pin to detect the pulse.
If I reduce the 50K resistor down to 10K I get a pulse with much faster rise time, but that gets me 1.44W of power on that resistor...should I be using a transformer to bring the mains down to 12 V before coming into the ILD620 or do I just have to get a high power resistor? Or is the correct technique to use a comparator circuit to detect the top of the pulse regardless of rise time?
Any help on this is much appreciated.
Hi - I am creating a lamp dimmer using a micro to do phase control. There are 2 issues that I am having problems understanding. I want isolation from mains to my micro so I am using an ILD620 as a zero cross detect. I am using a 50K resistor in series with the mains. This device works but the output "pulse" is really a sinewave with slow rise time so my micro is detecting the zero cross much earlier than it should because of the slow rise time. I am just polling an input pin to detect the pulse.
If I reduce the 50K resistor down to 10K I get a pulse with much faster rise time, but that gets me 1.44W of power on that resistor...should I be using a transformer to bring the mains down to 12 V before coming into the ILD620 or do I just have to get a high power resistor? Or is the correct technique to use a comparator circuit to detect the top of the pulse regardless of rise time?
Any help on this is much appreciated.