Introduction: Blynk and Module ESP8266 With Arduino UNO
The ESP8266 module is a module that allows our micro controller to connect to a WiFi network or to create an access point for our devices.
The application that we will use for our form is "Blynk" downloaded for free from the Play Store. Through "Blynk" we can control the switching on and off of an LED through our WiFi network.
Step 1: Materials and Warnings
Used materials:
- Arduino UNO
- ESP8266
- An Android device
- Cables and a breadboard
It is important to point out before mounting the circuit module that ESP8266 works with 3.3V voltages higher then you risk burning it.
Step 2: Electrical Connections
ESP8266:____________ Arduino:
GND -------------------------- GND
GP2 -------------------------- Non collegato
GP0 -------------------------- GND
RXD -------------------------- Pin 3
TXD -------------------------- Pin 2
CHPD ------------------------ 3.3V
RST -------------------------- Non collegato
VCC -------------------------- 3.3V
LED:____________ Arduino:
Anode -------------------------- GND
Cathode ------------------------Pin 13
Step 3: Sketch
After making the connections we need to download the APP for Android and the library for use with Arduino then go on http://www.blynk.cc/getting-started/
Now that we have the APP installed on our device we should install the library so we download the .zip file and unzip in the directory: C: \ Users \ yourusername \ Documents \ Arduino \ libraries After installing the libraries we open the IDE Aduino we open an empty sketch and copy the sketch from this site:
Step 4: Blynk!
Now we need to download Blynk from google play.
Open Blynk from your smartphone and create our first program as in pictures.
Send via E-mail the Auth Token Code.
Now that we have created our own mini program we would modify the sketch nell'Arduino IDE, so we're going to copy our authtoken in the string:
auth char [] = "YourAuthToken";
in void setup () we find the string:
Blynk.begin (auth, wifi, "SSID", "pass");
it replaces the SSID, the name of our WiFi network and pass the corresponding password. We just now that load our program on Arduino and start the application!
For more projects vist our blog on:
http://elettrizzatidiy.blogspot.it/
and our facebook page on:
https://www.facebook.com/elettrizzati
Sorry for the bad english but we have translated with Google Translate an Italian Article
18 Comments
Tip 4 years ago
Here is the code that isn't available from the blog:
#define BLYNK_PRINT Serial
// Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “YourAuthToken”;
// Hardware Serial on Mega, Leonardo, Micro…
//#define EspSerial Serial
// or Software Serial on Uno, Nano…
#include
SoftwareSerial EspSerial(2, 3);
// RX, TX//
Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);
void setup(){
// Set console baud rate
Serial.begin(115200);
delay(10);
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, “ssid”, “pass”);
}
void loop() {
Blynk.run();
}
5 years ago
can u send me the arduino code to this mail id:
nihaludeenkaisome48@gmail.com
Reply 4 years ago
Did you code
Question 4 years ago on Step 2
Can yoi send me the code the link which is posted for sketch is no longer available please reply asap
rajneeshggupta@gmail.com
4 years ago
Hey! Can you guys send me the code. The web page that you specified does not exist!
Please help me
4 years ago
indeed i can't enter your blog!
4 years ago
the code is from the example of arduino?thank u!
4 years ago
Why havent you copied program in instructions? Code is not acessible and the instructions is useless!
5 years ago
the codes have been taken down from elettrizzatidiy.blogspot can u send me codes on my email id rasuru04@gmail.com
Reply 5 years ago
do u get the code..
5 years ago
how to install libraries
5 years ago
Its showing error compiling while verifying the sketch but it is also showing 1 file included
5 years ago
The library in the sketch can not be found anywhere :(
#include <ESP8266_Lib.h>
please help
Reply 5 years ago
download ESP8266.h library and Rename it to #include <ESP8266.h>
it worked for me
Reply 5 years ago
Thank you,
by now realized i did not download the whole lib,
so now all is working fine
5 years ago
Help me please?
i copied the sketch, and found out that the library was missing,
so i found a esp8266 library on this website: https://github.com/blynkkk/blynk-library/releases/tag/v0.3.8
then when i uploaded everything, my app says the arduino uno is not connected, what should i do thanks
Sincerely Gabriel
5 years ago
i dont know what you are taking:(
5 years ago
Great intro to Arduino project. Projects like this are a great way to teach people for to combine different modules together.