Introduction: IoT ESP8266 Series: 1- Connect to WIFI Router

Picture of IoT ESP8266 Series: 1- Connect to WIFI Router

This is part 1 of an "Instructables" series dedicated for explaining how to make an Internet of Things project using ESP8266 NodeMCU that aims at reading and sending data to a website and making an action using the same website.

ESP8266 ESP-12E Development Board will be used. This board is based on ESP8266, integrates microcontroller capabilities and WIFI in one board. It could be coded like arduino.

This instructable will show you how to configure it and program it using arduino IDE. You will implement two projects:

  1. Blinking an LED
  2. WIFI connection and IP-address print

Step 1: Configure ESP8266 NodeMCU As an Arduino

Picture of Configure ESP8266 NodeMCU As an Arduino
  1. Download its driver from this link or from attached file.
  2. Download Arduino IDE.
  3. —Start Arduino and open Preferences window.
  4. Enter into Additional Board Manager URLs field.
  5. —Open Boards Manager from Tools .
  6. Enter esp8266 intro the search field to install ESP8266 platform
  7. Go to Tools > Board menu, then select your ESP8266 board.
  8. Go to Tools > Port.Connect your ESP.

Step 2: Run Blinking LED Program

This program needs no circuit. It will use a built-in LED which is connected to:
The pin named D4 or GPIO 2

For more information about hardware see this link

Download the attached program

Step 3: Connect to a WIFI Network

Picture of Connect to a WIFI Network

This program will connect your ESP to a WIFI network and print its IP address on your arduino serial monitor.
You need to modify your ssid and password

const char* ssid = "YOUR WIFI NETWORK NAME";
const char* password = "YOUR WIFI PASSWARD";

make sure that the Baud rate in the program and your serial monitor window are the same

Step 4: Part 2

Follow us to see the next part of the series. It will be published soon


AhmadM164 (author)2017-03-12

serial monitor is not showing any thing , as i have changed the ssid and pass and also to the 9600 baud

ImadSalki (author)AhmadM1642017-06-30

Dont forget to press the button reset when you open the Serial communication

anujkr6525 (author)ImadSalki2017-10-28

Thanks.. after pressing the reset button.. worked fine

neumanngregor (author)AhmadM1642017-04-27

Set 115200 baud

micolita made it! (author)2017-10-07

Gracias me sirvió de guía

richard_osal made it! (author)2017-07-31

tried it. I set baud rate to 9600 and you must press reset button to get the display on the serial comm. thanks for this exercise

Handy35 (author)2017-07-11


Is it possible when I connect the ESP8266 to Router and I want to access Router using programming not web browser??

AnandR37 made it! (author)2017-04-30

Thanks! Had to press the RST button to see the output on the monitor.

kenspratt (author)2017-01-15

When the unit is connected initially, is the blue light supposed to blink? This unit is new and in it's sealed package. Also it never connects to the computer.

kenspratt (author)2017-01-15

Am unable to find drivers that work with my Ver. 1.0 (Ver 2). The drivers here disapear when attempting to extract. The file name is there, and when extracting it dissapears. That is for Win 10, haven't found any OS X drivers that works either.

RobDeVoer (author)2016-06-16

Thanks for the first part, cant wait to read part 2. Keep it coming!

It is good to see an introduction that just uses the device and does not spend all the time describing how to change its firmware as the standard firmware works fine for most users.

I have found the way you wire the device up makes a big difference with being successful to operate it. Secondary power that is sufficient to supply a few hundred milliamps appears critical or the device will be unreliable or now work at all.

About This Instructable




Bio: I'm a passionate Solutions Engineer. I have my B.Sc. degree in Mechatronics Engineering, and doing my M.Sc. in Embedded Systems Engineering at ... More »
More by ROBOSAN Solutions:IoT ESP8266 Series: 3- ThingSpeak-Android Control NodeMCU's portsIoT ESP8266 Series: 2- Monitor data through ThingSpeak.comIoT ESP8266 Series: 1- Connect to WIFI Router
Add instructable to: