The IDE Arduino Arduino development board programming can Shun WIFI chip ESP8266-01S

After the download is complete Arduino IDE ESP8266 need to install the development libraries, specific steps:

1, File -> Preferences - "Additional development boards Manager Web site, fill http://arduino.esp8266.com/stable/package_esp8266com_index.json

2, the tool - "development board -" development board manager, search over esp, and then click Install:

This completes the esp8266 complete development environment to build, then start wiring:

 

GND GND Arduino and GPIO0 to the development board, which is 13 feet above the hole

RX and TX respectively to human and rx tx Arduino development boards (0,1 feet)

CH_PD a pin 20 kilohm series resistor to the development board 3.3v pin,

VCC also received a pin development board 3.3v

Note: GPIO0 burning process is low, and if that fails-per-click upload button, then we would re-plug CH_PD, found esp8266 above a small blue lights flash once after clicking the upload button again.

#include <ESP8266WiFi.h>
const char* ssid="TP-LINK_702";
const char* password="weilaoshi";
void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid,password);
  while(WiFi.status() != WL_CONNECTED)
  {
  delay(500);
  Serial.print(".");  
  }
  Serial.println("");
  Serial.println("WiFi connected");
  Serial.println(WiFi.localIP());
}
void loop() {
 
}

This is my test measurement program, and then click Tools, choosing the right boards respectively, Flash size, port number.

Then click upload process:

 

Appeared Leaving ... Hard resetting via RTS pin after the upload is complete ....

RTS pin reset does mean that, but I did not take the start RTS pin, we can do this: Unplug GPIO0 pin, then plug CH_PD once to find wifi connection has been established:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Published 75 original articles · won praise 31 · views 10000 +

Guess you like

Origin blog.csdn.net/yaoyaoyao_123/article/details/103888526