You are on page 1of 4

technology workshop living food play outside

Use Arduino Due to program and test ESP8266


by anistor on April 26, 2015

Table of Contents

Use Arduino Due to program and test ESP8266 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Use Arduino Due to program and test ESP8266 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Get your materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 3: Program Arduino Due to act as a bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 4: Test the bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 5: Program the ESP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

http://www.instructables.com/id/Use-Arduino-Due-to-program-and-test-ESP8266/
Intro: Use Arduino Due to program and test ESP8266
If you want to program an ESP8266 (Wifi SoC) you will normally use a USB to serial adapter like this one. In case you do not have one but you have an Arduino Due
laying around you can rig the Arduino as a bridge to program and test the ESP8266. Please be aware it does not make sense to buy an Arduino Due just for this purpose
because it is usually more expensive than the FTDI chip (USB to serial).

Arduino Due is in particular good for this purpose because it does not need any level shifters. Arduino Due works at 3.3V which is compatible with the ESP8266. Here
you have the steps how to do this:

Step 1: Get your materials


This is easy. As the title of this project says, you need an Arduino Due, the ESP8266 chip and some wires.

Step 2: Wiring
The wiring is fairly simple. If you use a switch you can prepare the wiring for both programing and serial monitoring. The wiring is fairly simple. Vcc on ESP8266 goes to
3.3V on Arduino Due. GND from ESP8266 obviously goes to GND on Arduino Due. CH_PD from ESP8266 goes to 3.3V. RX from ESP8266 goes to TX1 on Arduino and
the TX from ESP8266 goes to RX1 on Arduino. GPIO0 is connected to GND for programing or disconnected if it's just running the software.

http://www.instructables.com/id/Use-Arduino-Due-to-program-and-test-ESP8266/
Step 3: Program Arduino Due to act as a bridge
This is a very simple step. You need to know at what speed your ESP8266 works. In case you do not know it you can just try. In most of the cases the speed would be
either 9600 or 115200. Set Serial1 on Arduino at that speed. Basically the program reads from Arduino main serial and transfer the data back and forth with Serial1 on
Arduino Due.

Step 4: Test the bridge


Once you programmed the Arduino Due you can test the connection with ESP8266. Just open the Serial Monitor and make sure the speed matches the speed you set for
Serial (not Serial 1) which is the connection between the computer and Arduino and not between Arduino and ESP8266. ESP8266 is pre-programmed to support a series
of AT commands. You can try them.

http://www.instructables.com/id/Use-Arduino-Due-to-program-and-test-ESP8266/
Step 5: Program the ESP
You can use any IDE to program the ESP withe Arduino bridge you just created. In case you want to use Arduino to program the ESP8266 you need to use this release
of Arduino. Once installed and made sure you set the port to the one connected to Arduino you need to set ESP8266 as target and the programmer to esptool.

Related Instructables

Esp 8266 ESP8266 WiFi ESP8266 WiFi ESP8266 WiFi Use ESP8266 to ESP8266 WiFI
firmware update temperature and relay switch by DS18B20 Internet enabled water leak
by RaviP6 humidity sensor EasyIoT temperature AC Appliances sensor by
by EasyIoT sensor by shinteo EasyIoT
(ESP8266
Arduino IDE
without
Arduino) by
EasyIoT

Advertisements

Comments

http://www.instructables.com/id/Use-Arduino-Due-to-program-and-test-ESP8266/

You might also like