Interface and Application Programming

ESP8266 WiFi Module and Blynk App


This week's task is to connect a project to a smart phone. For that, I went for a simple ESP8266 module and connected it to Blync - and these are the steps:
First, I downloaded Blynk Libraries (latest version) and ESP8266 flasher tool. Then, I launched the Arduino software. From File -> Preferences, in additional board manager URL I typed - http://arduino.esp8266.com/stable/package_esp8266com_index.json



From tools -> boards -> Board Manager -> I installed the esp8266 package.



Then, I extract the blynk library and copied the content of the libraries folder into - documents -> Arduino -> Libraries. Now I installed the Blynk app on my phone and created an account.



Then, I created a project:



Blynk then sent me an Auth Token by email:



I created a button:



and gave it a name, setting it to pin D13.



I toggled the mode to "switch"



Then, I opened Arduino IDE. Selected board as Arduino Uno and COM5 as the port. Then, copied this code:



I replaced yourAUTH with the Auth token sent to my email.



and replaced youSSID with WiFi name and YourPassword with WiFi Password.



I, then uploaded the code:



I unplugged the Arduino board from the computer, and connected it to the ESP module as follows:

TX -> Rx
Rx -> Tx
Gnd -> Gnd
Vcc -> 3.3v



and then plugged the Arduino to the computer, and went into Arduino's serial monitor, sat baud rate to 115200:



This appeared to be a connection issue, also apparent on the Blynk app (below):



Files

Blynk.ino

Copyright © Reeman Bustami 2019