ESP8266 Arduino Tutorial - IoT WiFi Module Thorough Review With Example
ESP8266 Arduino Tutorial - IoT WiFi Module Thorough Review With Example
Nowadays devices, either they are made for regular or industrial use, are based on wireless communication
technology and the main reason is not to get rid of wires, but to be able to interconnect between them.
Meanwhile buying a wireless device became natural for everyone and price for WiFi Ready equipment lowered
with time passing.
While you read this, a WiFi microchip has no more than 5mm length and can be powered with as low as 10
micro Amps during sleep period. In this article we are going to test one of the cheapest and easy to use WiFi
development platform, the ESP8266 arduino compatible device.
Cheap WiFi solution for your first IoT project – ESP8266 Arduino compatible wifi
module with 1Mb flash upgrade
The ESP8266 arduino compatible module is a low-cost Wi-Fi chip with full TCP/IP capability, and the
amazing thing is that this little board has a MCU (Micro Controller Unit) integrated which gives the
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 1/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
possibility to control I/O digital pins via simple and almost pseudo-code like programming language. This
device is produced by Shanghai-based Chinese manufacturer, Espressif Systems.
This chip was first time seen in August 2014, in ESP-01 version module, made by AI-Thinker, a third-party
manufacturer. This little module allows the MCU to connect to WiFi network and create simple TCP/IP
connections.
His His very low price (1.7$ – 3.5$) and the incredible small size attracted many geeks and hackers to
explore it and use it in a large variety of projects. Being a true success, Espressif produces now many
versions having different dimensions and technical specifications. One of the successors is ESP32.
You can find over the internet hundreds of projects and various implementations like home automation, data
logging solutions, robotics, controlling things over the internet, even drones or copters.
ESP8266-01Technical specifications
** CPU and flash clock speeds can be raised via overclocking on some devices and the 16 I/O are not
available in all versions.
ESP8266 Arduino module comes with PCB trace antenna which seems to have a very good coverage (I
saw a demonstration with more than 1km range!!!). Other version can have on-board ceramic antenna or
an external connector which allows you to attach external WiFi antennas modules. ESP-01 has only 6 active
pins, although the MCU can support up to 16 I/O. Board dimensions are 14.3 x 24.8 mm.
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 2/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
Over the internet i found that ESP8266 arduino module, version 01, is sold in two or more versions, which at
first glance seem quite the same. After buying both of them i saw that there is a difference in size of the flash
memory. You may encounter issues while flashing if you don’t make the proper settings according to board
specifications.
Although the board default has 2 available GPIOs, you can do some workarounds and use other MCU available
pins if you have the proper soldering tools. I managed to use GPIO 16 in order to wake up the device after
DEEP SLEEP mode (explained later in SLEEP MODES).
Pins are arranged in two rows, having 4 on each row. Some models have pin description on the PCB, which
make it simple. On the top row you can find following pins from the left to the right:
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 3/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
All esp8266 arduino compatible modules must be powered with DC current from any kind of source that can
deliver stable 3.3V and at least 250mA. Also logic signal is rated at 3.3v and the RX channel should be
protected by a 3.3v divisor step-down. You should be careful when using this module with Arduino or other
boards which supplies 5v, because this module usually do not come with overpower protection and can be
easily destroyed.
Modem-Sleep 15 mA
Light-Sleep 0.9 mA
Deep-Sleep 10 uA
If you are going to use ESP-01 in a project that is powered by batteries or by solar power it is
mandatory to know everything about ESP8266 arduino Sleep modes. Current version offers 3 different
sleep modes which can be triggered programmatically. ESP8266WiFi library offers specific functions to call
sleep modes which can take settings parameters that change the callback jobs after wake-up like waking up
with RF module powered off or on.
The most important mode is DEEP_SLEEP because of the very low power consumption rates during sleep.
Deep sleep mode is very common in projects that do data-logging at specific intervals and idle between
measurements.
In order to take advantage of this mode when using esp8266 arduino compatible module, ESP-01 standard,
you need to make a little workaround and connect REST pin with the GPIO16 pin (which is not available in
default 6 six pins).
Here is an example how to do it
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 4/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
After doing this connection you can use the following command to trigger the deep sleep mode:
ESP.deepSleep(sleepTimeInSeconds * 1000000);
Another thing that you need to know about the esp8266 arduino 01 version is that usually comes with two
LEDs, a red one for power, and a blue one for data transmitting. The red LED is always on when the
module is powered on and the blue led blinks during serial activities. For newer versions the producers
eliminated the RED pin because of the continuous power consumption, so if you are going to buy one, try to
find a version which has only the serial blue LED especially if you are going to use a battery power
supply in your project.
While in the left picture you can see two smd LEDs near the antenna, one for power indicator and one for
data indicator, the right module has a single LED just to indicate the data transmission. PCB design can differ
from one to another because producers tend to reduce the costs by cutting down the materials.
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 5/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
ESP8266-01 gives you many methods to communicate with it trough the RX/TX pins or over the air
(OTA). The differences are not only in hardware but can be also in what kind of firmware is flashed out of
the box. No matter what firmware comes default installed, you should be able to flash your preferred
firmware by following the firmware flashing instruction from the datasheet.
This module can be programmed using LUA code, Arduino code or directly trough AT commands and
this gives us more freedom when embedding this device in our projects. Also there are few python firmware
modes but i haven’t had the chance to test them. I personally choose to work with Arduino because of the
past experience and tones of libraries available.
As it comes, out of the box, this module is ready to talk via AT commands without any other extra
settings or configurations. There are many software applications which you can use to communicate via AT
and have tones of ready made tools and functions which will make everything easier. I used ESPlorer and i
totally recommend it, you can find it here. After booting, to be able to use AT commands, module should
display “ready” on the serial monitor.
AT – response OK
AT+CWLAP – list nearby available WiFi networks
AT+GMR – check the firmware version
AT+CWJAP=”<access_point_name>”,”<password>” – join WiFi network using credentials
AT+CIFSR – get current allocated IP address
In order to be able to talk with the ESP8266 arduino compatible module, you need to choose a way to
connect it with your computer. You can communicate with the module via standard Serial
communication RS232 by using an Arduino board as a proxy/bridge, by default Arduino having a USB to
Serial converter integrated. If you are a beginner in development boards I totally recommend you one of the
best Arduino books by Jeremy Blum, the best combination of a formaly trained electronics engineer and a
Maker/Hacker.
Arduino Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip.
Instead, it features the Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-to-serial converter.
In order to use Arduino as a bridge, first you need to load an empty program on it. After doing that, you need
to make the following connections in order to work:
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 6/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
UNO ESP-01
RX RX
TX TX
3.3v VCC
GND GND
CH_PD 3.3v
After that you should be able to see data and send AT commands in Serial Monitor by selecting Arduino’s COM
port, setting a proper baudrate, default should be 115200, and make the additional settings to read “Both
NL & CR“.
Firmware Over The Air (FOTA) solution in every embedded DIY or commercial project is a highly desirable
if not a required feature today, when every project core needs to scalable. So the possibility to upload your
code from a remote computer via Wi-Fi connection rather then Serial is a high advantage in every project.
First you need FOTA needs needs prerequisites. First firmware upload needs to be done via Serial, and if the
OTA routines are correctly implemented in the program next uploads can be done over the air.
Because the module needs to be exposed wirelessly, the chance to being hacked and loaded with maleficent
code exists. You can improve your security by setting custom port and password. Check functionalities from
the ArduinoOTA library that may help you to boost security. Because of the complexity of this procedures we
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 7/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
will cover the full story in a future article, but for now be aware that this option exists and it works pretty
good.
Another way to connect the esp8266 arduino module to computer is to use a TTL or FTDI USB-to-serial
dedicated module. There are plenty of them on the market and there are quite cheap, but make no mistake,
here quality does matter. You may encounter problems when working with it if ending up with a cheap one
because of the differences in connections and also driver compatibility.
Most used TTL / FTDI converters chips are CH340G, CP2102 and FT232RL. I personally used the first two
ones and i have no problem when loading programs. Following connections need to be done:
RX TX
TX RX
VCC 3.3v
GND GND
CH_PD 3.3v
I highly recommend you not to use the TTL 3.3v power supply because most of them are not able to
provide enough power to handle the esp8266 arduino compatible device. The embedded voltage regulator
used on this modules are not the happiest choice and you may get in trouble if it cannot support ESP peeks. If
you choose to use an external power supply don’t forget to setup a common ground in order to have a
working circuit.
You can find TTL modules that have TX rated at 3.3v, if not, you shod step-down the TX channel to protect
your ESP-01 module. You can see bellow a wiring scheme between ESP-01 and CP2102 which includes a reset
button connected to ground, and also GPIO0 for boot switch.
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 8/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
The most comfortable way to communicate with the ESP-01 is by using a dedicated ESP01 programmer
module, which can be bought also from the same producers and the costs are very low. This kind of devices
can have buttons integrated for RESET and BOOT switching and also come with a dedicated slot. All you need
to do is to plug your esp and your done.
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 9/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 10/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 11/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
You can also build your own programmer if you have a bit of skills, you don’t need to be an expert. Here are
few homemade tryouts:
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 12/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 13/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
In order to setup your Arduino IDE to work with your esp8266 arduino compatible module you need to
make the following steps:
Now, to be able to download the program to your ESP-01 module, you first need to put your device in the
proper BOOT mode (Download code from UART). ESP8266-01 have the following boot modes:
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 14/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
Note that L = LOW (putting to Ground / -3.3v) and H = HIGH (putting to 3.3v)
After resetting the module in Download code from UART you should see a message containing “boot mode:
[1,6]” in the serial monitor, if you are on the correct baudrate. A wrong baudrate setting will display garbage
text / characters or nothing at all. After that you should be able to upload your sketch to ESP8266. When
upload is done, module should reset itself. Don’t forget to pull HIGH the GPI0 or the module will get in
Download mode again and you will not be able to see it working. The module can be rebooted at anytime by
pulling REST pin to LOW. After each reset it will follow the boot sequence and program loading.
Once the ESP8266 board is installed and activated in Arduino IDE, you will be able to include all ESP WiFi
libraries and examples that comes with the package. The most used library is ESP8266WiFi which offers
many implementation examples like WiFiClient, WiFiServer, WiFiAccessPoint etc. You can find allot of
projects examples over the internet, I for example, found great ideas on arduino.cc projecthub. Here is a
simple Arduino blink example which you can use to test the esp module with the built in LED:
/*
ESP8266 Arduino Blink by Simon Peter
Blink the blue LED on the ESP-01 module
This example code is in the public domain
Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
*/
void setup() {
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output
}
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 15/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}
Off course, after that you can try a more complex example by loading a ESP8266 Arduino WiFi Client
example program that sends data via WiFi to the data.spakfun.com iot platform:
/*
* This sketch sends data via HTTP GET requests to data.sparkfun.com service.
*
* You need to get streamId and privateKey at data.sparkfun.com and paste them
* below. Or just customize this script to talk to other HTTP servers.
* ESP8266 Arduino example
*/
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(115200);
delay(10);
Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
Serial.println("");
Serial.println("WiFi connected");
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 16/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
int value = 0;
void loop() {
delay(5000);
++value;
Serial.print("connecting to ");
Serial.println(host);
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 17/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
}
}
// Read all the lines of the reply from server and print them to Serial
while(client.available()){
String line = client.readStringUntil('\r');
Serial.print(line);
}
Serial.println();
Serial.println("closing connection");
}
Or if you need to make a server in your network, you can try ESP8266 Arduino Wifi Server example
program:
/*
* This sketch demonstrates how to set up a simple HTTP-like server.
* The server will set a GPIO pin depending on the request
* http://server_ip/gpio/0 will set the GPIO2 low,
* http://server_ip/gpio/1 will set the GPIO2 high
* server_ip is the IP address of the ESP8266 Arduino module, will be
* printed to Serial when the module is connected.
*/
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(115200);
delay(10);
// prepare GPIO2
pinMode(2, OUTPUT);
digitalWrite(2, 0);
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 18/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
void loop() {
// Check if a client has connected
WiFiClient client = server.available();
if (!client) {
return;
}
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 19/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
if (req.indexOf("/gpio/0") != -1)
val = 0;
else if (req.indexOf("/gpio/1") != -1)
val = 1;
else {
Serial.println("invalid request");
client.stop();
return;
}
client.flush();
And in the last example an ESP8266 Arduino WiFi Access Point which hosts a web server is created:
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 20/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
ESP8266WebServer server(80);
void setup() {
delay(1000);
Serial.begin(115200);
Serial.println();
Serial.print("Configuring access point...");
/* You can remove the password parameter if you want the AP to be open. */
WiFi.softAP(ssid, password);
void loop() {
server.handleClient();
}
Final thoughts
After playing with this module for few weeks, i find it being one of the coolest gadget i ever used in my
projects and i have nothing than beautiful words about it. If you are even just a bit attracted about
development boards and you haven’t had the chance to play with ESP8266 series, this is one of the first thing
that i recommend to get and play with. It easily checks every goal, the price is excellent, it has MCU
integrated, it has Wi-Fi integrated, the signal range is pretty awesome, the size is excellent for embedding in
most projects, and it can be powered by any average + batteries no problem.
In the further articles i will show you how i made to create a network of 5 ESP8266-01 in my house, and make
them communicate each other to centralize data into a IoT web server. Also i want to come back with
feedback about day to day behavior and especially power consumption.
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 21/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
Update: Multiple ESP8266 talking each other article ready. Find here an incredible story about a farmer from
Europe who managed to implement a huge ESP8266 WiFi topology using more than 40 ESP modules in a real
life example.
Update: Read the complete guide for the ESP32 module, newest upgrade to ESP8266, now with Bluetooth
and integrated sensors. Full review with programing tutorials and code examples.
Hoping that this article inspired you, i kindly invite you share this article, subscribe my YouTube channel
and join the communities on social networks. Please feel free to comment or send suggestions / remarks so i
can improve the content quality!
1. Ray says:
Nice job.
Thanks for examples and notes.
GeeksTips says:
Your welcome, feel free make remarks and also make proposals for the following articles ! Thank
you!
GeeksTips says:
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 22/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
2. Jonas says:
Good and thorough review. I’m looking forward to the multiple esp8266 communications tutorial.
GeeksTips says:
Hello, I already implemented multiple ESP communication system in my house and I will write an
tutorial about how to do that soon. Thank you for your interest!
3. NoreenCocket says:
4. Jeepers01 says:
Very good and informative article. Under point 4. above, the link to additional boards is missing. It
should be
http://arduino.esp8266.com/stable/package_esp8266com_index.json
Feel free to email when the page is updated about the network of 5 ESP’s as this sounds interesting. Will
it be with MQTT?
GeeksTips says:
Hello, thank you for appreciation. Check this article, you will find here a great WiFi topology in a
real life example with more than 40 ESP modules connected each other.
http://www.geekstips.com/two-esp8266-communication-talk-each-other/
5. jackshowme says:
I am confused with the connection between Arduino and ESP8266 for RX.
Why Arduino Rx(D0) is connected to ESP8266 RX and their TXs are also connected.
I got the same result as you said here.
In the begining of my experiment, I connected Arduino Rx/TX to ESP8266 TX/RX like as
TTL / FTDI case. I got no response form ESP8266 when I give it a command.
Next, I connected Arduino Rx/TX to ESP8266 RX/TX, and I found eveything is fine.
I always think Arduino Rx(D0)/TX(D1) is for receive/transmit data to/from Arduino.
Is it wrong?
GeeksTips says:
When you use a dedicated TTL / FTDI the terminals needs to be aligned logical RX < -> TX,
receiver < -> sender, but this is not the case when using Arduino board for programming. In this
case the UNO acts like a repeater, a bridge. By running UNO with a blank sketch, you can use its
serial port just to forward the signal. It actually does nothing but forwarding the packages, not
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 23/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
programming. There are other modes to use UNO as a programmer, as a ISP, or by using
emulated UART pins with SoftwareSerial library. I used this one, because is the simplest.
Obrigado por seus artigos, estou lendo todos e estão me ajudando muito. Estarei inciando um projeto
utilizando ESP8266, sou estudante de Engenharia Elétrica. Mais uma vez obrigado!
Thank you it was very informative article ,by the way do we need to code the wifi module initially i mean
after installation of library in IDE you mentioned it right , what i thought is wifi sheild need to be set in
AT mode for changes in default settings and later dump the code in arduino as per required task of
operation by arduino
Hey,
This is a great tutorial and i learned a lot from it.
Iam doing a project where i use a VC0706 camera with arduino and use esp8266 wifi to send the
images to a webserver.
I managed to write a code that combines both of them. But when i use the method here to upload the
data on the esp module, it connects to the internet but cannot communicate with the camera.
My question is: is there a way to modify the code so it works directly on the arduino? meaning i select
the board as the arduino and not the esp?
9. GeeksTips says:
You need to come with more details, otherwise I cannot know your setup. Good Luck!
I appreciate your articles, they are very useful. I’m trying to do a database project where an esp8266
and an Android app exchange data(in JSON format) on specific ports on the server. You may not
necessarily bother about d Android. It goes this way, d esp8266 acts as an access point for d Android to
connect to so could you pls guide me on how I could send data to the Android on specific ports?
This depends on how you want to receive the data, meaning on what channels. You could emulate a
local webserver on the Android, and use it as an http Endpoint (or REST). After that you can just send
requests to that endpoint from the ESP and attach the JSON. You can also use Blynk APP and send data
over the serial, but its tricky.
Sou novo na área e estou adorando a família ESP, muito obrigado e parabéns.
ME AJUDE a elaborar um projeto, transmissão de dados para nível de água caixa dágua, via wifi com
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 24/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
after uploading any example from arduino IDE, getting below error in serial monitor, Please help me to
resolve the error of esp8266 (esp01 black)
My piece of code should not cause such a Fatal Exception. Please make sure you have a proper
power supply and you hooked up wiring correctly.
hello your site and your youtube channel is very interesting compliments.
I would like to ask you a question and I hope you will answer.
I am developing a project to turn on a led connected to an esp8266 with a button connected to another
esp8266.
could you help me?
thank you so much
I look forward to your kind reply.
each time i used to read smaller content which also clear their motive, and that is
also happening with this piece of writing which
I am reading at this place.
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 25/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
thanks for the article.. but i need help from your end … above proj. has no role of arduino -uno board..
Please do upload some code which control’s the ESP-8266-01 board from ARDUINO-UNO board with AT
commands,,
i need to send & receive data between 2 points via WiFi(ESP-8266)connected to Arduino boards
Thanks in Advance..
Thanks very much for this thorough, informative writeup! Let me just add that TX and RX can be used
as GPIO pins. TX=GPIO1, RX=GPIO3. I have been doing this without problems.
Hello,
I have a WROOM-02 module that I want low power consumption, so it must go to sleep periodically. My
goal is to connect the smartphone or PC, using Blynk, to this module and read the data that reads on
the analog pin on other GPIOs. Also, if possible, send commands to the GPIOs. How it’s possible?
Thanks!
Hi! Please read my Blynk articles. It covers all starting know-how for setting up Blynk with
ESP8266. Is quite the same with ESP32 too. Thanks!
https://www.geekstips.com/arduino-blynk-esp8266-iot-for-non-programmers/
Hello everyone
I want to communicate between labview and ESP8266 i want implementation ESP as a client and
Labview as a server, How i program ESP and Labview ?
please guide me!!!!…
Hi Samad, unfortunately I don’t have any knowledge about connecting ESP8266 with Labview at
this time, but I am going to document myself regarding this topic and come back with an article,
and then ping you. Thank you.
Hi.
I’m Daniel from Valencia (Spain- spain) I would like to tell you about a small project that I have in mind.
How to connect two esp8266-01
One as a client with gpio2 entry of a rain sensor, which sends order for 30 “to the other esp8266-01 as a
server, with output from gpio2 to a relay, which causes the blind of a window to go down.
Is it possible to do the project?
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 26/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
I have looked a lot on the internet and I have not seen anything, could you give me a hand
I have everything I need to start. THANK YOU
Based on: ESP8266 Arduino IDE-Client Server Communication “Hello World”
Telephone +34607330365
Hi Daniel, There are many ways to make two ESP8266 communicate each other. One is by using
Blynk Platform, with Bridge plugin. Another one is to make both ESP8266 servers and connect
each other by using REST calls. I have covered both methods in my articles, you can find below
more details:
https://www.geekstips.com/blynk-bridge-another-way-to-communicate-between-two-esp8266/
https://www.geekstips.com/two-esp8266-communication-talk-each-other/
Arduino: 1.8.1 (Windows 8.1), Board: “Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, QIO,
512K (no SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200”
Sketch uses 247051 bytes (49%) of program storage space. Maximum is 499696 bytes.
Global variables use 32864 bytes (40%) of dynamic memory, leaving 49056 bytes for local variables.
Maximum is 81920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
We have tried various methods but we are unable to rectify it Please give us a proper solution to avoid
this problem since the simple blink code for esp826601 is not uploading.
I have problem.
Sketch uses 247051 bytes (49%) of program storage space. Maximum is 499696 bytes.
Global variables use 32864 bytes (40%) of dynamic memory, leaving 49056 bytes for local variables.
Maximum is 81920 bytes.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
We have tried various methods but we are unable to rectify it Please give us a proper solution to avoid
this problem since the simple blink code for esp826601 is not uploading.
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 27/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
Hello Adam! From what I see in the error, this is not a sketch problem, but rather a
communication issue between ESP and your PC. You need to make sure that your ESP-01 is in
FLASH MODE before hitting upload button. Reset the ESP while pulling GPIO-0 LOW (to ground).
You should should see in serial console something like mode 1-6 / 1-7.
Great tutorial! just wanted to address an issue in one of your schematics — using 2 resistors as a
voltage divider is a bad way to make a 3V3 supply for the ESP, since it draws nonzero current (and
therefore the resistors are not a voltage divider). Instead, you should use a 3V3 regulator (or a buffer
amplifier after the resistors).
Hello!
Can somebody help me please with this Error:
Arduino: 1.8.5 (Windows 10), Board: “Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, QIO,
512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200”
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 28/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
Leave a Reply
Post Comment
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 29/30
4/30/2018 ESP8266 Arduino tutorial - IoT WiFi module thorough review with example
About Me
Internet of Things
Arduino
Tips
NEW
Battery Life Calculator
Amazon.com - DISCOUNT
BEST SELLER
About Me
Privacy Policy
Cookie Policy
Contact Me
https://www.geekstips.com/esp8266-arduino-tutorial-iot-code-example/ 30/30