Hot answers tagged

3

What you want is not possible, these lights work from mains voltage (240 V AC) which the LEDs in the lamp cannot handle. So there's a power converter circuit present that transforms the 240 V AC into a (much lower) DC voltage (at a high current) that the LEDs can handle. For dimming usually some form of PWM (switching on/off faster than human eyes can see) ...


1

Is that a coil, connected to ATmega's D3 pin?! Why is there this 0.1 uF capacitor at MOC3021 input? This coil and the 0.1 uF capacitor make a LC circuit, that delays the moment when the optocoupler conducts, and so it delays the moment when the TRIAC will light the bulb. Even if it is just a 470 ohm resistor, this resistor delays the charging of 0.1 ...


Only top voted, non community-wiki answers of a minimum length are eligible