
If the NodeMCU is connected with WiFi, then you can control the home appliances from Blynk IoT App. The D3 pin should not be connected with GND during the booting process of NodeMCU. I have used a 5V mobile charger to supply the smart relay module. I have used the INPUT_PULLUP function in Arduino IDE instead of using the pull-up resistors. And the GPIO pins SD3, D3, D7 & RX are connected with push buttons to control the 4 relays manually. The circuit is very simple, I have used the GPIO pins D1, D2, D5 & D6 to control the 4 relays. I have explained the circuit in the tutorial video.
1k 0.25-watt Resistors (5 no) (R5 - R9)Ĭircuit Diagram of the NodeMCU Home Automation Project. But if you use PCB then you need the following components. You can make this project just by using NodeMCU and 4-channel relay module. Or you can also use a custom-designed PCB for this project. So, you can easily make this home automation project at home just by using a NodeMCU and relay module. Monitor real-time feedback in the Blynk IoT App.Ĭontrol appliances without WiFi from manual switches. This Blynk ESP8266 control smart relay has the following features:Ĭontrol home appliances with WiFi (Blynk IoT app).Ĭontrol home appliances with Blynk web dashboard.Ĭontrol home appliances with manual switches or push buttons. Tutorial Video on new Blynk ESP8266 Smart Home Server.Make an IoT-based Smart Home with Blynk 2.0 using NodeMCU ESP8266 to control 4 home appliances with real-time feedback & No Wi-Fi control.ĭuring the article, I have shown all the steps to make this Blynk home automation system. Send a GET request to /update?relay=&state= Set all relays to off when the program starts - if set to Normally Open (NO), the relay is off when you set the relay to HIGHįor(int i=1 isend_P(200, "text/html", index_html, processor) initialize EEPROM with predefined size Create AsyncWebServer object on port 80Ĭonst char index_html PROGMEM = R"rawliteral( Set to true to define Relay as Normally Open (NO) define the number of bytes you want to access
include library to read and write from flash memory I want to display the sensor readings to a web page (Localhost) with Button, My code: // Import required libraries In the circuit 4 sensors are connected to Arduino and Sending data to nodemcu ESP8266 by serial communication. I have basic knowledge of ESP and Arduino, I was writing a program to remotely start my 3 phase motor.