NODEMCU 1.0 (ESP8266) CONTROLLED RELAY USING BLYNK (OVER THE WEB)

by yoyosteven in Circuits > Microcontrollers

3800 Views, 15 Favorites, 0 Comments

NODEMCU 1.0 (ESP8266) CONTROLLED RELAY USING BLYNK (OVER THE WEB)

temp_-160377112.jpg
HEY GUYS MY NAME IS P.STEVEN LYLE JYOTHI AND THIS MY FIRST INSTRUCTABLE ON HOW TO CONTROLL A RELAY USING AN NODEMCU ESP8266-12E AND BLYNK OVER THE INTERNET

SO LETS GET STARTED

SORRY FOR MY BAD ENGLISH

THINGS YOU WILL NEED

IMG_20170226_190138_HDR.jpg
IMG_20170226_190853_HDR.jpg
IMG_20170226_192023_HDR.jpg
IMG_20170226_191934_HDR.jpg
IMG_20170226_192058_HDR.jpg

1. NODEMCU ESP8266-12E (http://www.ebay.in/itm/Genuine-NodeMcu-ESP8266-Boa...)

2. 4CH RELAY(http://www.ebay.in/itm/FOUR-CHANNEL-4-CH-5V-RELAY-...)

3. SOME WIRES

4. 5V POWER SUPPLY

5.SOLDERING IRON

6. AN WIFI NETWORK WITH ACTIVE INTERNET CONNECTION

7. AN ANDROID DEVICE WITH ACTIVE INTERNET CONNECTION

8. AND THE BLYNK APP ( https://play.google.com/store/apps/details?id=cc.b...)

THE BLYNK APP

Screenshot_2017-02-26-20-33-45-526_cc.blynk.png
Screenshot_2017-02-26-20-34-02-961_cc.blynk.png
Screenshot_2017-02-26-20-34-48-754_cc.blynk.png
Screenshot_2017-02-26-20-39-39-195_cc.blynk.png
IMG_20170226_220551.jpg
IMG_20170226_220638.jpg
Screenshot_2017-02-26-20-40-24-200_cc.blynk.png
Screenshot_2017-02-26-20-44-39-556_cc.blynk.png
Screenshot_2017-02-26-20-53-48-466_cc.blynk.png
CHECK THIS WEBSITE FOR MORE INSTRUCTION SO THAT YOU WILL BE ABLE TO UNDERSTAND CLEARLY (http://www.blynk.cc/getting-started)


DOWNLOAD THE BLYNK APP (https://play.google.com/store/apps/details?id=cc.b...)


1.OPEN THE BLYNK APP AND CREATE A NEW ACCOUNT

2.CREATE A NEW PROJECT

4.GIVE YOUR PROJECT A NEW NAME

5.THEN SELECT NODEMCU IN BOARDS

6.THEN SELECT WIFI IN CONNECTION TYPE

7.THEN CLICK CREATE

8.YOU WILL GET A ATHUNTICATION TOKEN VIA YOUR REGISTERED EMAIL (COPY THE ATHUNTICATION TOKEN AND COPY IN NOTEPAD YOU WILL NEED THE TOKEN IN THE ARDUINO CODE)

9.AND NOW CLICK THE (+) ICON

10.NOW YOU WILL GET A LIST OF WIDGETS

11.NOW CLICK ON BUTTON

12.ADD UPTO 4 BUTTONS (AS WE HAVE FOUR CH RELAY)

13.NOW CLICK ON THE BUTTON

14. A PAGE WILL OPEN (BUTTON SETTINGS)

15.NOW IN OUTPUT SECTIONE SELECT PIN AND CHANGE TO D1 BY SCROLLING (DEFAULT WILL BE PIN)

16.NOW GO TO MODE SECTION AND CHANGE TO SWITCH (DEFAULT WILL BE PUSH)

17.NOW IN ON/OFF LABLES SECTION WRITE ON IN ON AND OFF IN OFF

18. REPEAT THIS PROCESS FOR ALL THE BUTTONS (NOTE : FOR EVERY BUTTON CHANGE THE PIN ACCORDINGLY BUTTON 1 "D1" BUTTON 2 "D2" BUTTON 3 "D3" BUTTON 4 "D4"



NOW THE APP PART IS DONE

PROGRAMING THE NODEMCU ESP8266-12E

1.FIRST INSTALL THE ARDUINO IDE (http://download.arduino.org/IDE/1.8.1/arduino-1.8....)

OPEN ARDUINO

2.GO TO FILE=>PREFERENCES AND IN THE ADDITIONAL BOARD MANAGER PASTE THIS LINK (http://arduino.esp8266.com/stable/package_esp8266c...)

3.AND NOW GO TO TOOLS=>BOARDS=>BOARD MANAGER

4.NOW IN THE BOARD MANAGER SEARCH "esp8266"

5. NOW IN THE BOARD MANAGER YOU WILL GET "esp8266 by ESP8266 community"

6.INSTALL THE LATEST VERSION IN MY CASE IT WAS 2.3.0

7.NOW INSTALL THE BLYNK LIBRARIES BY GOING TO "Sketch=>Include Libraries=.>Manage Libraries

8. NOW IN THE Library Manager SEARCH FOR "BLYNK"

9.YOU WILL GET "Blynk BY volodmyr shaymka"

10.INSTALL THE LATEST VERSION IN MY CASE IT WAS V0.4.3

11.NOW CONNECT YOUR NODE MCU TO YOUR PC\

12.GO TO TOOLS=>BOARDS=>NODEMCU V1.0(ESP8266-12E)

13.SELECT YOUR COM PORT IN MY CASE IT IS COM5

14.NOW GO TO TOOLS=>PROGRAMMER=>"Arduino ISP"

5. AND UPLOAD THIS CODE (https://github.com/stevenchanti/P.STEVEN-LYLE-JYOT...)TO YOUR NODEMCU (CODE WILL BE IN THE FILES ATTACHMENTS)

===================================================================================

IN THIS CODE YOU HAVE TO CHANGE SOME THINGS LIKE YOU HAVE TO GIVE YOUR WIFI SSID AND PASSWORD WHICH YOU WANT TO CONNECT AND YOU SHOULD GIVE THE AUTH TOKEN THAT YOU GOT IN EMAIL


IF YOU HAVE ANY PROBLEM CONFIGURING THE NODE MCU WITH THE ARDUINO THEN GO AND SEARCH ON GOOGLE

SOLDERING THE WIRES OF THE NODEMCU TO RELAY AN POWERSUPPLY

nodemcu.png
1.NOW SOLDER THE GND OF THE NODEMCU TO THE GND OF THE RELAY

2.NOW SOLDER THE VIN OF THE NODEMCU TO THE VCC OF THE RELAY

3.NOW SOLDER THE D1 OF THE NODEMCU TO THE IN1 OF THE RELAY

4.NOW SOLDER THE D2 OF THE NODEMCU TO THE IN2 OF THE RELAY

5.NOW SOLDER THE D3 OF THE NODEMCU TO THE IN3 OF THE RELAY

6.NOW SOLDER THE D4 OF THE NODEMCU TO THE IN4 OF THE RELAY

TEST YOUR PROJECT

1. NOW POWER YOUR NODEMCU

2. NOW OPEN THE BLYNK APP

3. NOW OPEN YOUR PROJECT

4.CLICK ON THE MICROCONTROLLER ICON TO CHECK WHETHER THE DEVICE IS ONLINE OR OFFLINE

IF THE DEVICE IS ONLINE THE DEVICE IS WORKING AND PRESS THE BUTTONS TO CONTROLL THE RELAY

NOW THE PROJECT IS COMPLETE THIS IS MY FIRST INSTRUCTABLE SO SORRY FOR MY BAD ENGLISH