How to Program ESP8266 (ESP-01) Module with Arduino UNO

How to Program ESP8266 (ESP-01) Module with Arduino UNO

It's difficult to make communication with ESP-01 module but today I'll show how to do it in the simplest way.

  • 1,031 views
  • 7 comments
  • 18 respects

Components and supplies

Apps and online services

About this project

Introduction:

In a previous story we saw how to flash firmware on ESP8266 ESP-01 module. Now we are going to see how to program ESP-01 module using an Arduino UNO with few very simple steps.

Note:

Download and install Blynk libraries to your Arduino IDE its very important before programming (Search on YouTube you can find easily).

Step 1:

Connections for programming

(Find the code in attachments)

ESP8266:-------------- >Arduino:

GND -------------------------- GND

GPIO-2 -------------------------- Not connected (open)

GPIO-0 -------------------------- GND

RXD -------------------------- RX

TXD -------------------------- TX

CHPD ------------------------ 3.3V

RST -------------------------- Not connected (open) *(Read Below Instruction)

VCC -------------------------- 3.3V

Very Important Instruction:

Now before hitting upload, take GPIO-0 to ground.

And RST to ground afterwards, remove RST after half a second (the blue LED flashes for some millisecond).

Hit upload, the blue flashes once and then blinks till it gets uploaded.

Now you are all done.

Step 2:

After programming, remove the serial Arduino cable and plug it again and take out GPIO-0 from GND and just interchange the connection of RX and TX that is RX connect to TX and TX connect to RX.

Connections after programming

ESP8266:-------------- >Arduino:

GND -------------------------- GND

GPIO-2 -------------------------- Not connected (open)

GPIO-0 -------------------------- Not connected (open)

RXD -------------------------- TX

TXD -------------------------- RX

CHPD ------------------------ 3.3V

RST -------------------------- Not connected (open)

VCC -------------------------- 3.3V

That's it, you are done!!!

Open serial monitor of Arduino IDE where you see the ESP is connected and ready.

Code

Blynk Simple codeC/C++
Download and Install Blynk libraries to your Arduino Board its very important before programming (Search on Youtube you can find easily)
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <SoftwareSerial.h>
#define ESP8266_BAUD 9600

char auth[] = "6bae2d0e7bfa4b6096feeaffa2030e4f";
char ssid[] = "Enter wiFi Name"; //You can replace the wifi name to your wifi 

char pass[] = "Password";  //Type password of your wifi.

SoftwareSerial EspSerial(2, 3); // RX, TX
WidgetLCD lcd(V0);

ESP8266 wifi(&EspSerial);

void setup()
{

  Serial.begin(9600);
  EspSerial.begin(ESP8266_BAUD);
  Blynk.begin(auth, wifi, ssid, pass);
   lcd.clear();
 lcd.print(1, 1, "IoT");
}

void loop()
{
  Blynk.run();
}

Schematics

For Programming Connections
During programming rqiz0acylq
After Programming Connections
After programming uhi3b6vazv

Comments

Similar projects you might like

Control Arduino Uno Using ESP8266 WiFi Module and Blynk App

Project tutorial by Adithya TG

  • 5,924 views
  • 10 comments
  • 23 respects

ESP8266 ESP-01 Webserver

by Robin

  • 101,715 views
  • 20 comments
  • 140 respects

Connect to Blynk using ESP8266 as Arduino Uno wifi shield

Project tutorial by Nolan Mathews

  • 74,336 views
  • 11 comments
  • 56 respects
Add projectSign up / Login