How to Program ESP8266 with Arduino UNO

How to Program ESP8266 with Arduino UNO © GPL3+

Learn programming ESP8266 with Arduino Boards. Installing ESP8266 board to Arduino Boards manager and uploading sample program to ESP-01.

  • 53,538 views
  • 14 comments
  • 20 respects

Components and supplies

About this project

Here, learn how to Program ESP8266 with Arduino Board. You just need to install the ESP8266 board and make circuit as per the below given instructions. We are using Blink LED program as sample program.

Step 1: Installing Board to Arduino IDE

First, install ESP8266 to Arduino IDE. If you have already installed the board to boards manager of Arduino IDE, skip this step else follow the steps

  • Go to Tools > Boards > Boards Manager...
  • Search ESP8266
  • Click Install button to install the ESP8266 Board
  • Now close the Boards Manager window and select the Generic ESP8266 Module from board selection list
  • Installation of ESP8266 in Arduino IDE is done.

Step 2: Circuit Time

Make a circuit as per the given diagram. Connect the CH_PD and VCC line to Voltage Regulator Output, GND and GPIO_0 to Ground. Also connect RX and TX lines of both. GPIO_0 is Grounded to enable the programming mode of ESP8266.

Step 3: Program ESP8266 using Arduino

Make the circuit as per the above given diagram. Power up the Arduino UNO board and wait till the Arduino Board boots up successful. (It will take around 5 seconds) Connect the Arduino Reset pin to Ground. Reset pin is grounded to bypass the Arduino. It will disable Arduino Board and upload code directly to the ESP8266. Sample program for Blink LED is as below

After the Arduino IDE shows done uploading of Blink LED program, connect the LED to GPIO_2 Pin of ESP8266. Please do not connect the LED before or at the time of uploading program, it can cause some issue in uploading program.

Note: If the L light is on at the time of before uploading program, disconnect the power supply for one minute, else it will show error in uploading program to ESP8266.

View original at: https://iot-guider.com/esp8266/how-to-program-esp8266-with-arduino-uno/

For article of Hardware Basics and features of ESP8266 WiFi Module click here.

Code

Code for Blink LED in ESP8266 ESP-01

Schematics

Circuit for uploading program to ESP8266 ESP-01
program_esp8266_with_arduino_4DPePAssja.fzz

Comments

Similar projects you might like

Control Arduino Uno Using ESP8266 WiFi Module and Blynk App

Project tutorial by Adithya TG

  • 6,544 views
  • 10 comments
  • 27 respects

ESP8266 ESP-01 Webserver

by Robin

  • 102,831 views
  • 20 comments
  • 142 respects

Connect to Blynk using ESP8266 as Arduino Uno wifi shield

Project tutorial by Nolan Mathews

  • 72,890 views
  • 11 comments
  • 53 respects

Add WiFi to Arduino UNO

by Jefferson Paredes

  • 156,842 views
  • 100 comments
  • 109 respects
Add projectSign up / Login