Introduction: Arduino Based AC DIMMER Using TRIAC
In our household, most of the appliances are powered from the AC supply such as Lights, TVs, and Fans, etc. We can turn ON/OFF them digitally if needed, using Arduino and Relays by building a Home automation setup. But what if we need to control the power of those devices for example to dim the AC Lamp or to Control the speed of the Fan. In that case, we have to use phase control technique and static switches like TRIAC to control the phase of AC supply voltage.
So in this tutorial, we will learn about an AC lamp dimmer using Arduino and TRIAC. Here a TRIAC is used to switch the AC lamp, as this is a Power electronic fast switching device which is the best suited for these applications.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Things You Need
Step 2: Schmatics
Please follow the above shown schmatics to connect everything together.
Step 3: Code
Please copy the following code and upload it to the arduino Board :
int LAMP = 4;
attachInterrupt(digitalPinToInterrupt(2), zero_cross, CHANGE);
int dimming_time = (200*dim_val);
int data1 = map(data, 0, 1023,10,49);
Step 4: Dimming the AC
After completing the coding part and connections , carefully turn on the power and be more cautious because you are dealing with 220V and if everything is correct your bulb will be dimmed if you rotate the Potentiometer and the intensity of light bulb will change.