|ESP8266-ESP07 module on the breadboard|
(1) Download and install Arduino 1.6.5 version (go to build directory and type 'ant run').
(2) Start the Arduino IDE and then open the preferences menu. There's a text field for Additional Board Manager. Enter the following string in this field.
(3) Now open the Board Manager from Tools->Board menu, search for esp8266 platform and install it.
(4) Now, go to the Tools->Board menu and select "Generic ESP8266 Module". Settings related to this board from the Tools menu should be configured as follows.
Flash Frequency: 40MHz
CPU Frequency: 80MHz
Upload Using: Serial
Upload Speed: 115200
Flash Mode: QIO
Flash Size: 1M (512K SPIFFS)
Now our Arduino IDE is ready.
(5) Connect the ESP8266-ESP07 module with the USB-FDTI module as shown below.
|CH_PD (EN)||5V *|
* = connect two diodes to drop the voltage to 3.3v
(6) Connect the USB-FDTI module to a USB port of the PC where we run the Arduino IDE. From File menu go to Examples->ESP8266WiFi->WiFiAccessPoint sketch. Change the access point name given in the code to whatever we want.
Now, we can directory program it to the ESP8266 module but before clicking the Upload button of the Arduino IDE, disconnect the VCC supply from the module and connect again. Then only we can program it. Otherwise, it will throw an error. While the code is uploading, blue LED of the ESP8266 module will blink.
(7) After the code is completed uploading, remove the GPIO0 pin from the GND connection. Then disconnect and reconnect the VCC of ESP8266-ESP07 from the FDTI VCC supply. Now, we can check whether the access point is up and running.
Open a Linux terminal and issue the following command which will list the ESSIDs of the access points in the vicinity together with their signal strengths.
sudo iwlist wlan0 scanning | grep -e "ESSID:" -e "Signal level"
In this list, we should be able to see our new access point created by the ESP8266 module.
(8) If we get connected to this access point using the correct password, then we can open a web browser and enter the IP address http://192.168.4.1/ in the address bar. It should return a HTTP response saying "You are connected".