8.Arduino Basics - 5. How to configure esp8266 in arduino above

First, before the connection, first download the program to arduino, the port is defined

In the paste arduino IDE

const int tx = 1;
const int rx = 0;
void setup() {
  pinMode(rx,INPUT_PULLUP); 
  pinMode(tx,INPUT_PULLUP); 
 
}
 
void loop() {
  
}

The figure is the ESP8266,

 

See the left foot corresponding to each needle, after the connection arduino below, the connection is simple. CH_PD port recommended a 10K resistor in series.

FIG physical connection as follows:

 

 

 

 

 

After connecting the monitor to open the serial port, before viewing the first ESP8266 VCC disconnect it, and then connect, you can see the start of information ESP8266:

In front of a bunch of gibberish do not bother, they see ready, it shows the success of the launch. Before tried many times found unsuccessful, and finally adjusted to 115200 baud rate, it may be some differences between the different suppliers, own try different baud rates.

 

Guess you like

Origin www.cnblogs.com/Bruce_H21/p/11572877.html