Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
454 views
in Technique[技术] by (71.8m points)

arduino - Esp8266 programming

I am working on an Arduino and esp8266 project and I am facing a problem that after uploading following code nothing is showing on serial monitor. I am using USB connector to power up the Arduino then connected Esp8266 with it by connecting all 6 wires. I bypass the Arduino by connecting reset with ground. There is no error while uploading code but its showing nothing. Tried connecting esp8266 TX with Arduino RX and esp RX with Arduino TX. And TX with TX and RX with RX also but still hard luck. Baud rate is same 115200 port is also correct but still not working. Kindly help me to figure it out ! Thanks PS: I attached the schematic, kindly check that.Schematic

void setup() {
  Serial.begin(115200);
  while(!Serial) { delay(100); }
}

void loop() {
  Serial.println("Hello!");
  delay(1000);
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The ESP-01 ... and all ESP8622 ... have two modes for operation.

  • Flash mode / Boot load mode - on bootup (at the time an electrical current is first applied, or after the reset pin is grounded), if the GPIO0 (GPIO Zero) pin {On the ESP-01 this is the 7th pin} is connected to ground, the chip goes into non-run, receive program mode. This is where you load the compiled program.

  • Normal - on bootup (as above), but GPIO0 is NOT ground, then the ESP-01 goes into run mode.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...