Introduction: Internet Control for Turning Computer ON/Off Using Blynk
We all have imagined about controlling our home pc from all over the world and apps like team viewer and remote desktop helps us to fulfill it up to an extent but they do not give us all the provision, we can only control a pc that is already turned on....this tutorial helps you to remove that barrier
MATERIALS REQUIRED:
1. Arduino
2. Two relay boards or a board with two relays.
3. ESP8266( Wi-Fi module )
4.jumper wires
5. A smartphone with blank app
6. And of course , a computer
Step 1: Blynk
first setup the blank app, you install it from the play store. Now create a new project select your device(mine is arduino mega) and connection as Wi-Fi . Add two buttons and set the values as given in the picture.
Note: the values sent (0 and 1) my relay board turns on on low and off on high but if yours turn on high and turn off on low, you should interchange the values.
Step 2: Connections
Connect the Wi-Fi module ESP8266 to the arguing as
Vcc to 5v
Gnd to gnd
Tx to rx
Rx to tx
Connect the relay board as following
Relay board 1
Vcc to 5v
Gnd to gnd
I/p to pin 2
Relay board 2
Vcc to 5v
Gnd to gnd
I/p to pin 3
Step 3: Arduino Code
The arduino code is a simple basic blynk code for n ESP8266 shield you can download the blank library from their official site or you can click the link below...
Change the authtoken to that you received in your mail from blynk
And said to your Wi-Fi name and add the the password also...
https://github.com/blynkkk/blynk-library/releases/latest
Attachments
Step 4: Testing
The test was ssuccessful and pictures are given below.
I will shortly upload a full video tutorial with testing.
Participated in the
Microcontroller Contest 2017