user50713: I would like to use ESP32 to speed control my AC ceiling fan which is 220V AC 100 W.
Will the below AC dimmer work with ESP32 to speed control the ceiling fan which is 220V AC 100 W? 
If not, kindly suggest a commonly used PWN dimmer that works with ESP32 to speed control ceiling fan with 220V 100W? 
This is the link to Speed controller available on Amazon.


user37622: In theory, it should work to control the speed of fan. The manufactures description mentions "fan regulator". One of the pictures shows on the backside of the module that it is for 2 A (5 A peek). This should be good for 230 V / 100 W motor.
The module gives you a basic circuit to control AC. It reports zero-crossing and has an optocoupler switch to turn AC on and off. The dimming does your sketch, by cutting parts of the AC wave out in precise timing.
The example sketch is not good. It has delay in interrupt. With this implementation the sketch will not be able to do much else. 
EDIT: I tested it and it works with fan too. The delay in interrupt is to create a short pulse to turn on the triac. The triac then turns self off on next zero-crossing. And Robotdyn changed the specs to 10 A.

50713: <p>I would like to use ESP32 to speed control my AC ceiling fan which is 220V AC 100 W.</p>

<p>Will the below AC dimmer work with ESP32 to speed control the ceiling fan which is 220V AC 100 W? </p>

<p>If not, kindly suggest a commonly used PWN dimmer that works with ESP32 to speed control ceiling fan with 220V 100W? </p>

<p>This is the link to <a href="https://www.amazon.in/gp/product/B078Q8TBRN/ref=ox_sc_saved_title_1?smid=A2E29Q4MEZXUIP&amp;psc=1" rel="nofollow noreferrer">Speed controller available on Amazon</a>.</p>

<p><a href="https://i.stack.imgur.com/3Urab.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Urab.jpg" alt="enter image description here"></a></p>
 37622: <p>In theory, it should work to control the speed of fan. The <a href="https://robotdyn.com/ac-light-dimmer-module-1-channel-3-3v-5v-logic-ac-50-60hz-220v-110v.html" rel="nofollow noreferrer">manufactures description</a> mentions "fan regulator". One of the pictures shows on the backside of the module that it is for 2 A (5 A peek). This should be good for 230 V / 100 W motor.</p>

<p>The module gives you <a href="https://robotdyn.com/pub/media/0G-00005677==Mod-Dimmer-5A-1L/DOCS/Schematic==0G-00005677==Mod-Dimmer-5A-1L.pdf" rel="nofollow noreferrer">a basic circuit to control AC</a>. It reports zero-crossing and has an optocoupler switch to turn AC on and off. The dimming does your sketch, by cutting parts of the AC wave out in precise timing.</p>

<p><a href="https://robotdyn.com/pub/media/0G-00005677==Mod-Dimmer-5A-1L/DOCS/Glow.ino" rel="nofollow noreferrer">The example sketch</a> is not good. It has delay in interrupt. With this implementation the sketch will not be able to do much else. </p>

<p>EDIT: I tested it and it works with fan too. The delay in interrupt is to create a short pulse to turn on the triac. The triac then turns self off on next zero-crossing. And Robotdyn changed the specs to 10 A.</p>
