We recently got hold of the ‘infamous’ low cost WiFi Module ESP8266 and were eagerly waiting to get our hands dirty with it. If you’d like to purchase it online, you can buy it off our store here: http://potentiallabs.com/cart/esp8266-wifi-module-india-online
Due to it not being an official standard yet, there are hundreds of random tutorials sprawling around the web. A library for Arduino has also come up. Since we wanted to test the Module before we allow it to be sold online, we ran few tests which are outlined below. This should serve you as an introductory tutorial to the ESP8266 WiFi module.
This module is of type ESP-01 that comes with 8 breakout pins of which 4 would be primarily used. These aren’t breadboard friendly and the use of Jumpers/Protoboard is recommended.
The pin-outs of this module are:
Since this is a 3.3V compliant device, you’d need to power it with a 3.3V power supply. For our testing of the Module, we used a USB – Serial Converter Module that’s based of the CP2102 IC.
These are the connections vis-a-vis the CP2102 Module:
ESP8266 ————- USB-Serial Converter
VCC –> 3.3V
GND –> GND
RXD –> TX
TXD –> RX
Also, the CH_PD of the ESP8266 should be shorted to the VCC as shown here:
After powering on the device through the USB Cable, it shows up as an Access Point:
We were also able to connect to it and ping it from our PC. The IP for the ESP8266 acting as a server came up as 192.168.4.1 for us.
We can now open up a Terminal software and run tests using the AT Command. We couldn’t get it working through TeraTerm and Putty and hence used this awesome Terminal software which can be downloaded here (link soon).
Select the baud rate as 9600 and also make sure that you have the CR=CR+LF Checkbox selected and also the +CR Checkbox selected as shown below:
Simply type in AT and hit Send. If it returns back OK, all’s well
We then tried to connect it to the Internet via our WiFi router by following the steps outlined here: http://www.rei-labs.net/esp8266-connecting-to-internet/
Poof, it successfully connected! You’ll find the final result of retrieving a page from the internet below:
That’s about it We’re now gonna test it with an Arduino and will post how that goes. Happy IoTing!