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

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

Step 1: THINGS YOU WILL NEED

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...)

Step 2: THE BLYNK APP

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

Step 3: 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

Step 4: SOLDERING THE WIRES OF THE NODEMCU TO RELAY AN POWERSUPPLY

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

Step 5: 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

Comments

author
madhanrajk (author)2017-03-02

Hi,

can you please pm the code pls

author
madhanrajk (author)2017-03-02

Hi,

where is the code buddy

author
Swansong (author)2017-02-27

Thanks for sharing :)