ESP8266 with AT firmware
Last updated
Last updated
This documentation is for the LEGACY version of Blynk platform which is no longer supported and will be shut down.
You can sign up for the current version of Blynk platform here.
The new mobile apps can be downloaded from App Store and Google Play.
The actual Blynk documentation is here.
ESP8266 WiFi module (or shield) with default AT firmware can be used to connect your hardware to Blynk.
These come in different shapes and colors, but basically you can use simple ESP01 module like this:
If you have an Arduino Shield with ESP8266 (like doit.com ESP13 Shield), you don't need to do this wiring - that is already done for you!
First of all, it is recommended to buy a USB-UART TTL converter, capable to supply 1A @ 3.3V. This will help you in lots of different cases, not only for ESP8266. For ESP8266, it will be needed for initial configuration and testing, AT firmware upgrade, etc.
☝️ If you run ESP8266-standalone example on your ESP8266 module, it overwrites AT firmware of the module, so it won't work as modem. Make sure your ESP is flashed with AT firmware (you can find stable firmware here, flash it to 0x00000 using this guide for example).
For this connection, Blynk uses ESP8266_Lib.h library, which you get automatically when you install Blynk libraries.
Check that your ESP8266 module is powered correctly and turned on
Ensure a stable serial connection to ESP8266
Use your USB-UART TTL converter, or this sketch to access AT command console
Update your ESP to the latest firmware, if needed (AT v1.1.0.0 is recommended)
Remember which Software Serial pins (or Hardware Serial#) and baud rate work for your module.
Use Blynk -> Boards_WiFi -> ESP8266_Shield example with the same Serial configuration.
In Blynk App, select the Board type of your main board, to which ESP8266 is connected (Uno, Mega, etc)
When using Software Serial - you have to switch ESP8266 to baud rate 9600. Send this AT command to ESP8266:
or, for some versions:
It should reply OK
.
Failing to read the comments in the sketch and amending it accordingly for the specific hardware.
Powering ESP8266 from 3v3 pin on Arduino UNO/Nano/Mega
most likely won't work.
Use a separate 3.3V source, that can provide up to 1A, like AMS1117.
Baud rate of ESP8266 should match with Arduino Serial baud rate. Or TX/RX pins could be swapped by mistake.
Ensure Arduino can communicate with ESP8266 with AT commands.
Using Software Serial
is less stable than Hardware Serial
.
Try using boards with a dedicated hardware Serial pins, like Leonardo, Mega, Teensy
, etc.
Trying to run a sketch with Serial Monitor open in shield mode.
Weak WiFi signal.
Poor circuit construction.
If you constantly get "ESP is not responding" - please be patient and try looking for available solutions on our community forum.
Some useful recommendations about writing Blynk sketches can be found here: http://community.blynk.cc/t/solved-disconnect-cmd-skipped-etc-issues-my-advice/5362
Blynk was tested with following AT firmware versions: