Introduction: Home Automation Using Blynk
Hello, guys! I am back with another instructable.I have a
great interest in automating things around us and this project is an addition to that.
All of you might have already heard about blynk, if not, please visit the link below
(P.S> They are awesome!)
So, basically, they allow the communication between we the inventors and Arduino to be with more ease than ever. Remember, those nights hunting down apps in the play store for your Arduino projects because we don't know how to make a program or too lazy to make one, well this levels out both of this!
If you want a video tutorial of the same, go to the last step.
This project is inspired from the project:
Step 1: Required Items
3.ESP8266 Wi-Fi module
1. Blynk app
Step 2: The Blynk App
You will have to first download the app from the play store and go through all that initial registration and all.
So, once you are all done, let's get started.Open the blynk app and click on create a new project. A new window will open, type your project name there(Eg.'Home Automation Mark-4'). Select your Arduino board from the list of devices and set the connection type as Wi-Fi. You will receive an email with an auth token in it, you should enter this into the arduino code.
Now, the workspace will open. click on add button the the topright corner and add four buttons(you can add any no.of buttons). Click on the button to enter it's setting.
You can give any name you want(Eg. Switch-1).Now, select the pin as D3 and mode as 'switch'. You can repeat this for other buttons, just change the pin to the succeeding one.
If you are done with all this, Congratulations you are now an app developer !
Step 3: The Hardware Setup
Make the connections accordingly
Arduino Relay Arduino ESP8266
vin vcc 5V vcc
gnd gnd gnd gnd
D3 input 1 D10 tx
D4 input 2 D11 rx
D5 input 3
D6 input 4
Step 4: Arduino Code
The code we're using is a simple blynk example.(If you have not installed blynk library get it from here.) If you don't want to take all that extra effort, I will attach the specific code required for this project below.
So, the example we're using is ESP8266_Shield.
You should change the YourAuthToken to the one that you received in your mail and the YourNetworkName to your wifi name and also type in the password also.
check out the image for more instructions.
Step 5: Testing
The testing video with a full tutorial is uploaded to my youtube channel, if you like the video see more videos in my channel and if you like it hit the like button and subscribe my channel for more videos