Software Serial Esp8266 Programming

4/23/2019by admin

Hardware debugging and programming via UART/Serial connection has always been something so. 1 Serial Bridge Using ESP8266. 1.1 Prepare The Software; 1.2 Prepare. Apr 13, 2017 - Rx-Rx, Tx-Tx: uploading program from computer to ESP8266 via. Similarly, you interact via the serial monitor with your ESP8266 with a set of.

  1. Software Serial Esp8266
  2. Esp8266 Esp 12 Arduino

In this tutorial we will show how to update ESP8266 with new firmware.

We use ESP8266 together with Arduino and ESP8266EasyIoT library. The problem is if we do not need correct ESP8266 firmware, because responses to AT commands are different in different firmware versions.

To upload ESP8266 firmware you need FT232RL FTDI USB to TTL Serial+Adapter. Se buying guide for details. Don't forget to set FTDI programmer to 3.3V.

Connection is following:

  • Vcc = 3.3V (needs around 300-400mA peak)
  • Gnd = ground
  • CH_PD = Chip enable so always +Vcc
  • RST = Leave floating or ground to reset
  • GPIO0 = Normally floating but this needs to be grounded when you start the update.
  • UTXD = Tx data connect to Txd on FTDI/Serial interface
  • URXD = Rx data connect to Rx of FTDI/Serial interface

In my case serial USB converter did not provide enough current and updating was impossible. I've connected ESP8266 VCC to additional 3.3V power supply (do not connect FTDI serial USB VCC to VCC power supply if you are using additional power supply).

Then we need program to flash ESP8266. I'm using Windows XTCOM_UTIL, but you can find more flashing utilities on internet.

Esp8266

Program can be downloaded here XTCOM_UTIL. Run program and go to Tools->Config device. Select Com port (only Com ports COM1-COM6 are supported - change port in Windows control panel if necessary). Then open port and Connect.

Next go to API TEST->Flash Image Download. Select firmware image and press button Download.

Current EasyIoT8266 Arduino library works with ESP8266 V0.9.5.2 firmware. If you are usning SW serial, set baudrate to 9600 (default is 115200) with AT+CIOBAUD=9600.

See more tutorials at ​http://iot-playground.com/build​

To support this site and EasyIoT framework development please buy in our store.

FT232RL FTDI USB to TTL Serial Adapter 5V, 3.3V

FT232RL FTDI USB for Arduino or ESP8266 programming. Support 5V and 3.3V

Software Serial Esp8266

ESP8266 ESP-01 Serial WIFI Wireless Transceiver Module

ESP8266 Serial WIFI Wireless Transceiver Module

ESP8266 ESP-03 Serial WIFI Wireless Transceiver Module

ESP8266 serial WIFI model ESP-03

Esp8266 Esp 12 Arduino

ESP8266 ESP-12 Serial WIFI Wireless Transceiver Module

ESP8266 serial Port WIFI wireless module ESP-12

ESP8266 ESP-05 Serial WIFI Wireless Transceiver Module

ESP8266 ESP-05 Serial WIFI Wireless Transceiver Module

I bought the NodeMcu Lua ESP8266 ESP-12E + WiFi Motor Drive Expansion Board from a supplier in China. They arrived within two weeks. It was cost effective to buy the ESP8266-12E board with the Motor Drive Expansion Board. I paid $11.64 for the pair. More about the programming of the Motor Drive Expansion Board in a later instructable.

For the purpose of this instructable you only need the NodeMcu Lua ESP8266 ESP-12E WIFI Development Board. There are several benefits of using this development board rather than the module, the chief among them is - being able to use it right out of the box. It comes with the necessary circuitry to manage the voltages. The on-board USB to UART makes interfacing with computers a lot simpler.

The ESP8266-12E boards arrived in an anti-static bags. There was no USB cable. This board has a micro USB connector. I tried connecting the micro USB cable that came with my android charger. That did not work because it is not a data cable. I had some spare micro USB data cables sitting around and found one that worked.