In this video, we’ll build a Smart IoT Fan Regulator using ESP32 AC Dimmer — a complete home automation project that lets you control your AC fan speed from anywhere using ESP RainMaker Cloud, Amazon Alexa, Google Home, IR Remote, and manual switch. — all using free tools for a practical IoT smart home solution.
To try out the Altium Develop, click here - https://www.altium.com/yt/TechStudyCell
This ESP32 AC Dimmer circuit works just like a traditional fan regulator but with smart IoT features. You can easily control the fan’s power ON/OFF and speed levels (0–4) directly from your smartphone app, voice assistants, or IR remote. It also supports manual switches for local control, ensuring it works even without Wi-Fi.
During the ESP Rainmaker tutorial video, I covered the following topics:
01:22 Required Components for this ESP32 AC dimmer.
01:49 Circuit diagram of ESP32 Fan Regulator project.
04:52 Source codes for the ESP Rainmaker AC dimmer project.
05:06 Get the HEX code of IR remote buttons.
07:41 Connect the ESP32 with the ESP RainMaker app.
08:43 Connect ESP Rainmaker with the Amazon Alexa app.
09:12 Connect ESP Rainmaker with the Google Home app.
09:42 Testing the AC dimmer circuit with filament blub.
11:49 Connection diagram of the DIY Smart Fan Regulator.
Previous tutorial video on ESP RainMaker: https://youtu.be/PLM4MZdCLNM
Required Components for the ESP32 Fan regulator
1. ESP32 Devkit.
2. 4-channel 5V SPDT Relay Module.
3. TSOP1838 IR Receiver
4. Switch.
Amazon India Affiliate links:
ESP32 : https://amzn.to/331pohb
4-channel 5V Relay Module : https://amzn.to/2BQ5Y3o
Echo Dot Alexa(4th Gen) : https://amzn.to/3srCiPA
Help my projects on Patreon: https://www.patreon.com/join/techstudycell
Feel free to donate any amount: https://paypal.me/sdaspay
Features:
Control appliances from anywhere using ESP RainMaker App
Voice control with Google Assistant & Amazon Alexa
EEPROM memory to remember the last state of the fan after power failure
Manual control using selector switch and IR remote.
Real-time sync between app, manual switches & IR remote
Easy provisioning and setup using ESP RainMaker app.
Download the Code for the ESP32 IoT project with ESP Rainmaker:
https://iotcircuithub.com/wp-content/uploads/2025/10/Code_ESP32_RainMaker_1Fan_Speed.zip
Important points:
1. You don't need any Amazon echo device for this IoT Project.
2. You need to install ESP Rainmaker, Google Home, and Amazon Alexa IoT application on mobile.
3. You can control the fan from any WiFi network if ESP32 is connected to WiFi.
4. Update the Preference URLs to install the ESP32 board version 2.0.5 as shown in the video.
5. To generate the QR code, press and hold the ESP32 BOOT button for 10 seconds.
6. Please restart the ESP RainMaker app and turn ON/OFF the Bluetooth and GPS after adding each ESP32.
7. Update the IR Hex code for your IR Remote.
8. Please watch the complete video, otherwise you may face some issues.
**Please take proper safety precautions while working with high voltages.
This smart IoT fan regulator can replace your existing wall regulator and make your ceiling fan fully smart. It’s an ideal DIY project for smart home enthusiasts, IoT learners, and ESP32 developers who want to explore RainMaker automation and voice-controlled AC dimming.
#esp32 #homeautomation #fanregulator
-------------------------------------------------------
Thanks For Watching...
✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
Find out more such projects: https://iotcircuithub.com/
Facebook: https://www.facebook.com/techstudycell/
Instagram: https://www.instagram.com/techstudycell/
Telegram: https://t.me/techstudycell/
-------------------------------------------------------
-------------------------------------------------------
WARNING:
This video is for demonstration and educational purposes only.
Each demonstration presents risks and hazards that must be fully understood before attempting.
And should be performed only by professionals
------------------------------------------------------
Other useful IoT projects:
Latest ESP32 projects playlist:
https://www.youtube.com/playlist?list=PLlBmS9EKFydee7YsvVP_5TiPDeH38PwlK
Latest NodeMCU projects playlist:
https://www.youtube.com/playlist?list=PLlBmS9EKFydcv9ffXm72-cU9_EusicIjO
Arduino Home Automation Projects playlist:
https://youtube.com/playlist?list=PLlBmS9EKFydcxOoCht4ocLEV5zUdoCwsd