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
  • Наука та технологія

КОМЕНТАРІ • 42

  • @electronic7979
    @electronic7979 4 роки тому +1

    Very helpful information. I like it

  • @kireetdeshmukh399
    @kireetdeshmukh399 3 роки тому +1

    How much the pcb costed you and in how many days it got delivered?

  • @soovui
    @soovui 4 роки тому

    Thanks a lot for sharing, can you help the code for Trailing Edge?

  • @ShopperPlug
    @ShopperPlug 3 роки тому

    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?

    • @HowtoElectronics
      @HowtoElectronics  3 роки тому

      You can use MOC3020 or MOC3021 or MOC3023. The difference is only regarding power consumption or load current. Any of the IC will work.

  • @MudasirHussain-o9s
    @MudasirHussain-o9s 4 роки тому

    I am watching your videos from long time, but i request you 100 times for making project on power factor improvement.

    • @HowtoElectronics
      @HowtoElectronics  4 роки тому +1

      Contact me via fb. I will share the pdf for what you want.

  • @TOn-fx2gr
    @TOn-fx2gr 4 роки тому

    How to do pins on easyeda

  • @mihapeterle204
    @mihapeterle204 2 роки тому

    i would rather try with pin 2 as an interupt because sometimes zerocross can be forgoten

  • @alimz4891
    @alimz4891 3 роки тому

    Hi,Can I use the electrical heating element instead of the lamp according to your method?

  • @HomeAutomationTECH
    @HomeAutomationTECH 4 роки тому +1

    How to control ac fan speed with ir remote control system with arduino plse make a video

  • @ashishmaurya6520
    @ashishmaurya6520 4 місяці тому

    In this video you told CFL bulb, can this works 220V led bulb as dimmer ??

  • @bibekbarman4139
    @bibekbarman4139 4 роки тому

    Sir please make self balancing robot

  • @ankitjain-bv3pd
    @ankitjain-bv3pd 4 роки тому

    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...

    • @HowtoElectronics
      @HowtoElectronics  4 роки тому

      Nice idea. And really a very nice project. Need to work on that. Will upload this in near future thank you.

  • @bartekd3577
    @bartekd3577 4 роки тому

    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

    • @HowtoElectronics
      @HowtoElectronics  4 роки тому

      English plz

    • @bartekd3577
      @bartekd3577 4 роки тому

      @@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

    • @HowtoElectronics
      @HowtoElectronics  4 роки тому

      Messge me on fb

    • @bartekd3577
      @bartekd3577 4 роки тому

      @@HowtoElectronics ok.

  • @doosetdaramkhodahafez8827
    @doosetdaramkhodahafez8827 4 роки тому

    Thanks what is wattage of 47k resistor?

  • @shareefnv
    @shareefnv 2 роки тому

    can i get code for this

  • @MrMask-rl5vj
    @MrMask-rl5vj 4 роки тому

    is it possible to control more than 1 load?

  • @dibyakantajana7358
    @dibyakantajana7358 4 роки тому

    Can i use it for 3 phase motor ??

  • @tracervisualeffects8448
    @tracervisualeffects8448 4 роки тому

    0:27 copied on Electronoobs channel footage. But you project is really good keep it up 👍

  • @ankitjain-bv3pd
    @ankitjain-bv3pd 4 роки тому +1

    Dear sir
    This is great project, but please explain the code.
    U was not explaining the code properly in this tutorial.

  • @Akash_sarkar967
    @Akash_sarkar967 4 роки тому

    Use a fan regulator instead

  • @vijayakrishnasivakoti4439
    @vijayakrishnasivakoti4439 3 роки тому

    Link,
    ?

  • @Brian_Of_Melbourne
    @Brian_Of_Melbourne 3 роки тому

    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.

    • @HowtoElectronics
      @HowtoElectronics  3 роки тому

      There is already an optocoupler to separate high power voltage and low power 5V.

    • @Brian_Of_Melbourne
      @Brian_Of_Melbourne 3 роки тому +2

      @@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.

    • @topvideochannel6207
      @topvideochannel6207 2 роки тому

      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.