Blynk and Module ESP8266 With Arduino UNO

Published

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:

http://elettrizzatidiy.blogspot.it/2016/07/blynk-e...

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

Share

    Recommendations

    • Oil Contest

      Oil Contest
    • Woodworking Contest

      Woodworking Contest
    • Planter Challenge

      Planter Challenge
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    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();

    }

    Questions

    16 Comments

    can u send me the arduino code to this mail id:

    nihaludeenkaisome48@gmail.com

    1 reply

    Hey! Can you guys send me the code. The web page that you specified does not exist!
    Please help me

    indeed i can't enter your blog!

    the code is from the example of arduino?thank u!

    Why havent you copied program in instructions? Code is not acessible and the instructions is useless!

    the codes have been taken down from elettrizzatidiy.blogspot can u send me codes on my email id rasuru04@gmail.com

    1 reply

    Its showing error compiling while verifying the sketch but it is also showing 1 file included

    The library in the sketch can not be found anywhere :(

    #include <ESP8266_Lib.h>

    please help

    2 replies

    download ESP8266.h library and Rename it to #include <ESP8266.h>

    it worked for me

    Thank you,

    by now realized i did not download the whole lib,

    so now all is working fine

    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

    i dont know what you are taking:(

    Great intro to Arduino project. Projects like this are a great way to teach people for to combine different modules together.