Arduino UNO + ESP8266 WiFi Module




This instructable will show you how to connect an ESP8266 WiFi Module to an Arduino UNO.

Step 1: Wiring

Wire the ESP8266 Module, the Arduino UNO, and the breadboard as seen in the image.

When complete the pins should be connected as follows (ESP8266 pin-out is shown for reference):

  • ESP8266 TX --> Arduino UNO TX
  • ESP8266 GND --> Breadboard GND
  • ESP8266 CH-PD --> Breadboard 3.3V
  • ESP8266 GPIO2 --> Breadboard LED
  • ESP8266 RST --> Breadboard RST button --> Arduino UNO GND
  • ESP8266 GPIO0 --> Breadboard 3.3V/Breadboard FLASH button --> Arduino UNO GND
  • ESP8266 VCC --> Breadboard 3.3V
  • ESP8266 RX --> Arduino UNO RX

Step 2: Flashing

  1. To flash your ESP8266 module, first check that the GPIO0 pin on the ESP8266 is connected to the FLASH button on the breadboard.
  2. If there is a program currently running on your Arduino, upload an empty project file to the Arduino to avoid interference while flashing WiFi module.
  3. Open the attached Arduino project and replace the SSID and PASSWORD at the top with your WiFi-network info
  4. Open your serial monitor (ctrl+shift+m), set the baud rate to 115200, and the line formatting option to "Both NL & CR"
  5. Press the RST button while holding down the FLASH button on the breadboard - you should see a blue light on the Wi-Fi module and the TX led on the Arduino will light up. You must upload code while the TX led is lit.
  6. Now, compile and upload code (see video for procedure and expected results).
  7. Record the IP printed in the serial monitor for use in step 3. If the flash fails try the above steps again. If the serial monitor is printing "." repeatedly, you have entered your WiFi information incorrectly.

Note: the RST button connects the RST pin on the Wi-Fi module to ground. The FLASH button connects the GPIO0 pin on the Wi-Fi module to ground.

Step 3: Usage

Now, for normal operation, connect GPIO0 to the 3.3V rail on the breadboard. This can be done by moving the wire connecting GPIO0 to the button over to the positive rail of the breadboard.

To connect to your ESP8266 module, ensure you are connected to the same network as it is, and go to the IP address from step 2 in your browser. Alternatively, connect directly to the ESP8266's WiFi network on your laptop and navigate to IP in your browser (in my experience this is far less reliable, using a shared network is preferred).



    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest
    • Frozen Treats Challenge

      Frozen Treats Challenge
    • Pets Challenge

      Pets Challenge

    6 Discussions


    5 weeks ago

    I need ESP8266WIFI.h library. I am getting error that esp8266wifi.h - No such library is found


    5 months ago

    I need ESP8266WIFI library.


    Question 11 months ago

    Hi there, I've problem, when I try to upload sketch to board, it showing error compiling? how to solve it? thanks a lot for help.

    Screenshot (10).png

    1 year ago

    Nice project.successfully done uploading


    1 year ago

    Where can I find the ESP8266WIFI library? Could you give a link to .zip file for the library?


    1 year ago

    Thanks for sharing :)