Main Content

How to Build an Isolated Digital AC Dimmer Using Arduino

Disclaimer: This circuit is connected directly to the mains voltage. You must care about all safety precautions before using the device.
AC loads are everywhere around us because at least home appliances are supplied with the mains power. Therefore, we always face the situations that we want to have full control (dimming) over an AC load such as a lamp, a motor, vacuum cleaner etc.
We should know that controlling an AC load is not identical with a DC load. So we should use different electronic circuits for this purpose.
The figure-1 shows the mains sinusoidal wave with the frequency of 50Hz (sometimes 60Hz). To build a dimmer, the zero crossing points (the points where the wave changes its polarity) are important. To grab these points, we have to use a zero crossing detector. The figure-2 demonstrates the schematic diagram of the whole circuit.”

Link to article