How can I, instead of switching the light on/off, to dim the light using the PWM of the ESP8266 module?

I read this related question 5 years old PWM to vary the light intensity of a 220V bulb

And I was wondering if there is a new way of doing it (a new module that I don't know about).

I did some research, I found that I could use BT136 TRIAC, but are there other ways of doing this?

May I get some support links or other ideas?

  • 1
    \$\begingroup\$ PWM isn't really the right terminology as a triac conducts until a zero current crossing, your are controlling the firing phase angle. \$\endgroup\$
    – sstobbe
    May 30 '17 at 16:38
  • \$\begingroup\$ is this for a filament or LED mains-powered light bulb? Triacs don't work very well with LEDs. I've found replacing the pot with an LDR on these modules to be a simple way to dim tungsten bulbs from an ESP using PWM on an LED that shines on the CDS... \$\endgroup\$
    – dandavis
    May 30 '17 at 17:53
  • \$\begingroup\$ PWM might not be indeed the right terminology, what I want to do is to control the brightness of a 220V light bulb with an ESP8266, like the potentiometers but remote \$\endgroup\$
    – yonutix
    May 30 '17 at 20:20
  • \$\begingroup\$ Much of what you need to know, including monitoring the zero-cross moment, is found here: ti.com/lit/an/slaa043a/slaa043a.pdf \$\endgroup\$
    – jonk
    May 30 '17 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.