Skip to main content
Arduino

Return to Question

Commonmark migration
Source Link

I am facing for the first time with the ESP8266-01 module, so sorry if will write any stupid things.

I bought [this][1]this module and I wanted to check its parameters through AT commands. Following some guide and wiring schemas found on the web I finally hook the ESP8266 up with an Arduino Uno (as in the picture below. The resistors are 220ohm each and the capacitor is 100uF) in order to print out to the serial monitor the AT commands and responses.

I uploaded the following code to Arduino Uno:

#include <SoftwareSerial.h>
SoftwareSerial esp8266(6, 7);
void setup() {
 // Open serial communications and wait for port to open:
 Serial.begin(9600);
 while (!Serial) {
 ; // wait for serial port to connect. Needed for native USB port only
 }
 Serial.println("Started");
 // set the data rate for the SoftwareSerial port
 esp8266.begin(57600);
 esp8266.write("AT\r\n");
}
void loop() {
 if (esp8266.available()) {
 Serial.write(esp8266.read());
 }
 if (Serial.available()) {
 esp8266.write(Serial.read());
 }
}

But when I open the serial monitor (with both NL and CR selected and baud rate set to 9600) I got no response!! If I try to send simple AT or AT+GMR commands, it returns to me nothing or random characters.

Does anyone please could tell me what I am doing wrong?

[![enter image description here][2]][2] [1]: https://www.sparkfun.com/products/13678 [2]: https://i.sstatic.net/YrNUy.pngenter image description here

I am facing for the first time with the ESP8266-01 module, so sorry if will write any stupid things.

I bought [this][1] module and I wanted to check its parameters through AT commands. Following some guide and wiring schemas found on the web I finally hook the ESP8266 up with an Arduino Uno (as in the picture below. The resistors are 220ohm each and the capacitor is 100uF) in order to print out to the serial monitor the AT commands and responses.

I uploaded the following code to Arduino Uno:

#include <SoftwareSerial.h>
SoftwareSerial esp8266(6, 7);
void setup() {
 // Open serial communications and wait for port to open:
 Serial.begin(9600);
 while (!Serial) {
 ; // wait for serial port to connect. Needed for native USB port only
 }
 Serial.println("Started");
 // set the data rate for the SoftwareSerial port
 esp8266.begin(57600);
 esp8266.write("AT\r\n");
}
void loop() {
 if (esp8266.available()) {
 Serial.write(esp8266.read());
 }
 if (Serial.available()) {
 esp8266.write(Serial.read());
 }
}

But when I open the serial monitor (with both NL and CR selected and baud rate set to 9600) I got no response!! If I try to send simple AT or AT+GMR commands, it returns to me nothing or random characters.

Does anyone please could tell me what I am doing wrong?

[![enter image description here][2]][2] [1]: https://www.sparkfun.com/products/13678 [2]: https://i.sstatic.net/YrNUy.png

I am facing for the first time with the ESP8266-01 module, so sorry if will write any stupid things.

I bought this module and I wanted to check its parameters through AT commands. Following some guide and wiring schemas found on the web I finally hook the ESP8266 up with an Arduino Uno (as in the picture below. The resistors are 220ohm each and the capacitor is 100uF) in order to print out to the serial monitor the AT commands and responses.

I uploaded the following code to Arduino Uno:

#include <SoftwareSerial.h>
SoftwareSerial esp8266(6, 7);
void setup() {
 // Open serial communications and wait for port to open:
 Serial.begin(9600);
 while (!Serial) {
 ; // wait for serial port to connect. Needed for native USB port only
 }
 Serial.println("Started");
 // set the data rate for the SoftwareSerial port
 esp8266.begin(57600);
 esp8266.write("AT\r\n");
}
void loop() {
 if (esp8266.available()) {
 Serial.write(esp8266.read());
 }
 if (Serial.available()) {
 esp8266.write(Serial.read());
 }
}

But when I open the serial monitor (with both NL and CR selected and baud rate set to 9600) I got no response!! If I try to send simple AT or AT+GMR commands, it returns to me nothing or random characters.

Does anyone please could tell me what I am doing wrong?

enter image description here

Bumped by Community user
Bumped by Community user

SOLVED Setting ESP8266-01 up with AT commands

I am facing for the first time with the ESP8266-01 module, so sorry if will write any stupid things.

