Software apps and online services
(I have provided detailed steps to build the project mentioned in the video. Scroll down further to access the steps).
Hi Friends Welcome to Akshit innovation lab.
In this IoT based project, we will learn how to do Home automation using NodeMCU and Blynk App. This is a simple but useful home automation project using Nodemcu and a relay module. Through this project, we can control home appliances securely from the smartphone. During the video, I have shared the circuit diagram, Arduino sketch, Blynk example library for this internet of things project. If you have any doubts contact me at my e-mail id: firstname.lastname@example.org. The project can be used for school projects.CONNECTION PART
Lets begin the connections. Connect the Relay module IN1 wire to D3 of ESP8266
As a second step, connect IN2 wire from relay module to D4 of ESP8266
Now connect the IN3 wire from relay module to D5 of ESP8266
Now connect the IN4 wire from relay module to D6 of ESP266
Now connect the ground wire from relay module to ground of ESP8266
Now connect the +5 volt wire from relay module to VCC of ESP8266
Download the Blynk app from online
At the time of registering in Blynk app from mobile you will receive the authorization code to your email id. Please take a note of it.
Please provide the project name. Post which we need to create the controlling buttons. I'm creating four buttons here.
The pin number for the button 1 is "GPO0". GPO0 means D2 in Arudino. The respective pin information, I have provided in the circuit diagram in description. Now second button is named as GPO2.
Third button is GPO14 and Fourth is GPO12.
You can name the buttons to represent the respective electrical device you are trying to control. Now I'm renaming the first button to "Fan".
You can even provide your name for any button.
Change all the buttons to switch mode
Now change each button from 0, 1 mode to 1, 0 mode
Please use this step, only when the buttons are not performing the function as intended. Else leave them to default 0, 1 mode.
You can even choose specific colors for your buttons
Now we have completed Blynk setupCODING PART
Okay, lets go to coding. You can download Arduino IDE app from Microsoft store. I have already downloaded and installed it.
Open the app, go to File menu -> Preferences -> Copy paste this link http://arduino.esp8266.com/stable/pac...
Open tools -> board Manager -> Install Latest Version of ESP8266 Board
Now click on the github link -> Blynk release -> open the zip -> paste it in Arduino data in documents
Open -> Example -> Blynk-> Board Wi-fi -> Esp8266 Standalone
Paste your Auth token that you received in your email (when you logged into Blynk) in Char Auth coding line.
paste your WiFi name in char SSID code line
paste your password in (char pass in the code)
Now select the board as nodemcu 1.O ESP 12-E Module and select the port
Now lets control the relay module using the phone. As you see, we are able to switch on and off the lights. In relay module lets learn how to connect to the relay module to the home light connection. If you are trying to connect the relay module directly to the electrical board. Use a two way switch. I'm also planning to demonstrate how to connect the relay directly to electrical board via two switch. This I will do it during the part II of the video. If you are trying to connect the relay module to the switch board. Please seek professional support. Do not try on your own. Since I'm unable to get the professional support. I have connected light with plug. You can also do this in a bulb.RELAY CONNECTION
STEP: 1 In relay, take the negative in light wire and connect to the middle of channel 1 in relay
STEP: 2 Now take plug's negative wire to the left side middle of the relay module
STEP: 3 Now join both the positive