Saturday, 30 January 2016

Getting Started with WiFi Module(ESP8266)

In this section we will see how to use this tiny little still most useful module ESP8266. Main reason for the popularity of this module is I think its price and its features. It is easily and cheaply available in the market for just ₹ 250-300.
The ESP8266 is a micro-controller from Chinese manufacturer Espressif that includes Wi-Fi capability.This small board allows micro-controllers to connect to a WiFi network. This little module can work in station mode, access point mode or both. Each ESP8266 module comes pre-programmed with an AT command set firmware.

First of all lets see the pins of this module. We can communicate with this module via serially. We can use either USB to TTL converter or you can use your Arduino board as I have used.

Pins of ESP8266 module 

Things Required are:

  1. BreadBoard
  2. Arduino Board
  3. ESP8266 WiFi module
  4. LD33CV IC ( 3.3V regulator IC)
  5. Resistors (1k & 2.2k)
  6. Some connecting wires

STEP - 1

As this module is not breadboard friendly, you need to follow the steps shown below before using this module.

Cut a piece of prefboard, and first solder female connector as shown in the fig below.

After that, solder male headers on the opposite side of the prefboard. It would look something like this.

Now attach the module on to the converter.

With this, it can be easily connected on to the breadboard.


Note: This module strictly works on 3.3V do not give 5V supply to this module.

As this module works on 3.3V we need to use a 3.3V regulator IC (LD33CV) or you can also use 3.3V pin from your arduino board. Even the Tx pin of arduino will provide 5V signal to the module. Hence we need to step down the signal to around 3.3V before feeding it to the module.

Connection of all this things is shown in the fig. below.
I have used the Rx1 and Tx1 of Arduino MEGA board. But you can even use the Rx and Tx pins. I have used this pins beacuse in my further WiFi projects, I have used TFT touch screen module, hence we won't be able to use pin 0 and 1.

Open Arduino software and open Multi Serial Mega example and change the baud rate to 115200 and upload the code. Change the baud rate in serial monitor to 115200 and the mode to Both NL & CR.


Now communicate with this module by sending the AT commands in the Serial monitor and play with this module.List of  AT commands are given in the PDF whose link is mentioned below.

I have also made a video on "Getting Started with ESP8266, As simple as possible"                                                                                

Datasheet of ESP8266
   AT Commands 


No comments:

Post a Comment