I bought [this][1] module and I wanted to check its parameters through AT commands. Following some guide and wiring schemas found on the web I finally hook the ESP8266 up with an Arduino Uno (as in the picture below. The resistors are 220ohm each and the capacitor is 100uF) in order to print out to the serial monitor the AT commands and responses.

I uploaded the following code to Arduino Uno:

#include <SoftwareSerial.h>
SoftwareSerial esp8266(6, 7);
void setup() {
 // Open serial communications and wait for port to open:
 Serial.begin(9600);
 while (!Serial) {
 ; // wait for serial port to connect. Needed for native USB port only
 }
 Serial.println("Started");
 // set the data rate for the SoftwareSerial port
 esp8266.begin(57600);
 esp8266.write("AT\r\n");
}
void loop() {
 if (esp8266.available()) {
 Serial.write(esp8266.read());
 }
 if (Serial.available()) {
 esp8266.write(Serial.read());
 }
}

But when I open the serial monitor (with both NL and CR selected and baud rate set to 9600) I got no response!! If I try to send simple AT or AT+GMR commands, it returns to me nothing or random characters.

Does anyone please could tell me what I am doing wrong?

Thanks in andvance,

Filippo

[![enter image description here][2]][2] [1]: https://www.sparkfun.com/products/13678 [2]: https://i.sstatic.net/YrNUy.png

SOLVED Setting ESP8266-01 up with AT commands

I am facing for the first time with the ESP8266-01 module, so sorry if will write any stupid things.

I bought [this][1] module and I wanted to check its parameters through AT commands. Following some guide and wiring schemas found on the web I finally hook the ESP8266 up with an Arduino Uno (as in the picture below. The resistors are 220ohm each and the capacitor is 100uF) in order to print out to the serial monitor the AT commands and responses.

I uploaded the following code to Arduino Uno:

#include <SoftwareSerial.h>
SoftwareSerial esp8266(6, 7);
void setup() {
 // Open serial communications and wait for port to open:
 Serial.begin(9600);
 while (!Serial) {
 ; // wait for serial port to connect. Needed for native USB port only
 }
 Serial.println("Started");
 // set the data rate for the SoftwareSerial port
 esp8266.begin(57600);
 esp8266.write("AT\r\n");
}
void loop() {
 if (esp8266.available()) {
 Serial.write(esp8266.read());
 }
 if (Serial.available()) {
 esp8266.write(Serial.read());
 }
}

But when I open the serial monitor (with both NL and CR selected and baud rate set to 9600) I got no response!! If I try to send simple AT or AT+GMR commands, it returns to me nothing or random characters.

Does anyone please could tell me what I am doing wrong?

Thanks in andvance,

Filippo

[![enter image description here][2]][2] [1]: https://www.sparkfun.com/products/13678 [2]: https://i.sstatic.net/YrNUy.png

Setting ESP8266-01 up with AT commands

I am facing for the first time with the ESP8266-01 module, so sorry if will write any stupid things.

I bought [this][1] module and I wanted to check its parameters through AT commands. Following some guide and wiring schemas found on the web I finally hook the ESP8266 up with an Arduino Uno (as in the picture below. The resistors are 220ohm each and the capacitor is 100uF) in order to print out to the serial monitor the AT commands and responses.

I uploaded the following code to Arduino Uno:

#include <SoftwareSerial.h>
SoftwareSerial esp8266(6, 7);
void setup() {
 // Open serial communications and wait for port to open:
 Serial.begin(9600);
 while (!Serial) {
 ; // wait for serial port to connect. Needed for native USB port only
 }
 Serial.println("Started");
 // set the data rate for the SoftwareSerial port
 esp8266.begin(57600);
 esp8266.write("AT\r\n");
}
void loop() {
 if (esp8266.available()) {
 Serial.write(esp8266.read());
 }
 if (Serial.available()) {
 esp8266.write(Serial.read());
 }
}

But when I open the serial monitor (with both NL and CR selected and baud rate set to 9600) I got no response!! If I try to send simple AT or AT+GMR commands, it returns to me nothing or random characters.

Does anyone please could tell me what I am doing wrong?

[![enter image description here][2]][2] [1]: https://www.sparkfun.com/products/13678 [2]: https://i.sstatic.net/YrNUy.png

Bumped by Community user
Bumped by Community user
edited title
Link
Filippo
  • 71
  • 1
  • 10

SOLVED Setting ESP8266-01 up with AT commands

Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Source Link
Filippo
  • 71
  • 1
  • 10
Loading
lang-cpp

AltStyle によって変換されたページ (->オリジナル) /