In this tutorial we will show how to connect ESP8266 WiFi module to Arduino. We will use software serial port. HW serrial port will be available for program uploading and debugging. 

ESP8266 WiFi module is WiFi serial transceiver module, based on ESP8266. Small size and low cost makes it suitable for sensor nodes. It works on 3.3V and consumes current up to 250mA. Current consumption is quite big so it's usually not powered on battery. If you are using 5V Arduino, then read ESP8266 WiFi and 5V Arduino connection.

ESP8266 WiFI module

For arduino board we will use Arduino pro mini 3.3V 8Mhz and software serial port. HW serrial port will be available for program uploading and debugging. Later you can switch module to HW serial port.

Before we start using ESP8266 WiFi module we need to update ESP8266 firmware. We use V0.9.2.2 version of firmware. Detail instructions how to update firmware can be found here. New firmware default baudrate is 9600 which makes possible to use software serial on Arduino board.

ESP8266 current consumption is too big to use Arduino internal regulator. We will use dedicated power regulator AMS1117. Make sure to use big enough additional capacitors to prevent voltage drops when transmitting.

Power supply

ESP8266 WiFi module power supply

Connecting  ESP8266 WiFi module and Arduino Pro Mini 8Mhz, 3.3V

ESP8266 WiFi module pinout

ESP8266 WiFi module pinout

Arduino Pro Mini 3.3V 8Mhz pinout

Arduino Pro Mini 8Mhz 3.3V pinout

 

ESP8266 module Arduino pro mini module  Power supply
VCC VCC 3.3V VCC power supply
GND GND GND power suppy
RST 3  
UTXD 10  
URXD 11  
CH_PHD    3.3V VCC power supply

 

Testing ESP8266 DHT22 temperature and humidity sensor node.

ESP8266 DHT22

 

In next post we will show how to use ESP8266 module connected to Arduino as sensor node with ESP8266 EasyIoT libray.

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

 

Buying guide

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

3.3V 8Mhz Arduino Pro Mini

3.3V Arduino version. No need for shift leveler when using ESP8266.

10Pcs AMS1117-3.3 LM1117 3.3V 1A SOT-223 Voltage Regulator

3.3V voltage regulator,

210Pcs 25 Value 0.1uF-220uF Electrolytic Capacitors Assortment Kit Set

5V 2A Charger Micro USB

For Raspberry Pi or sensor modules, cheap and easy power solution.

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 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

 


Comments   

+1 #5 Ants Tamm 2016-01-28 09:50
In table all connections is ok.
+1 #4 Philipp 2015-08-22 21:43
Would you mind providing a wiring sketch?

It is very difficult for me to figure out how to connect the ESP8266 to the Arduini Pro Mini (New to IOT). So a sketch would be a great help. :-)

Thank you so much!
#3 Bruce 2015-07-10 06:13
Quoting Super User:
Quoting Bruce:
thanks, good start, but table is wrong, shows 2x 3v3 instead of 5v

also a sample software setup would be good.


Table os Ok. It's 3.3V Arduinno not 5V. Here you have many HW and SW examples:
http://iot-playground.com/build


yes, sorry, my bad :oops: i was confusing it with the AMS1117 wiring! thanks for the links, I hadn't seen those.
#2 Super User 2015-07-06 01:14
Quoting Bruce:
thanks, good start, but table is wrong, shows 2x 3v3 instead of 5v

also a sample software setup would be good.


Table os Ok. It's 3.3V Arduinno not 5V. Here you have many HW and SW examples:
iot-playground.com/build
#1 Bruce 2015-07-05 03:58
thanks, good start, but table is wrong, shows 2x 3v3 instead of 5v

also a sample software setup would be good.

You have no rights to post comments