serial monitor not responding to AT commands
Posted: Sat Feb 11, 2017 3:07 am
I am integrating Arduino Uno with the AI-Thinker ESP-01 module. I'm giving separate power(3.3V) to module using voltage regulator and an adapter. I have connected pins as follows:
RX(ESP) - RX(Arduino)
TX(ESP) - TX(Arduino)
CH_PD - Vcc
RST- Vcc
GPIO'S are kept afloat.
The serial monitor is showing ready. But not responding to AT commands.
I read some stuff (with a code) for software serial interfacing on a forum.
When the code is used serial monitor respond to the AT commands but directly it is not responding.
RX(ESP) - RX(Arduino)
TX(ESP) - TX(Arduino)
CH_PD - Vcc
RST- Vcc
GPIO'S are kept afloat.
The serial monitor is showing ready. But not responding to AT commands.
I read some stuff (with a code) for software serial interfacing on a forum.
Code: Select all
#include <SoftwareSerial.h>
const byte rxPin = 2; // Wire this to Tx Pin of ESP8266
const byte txPin = 3; // Wire this to Rx Pin of ESP8266
// We'll use a software serial interface to connect to ESP8266
SoftwareSerial ESP8266 (rxPin, txPin);
void setup() {
Serial.begin(115200);
ESP8266.begin(115200); // Change this to the baudrate used by ESP8266
delay(1000); // Let the module self-initialize
}
void loop() {
Serial.println("Sending an AT command...");
ESP8266.println("AT");
delay(30);
while (ESP8266.available()){
String inData = ESP8266.readStringUntil('\n');
Serial.println("Got reponse from ESP8266: " + inData);
}
}
When the code is used serial monitor respond to the AT commands but directly it is not responding.