ESP8266 development environment construction
1. I adopted an online strategy to download the esp8266 in the Arduino IDE. After trying various methods, it ended in failure.
2. I found the arduino-1.6.8_1.5.4_espduino installation package by accident, after downloading and decompressing it, you can use it directly, click to download
ESP8266 development environment configuration
1. Since I am using Arduino UNO+ESP8266, the type of development board I choose is: Node MCU10 (ESP12-E Module)
2. Port selection software automatically recognizes the port
Run through the first routine
1. Circuit connection
(1) ESP8266 pin introduction
3.3 3.3V power supply, avoid using 5V power supply
RX UART_RXD, asynchronous serial port receiver
RST external reset pin, active low, default high level
IO0 GPIO 0 pin; status : 1. Floating: Flash download mode and working mode; 2. Pull-down: Serial download mode
EN Enable port, high level work, low level module does not work
IO2 GPIO2 pin, pull-down is prohibited when power on, default high power Flat
UTXD UART_TXD, the
GND GND of the asynchronous serial port transmitter is grounded
(2) Wiring method
TX connected to Arduino
RX connected to Arduino TX connected to
EN and VCC connected to Arduino 3.3V
GND and GPIO0 connected to Arduino GND
2. Burning process
(1) Connect the circuit according to the above-mentioned wiring method during burning
(2) Enter the code, click upload, and burn the program
void setup() {
pinMode(2, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
delay(1000);
digitalWrite(2, LOW);
delay(1000);
}
If the following error occurs, don’t worry, unplug the Arduino power supply and plug it in to easily solve the
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
3. The last step
(1) After the programming is successful, leave IO0 in the air ( That is, do not connect to the ground), connect IO1 to the small LED light
(2) unplug the Arduino power supply, and then plug it in again (don’t forget this step, otherwise the esp8266 will not work properly) , you can see the flashing LED Little light