So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By ayu_dubey
#62384 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.
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.
User avatar
By jeffas
#62563 Are you using a logic level converter to adapt the Arduino's 5v signals to the 3.3v that ESP needs?
I can't account for the difference between hardware and software serial, but either way, sending 5v to ESP is not a good idea.
User avatar
By PiDigital
#62588
jeffas wrote:Are you using a logic level converter to adapt the Arduino's 5v signals to the 3.3v that ESP needs?
I can't account for the difference between hardware and software serial, but either way, sending 5v to ESP is not a good idea.



Arduino do have 3.3v output.

He may have the wrong AT Firmware flashed & after flashing the firmware dont forget to remove the GPIO 0 from Ground