220V AC Light/Fan Dimmer using TRIAC & Arduino
Вставка
- Опубліковано 23 жов 2019
- Project Credits: Electronoobs ( / @electronoobs )
....................................................................................................................................................................................................................................
In this tutorial, we will design a circuit using TRIAC BTA16 and optocoupler to make a 220V AC Light Dimmer or AC Fan Speed Controller using Arduino.
We have AC loads everywhere around us. And most of the home appliances are supplied with the AC mains power. There is plenty of situations that we want to have full control over an AC load such as a dimming of a lamp, speed control of AC motor/Fan, Vacuum Cleaner Control and so many other applications. The proper way to control dimming 230v AC is through phase control with a Triac: the Triac then is fully opened, but only during a part of the sinus AC wave.
But the controlling an AC load is not as easy as controlling a DC load. The electronics circuit for both these applications is different. The AC mains with a sinusoidal wave have the frequency of 50Hz. To build an AC dimmer, the zero-crossing points (the points where the wave changes its polarity) are important. To detect these points, we have to build a zero-crossing detector first. Similarly, we have to control the phase and cycle of the waveform. Since every component can't tolerate 220V AC, so we need to isolate the circuit from 220V AC using some other component like EL817 optocoupler and MOC3020 IC. The whole process is explained below.
Download Circuit/Code/PCB Gerber File from this Link: how2electronics.com/220v-ac-l...
....................................................................................................................................................................................................................................
Drop a like if you liked this video.
Don't forget to subscribe to our channel for more Electronics projects and tutorials.
Website: how2electronics.com
Facebook: / electronicsbyalex - Наука та технологія
Very helpful information. I like it
How much the pcb costed you and in how many days it got delivered?
Thanks a lot for sharing, can you help the code for Trailing Edge?
This is a good design circuit. Decent explanation. I see that you are using a "MOC3020M" optocoupler, what is the difference compared to a "MOC3021" optocoupler which seems to be the favorite of the internet?
You can use MOC3020 or MOC3021 or MOC3023. The difference is only regarding power consumption or load current. Any of the IC will work.
I am watching your videos from long time, but i request you 100 times for making project on power factor improvement.
Contact me via fb. I will share the pdf for what you want.
How to do pins on easyeda
i would rather try with pin 2 as an interupt because sometimes zerocross can be forgoten
Hi,Can I use the electrical heating element instead of the lamp according to your method?
Yes you can
How to control ac fan speed with ir remote control system with arduino plse make a video
In this video you told CFL bulb, can this works 220V led bulb as dimmer ??
Yes it does
Sir please make self balancing robot
Dear sir
Kindly prepare a video tutorial for automatic school Bell. In which we can change the bell timing by using button and save the bell timing in EPROM.
U was already promise me to make this project but u don't prepare it.
Please try to make this project...
Nice idea. And really a very nice project. Need to work on that. Will upload this in near future thank you.
Czy masz projekt podłączenia wyświetlacza tft 1.8 + arduino + NRF? Chciałbym zrobić stację pogody. NRF jest pod spi, wyświetlacz też spi
English plz
@@HowtoElectronics Hello. do you have a project to connect the tft 1.8 SPI + arduino + NRF24L01 display and the nrf module work on SPI. I wanted to make a weather station + several sensors, voltage control, rtc clock module. I'm form Poland my email Dembek88@gmail.com
Messge me on fb
@@HowtoElectronics ok.
Thanks what is wattage of 47k resistor?
1/4
can i get code for this
is it possible to control more than 1 load?
Yes definitely
Can i use it for 3 phase motor ??
Ac motor single phase only
0:27 copied on Electronoobs channel footage. But you project is really good keep it up 👍
Yes some clips.
Dear sir
This is great project, but please explain the code.
U was not explaining the code properly in this tutorial.
Sure will do the same next time onwards
@@HowtoElectronics thanks sir
Use a fan regulator instead
Link,
?
Check description
I am astounded how unsafe and dangerous your PCB design is. There is no consideration of proper separation between the mains high voltage side and the low voltage Arduino side. There are many egregious examples, but here's a couple. At 0:55 we can see the layout. Look at the separation between the track from the wiper of the pot and the track from the triac to the optocoupler! Look at the track from R3 to the Arduino - how close it goes to pin 2 of the U1 and how close the track from U1 to D1 goes to the pad of R3.
PLEASE, PLEASE, PLEASE - nobody should copy or use this design, it is just too dangerous.
There is already an optocoupler to separate high power voltage and low power 5V.
@@HowtoElectronics I see the optocouplers in the schematic. That part of the design is fine, a bit artificial perhaps, but sound. It is the PCB implementation where dangerous high voltages are NOT properly separated from the low voltage side that will be connected to the user's PC and hence expose them to a shock risk that is dangerous and unsafe.
Optocouplers have their two sides well separated. This important safety feature is negated by the track layout on the PCB.
A little bit scare, for me, just done it now, I have to put a Circuit Breaker 15A, also wear rubber glove to test this. But your project is good, keep it up.