click here for the ESP8266_Specification
getting started guide
working environment
Download the Arduino IDE.
Go to File –> Preferences and add the link http://arduino.esp8266.com/stable/package_esp8266com_index.json to the Additional Boards Manager URLS.
Go to Tools –> Board –> Boards manager
You should now have the esp8266 as an option there since you’ve added it to the Additional Boards. Select it and press Install
Wait for it…
Now, You have the ESP8266 boards configure. Choose the board you have, “Generic ESP8266 Module
Choose the ESP8266 port (UART)
Go to File->examples->esp8266 to see example code sketches
Example blink code
#define BUILTIN_LED 1
void setup() {
pinMode(BUILTIN_LED, OUTPUT); // Initialize the BUILTIN_LED pin as an output
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(BUILTIN_LED, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is acive low on the ESP-01)
delay(1000); // Wait for a second
digitalWrite(BUILTIN_LED, HIGH); // Turn the LED off by making the voltage HIGH
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}
Programing the ESP6266
Puting the ESP8266 into its flash programming mode:
This is done by resetting the ESP8266 board while holding its GPIO0 pin low.
you will need to connect the ESP8266’s Rx Tx and GRD pins to a USB-serial module