It works by leading the PWM output from Arduino through a lowpass filter made up by R2 and C3. This will stabilize the pwm to a steady voltage. The output from the lowpass filter is lead through an emitter follower to a LED, which is placed close to the LDR in a light conceiled compartment. The light from the LED then controls the resistance in the LDR.
This is a simple solution and requires no extra code in Arduino, but it has a few drawbacks. First of all it is not linear. This means that the usefull range is more narrow than the PWM output. Therefore you will need to find a suitable range for the Arduino output to operate. Second it has a little slow reaction about half a second, due to the lowpass filter.
NB! Always remember to be carefull with household power, and make sure that the left part of the circuit is totally isolated from the LDR and the AC Dimmer.
Ingen kommentarer:
Send en kommentar