In this IoT project, I have shown how to make The smartest home automation system with FAN Speed Control using ESP32 and the new Blynk IoT platform, sensor, and IR remote control relay. You can also control appliances, and fan speed without internet from IR remote and manual switches.
PCBA from $0 (Free Setup, Free Stencil)
Download the PCB Gerber file for ESP32 IoT Projects
For this ESP32 project, I have used the FREE plan of the Blynk IoT platform and the ESP32 can save the last GPIO state in NVS flash memory (EEPROM).
During this Internet of things tutorial video, I have covered the following topics:
00:13 Control ceiling Fan Speed with Blynk & IR Remote.
00:31 Control relays with Blynk, IR Remote & Manual Switch.
01:24 Required Components for ESP32 control fan dimmer.
02:16 Circuit of the ESP32 IoT-based home automation system.
03:38 Connection of 4-step fan regulator with ESP32 control relay.
07:06 Set up Blynk IoT cloud for ESP32 IoT project.
08:55 Source Code for the ESP32 IoT project with fan dimmer.
10:23 How does the ESP32 control the Fan Speed.
13:09 Set up Blynk IoT app Mobile Dashboard.
14:03 Controlling relays & fan with Blynk app, IR remote, & switches.
Required Components for this ESP32 home automation system
1. ESP32 DEV KIT V1
2. 8-channel 5V SPDT Relay Module
3. TSOP1838 IR receiver (with metallic casing)
4. DHT11 temperature sensor
5. Switches or pushbuttons
6. 4-step Fan regulator
OR
(2.2uf & 3.3uf 250V Capacitor, 2.2-ohm 1/2W & 220k 1/4W Resistors, and 4-step selector switch)
Amazon India Affiliate links:
ESP32 DEV KIT V1:
8-channel 5V Relay Module:
Amazon United States Affiliate links:
ESP32 DEV KIT V1:
8-channel 5V Relay Module:
Help my projects on Patreon:
Feel free to donate any amount:
Download the Code for the ESP32 Blynk IoT project from the following article.
** 1 correction in the circuit shown in the video. DHT11 O/P will connect to RX2 pin of the ESP32. (Please refer to the following circuit)
Previous Videos:
Last Blynk ESP32 Project:
Get the HEX codes from IR remote:
Steps to program ESP32 with Arduino IDE:
Important Links:
New Blynk IoT Cloud:
Important points:
1. In the 4-step regulator step-2 & 3 must be internally connected.
2. IR receiver sensor must have a metallic casing. Otherwise, you may face issues while trying to get the Hex code.
3. ESP32 can save the last GPIO state after power failure.
4. You can control fan speed relays with switches & IR remote if WiFi is not available.
5. Install the correct version of the ESP32 board and libraries as mentioned in the code.
7. Please watch the complete video, otherwise you may face some issues.
**Please take proper safety precautions while working with high voltages.
During the Blynk tutorial video, I explained all the steps to connect the fan dimmer circuit with ESP32 control relays.
You can also add Blynk Automations to control the relays and fan speed with DHT11 sensor reading as shown in the previous video.
With this ESP32 home automation project, you can control the fan speed and relays without internet from the IR remote and manual switches. ESP32 will automatically connect with the Blynk cloud when the internet comes back and the relays will turn on as per the previous states.
You can use any IR remote to control the relays, just get the HEX codes of unused IR remote buttons, and control the appliances with those buttons.
This smart relay module PCB can be used for different ESP32 projects which I will cover in upcoming videos.
#homeautomation #iotprojects #esp32 #fandimmer
—
Thanks For Watching…
✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
Find out more projects:
Facebook:
Instagram:
Telegram:
—
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:
Latest NodeMCU projects playlist:
Arduino Home Automation Projects playlist:
** 1 correction in the circuit shown in the video. DHT11 O/P will connect to the RX2 (GPIO-16) pin of the ESP32. (Please refer to the following circuit)
https://iotcircuithub.com/wp-content/uploads/2022/10/esp32-iot-project-circuit_p4.webp
Download the new PCB Gerber and Source Code for this IoT Project from the following article:
https://iotcircuithub.com/esp32-home-automation-system-with-fan-speed-control/
Sir I make a project using esp32 and 4 channel relay. The project works fine on after uploading but after power interruption or when reset button is press it doesn't work and there is a single led glowing in dim light on the relay. Please help me how to solve this problem.
Non technical can also understand such type of teaching thanks sir
Hi, when i was trying to load firm ware into esp 8266, befoe loading itried to erase old firm ware but it shows file out not erasing,
what will be the problum, pl explain.
please help me sir. Unable to upload code.
include <preference.h>
it looks wrong. i don't understand. i want to contact you.
anyone help me
Sir, this project can't use esp8266.
+ coding for lcd 16×2 please🙏
@TechStudyCell Can you share Pick & Place File.
Without the Internet, I am able to control all devices using Hard Switches, IR-Remote, and Bluetooth APP. However, If my Wifi Router is turned OFF, Nothing is turning ON even through Hard Switches or Bluetooth APP. What modification is required?
Bro i didn't find the esp32 code
Hi sir my project is based on home automation with 2 channel relay with also I have used mq6 dht11 ultrasonic sensor, pir sensor, IR sensor, moisture Sensor, esp8266 and I want to control my fan speed depend on the temperature this is possible or not
Weldone Sir! I have been following your videos, they are always superb. Can you please make it a full automation with the addition of more sensors (like: PIR – motion; Flame/fire; Gas, Ultrasonic for water level) for more monitoring of the home.
Can we use esp8266 instead of esp32?
How can i get that pcb in online ?
IR FAN CONTROLL WITH LED DISPLAY :
https://youtu.be/nXMCqaNpW38
Sir what type of capacitors did you used in discrete circuit it is polarized or Unpolarized
Can we connect the esp 32 on our home Wifi router and can we control from anywhere by our mobile?
I am facing issues with relay.
My relay is getting NC to NO.. on applying both 3Volt and ground
When I touch input pin of relay to 3volt of nodemcu it gets switched… And if i also connect it with ground pin of nodemcu..it also switched on
I want this project using esp rainmaker + Alexa+ Google assistant
This project is very very useful and your all vidioes complete details so your thank you and you are really a teacher of iot 👌👌👌👌
sir can you again explain fan dimmer connection I didn't understand plz sir
/D15 in fan speed 3 not working
Sir is 5 volt supply necessary for making home automation project using nodemcu and esp32. Please clarify my doubt sir
please can you add voice control to this project?it will make it much complete
Can i buy this ? Any contact link
Want to make same project but using esp8266 if u have any video then please send me
Sir can we use 8th relay for 5th switch. I mean total 5 switches except 3 fan speed relays. Kindly support.