Couldn't program ESP8266MOD with Arduino UNO
Posted: Wed Jan 19, 2022 5:24 am
I want to program an ESP8266MOD by Arduino UNO, the schematic is:
the photo was:
the Arduino UNO code was:
the problem is when I want to enter AT mode I make CH_PD connected to GND then power on, then make it connected to VCC, when I type "AT" into Arduino IDE serial monitor, nothing happen.
the photo was:
the Arduino UNO code was:
Code: Select all
/*
* testESP8266 - AT
*/
#include <SoftwareSerial.h>
SoftwareSerial ESPserial(8, 7); // RX | TX
void setup()
{
Serial.begin(115200); // communication with the host computer
//while (!Serial) { ; }
// Start the software serial for communication with the ESP8266
ESPserial.begin(115200);
Serial.println("");
Serial.println("Remember to to set Both NL & CR in the serial monitor.");
Serial.println("Ready");
Serial.println("");
}
void loop()
{
// listen for communication from the ESP8266 and then write it to the serial monitor
if ( ESPserial.available() ) { Serial.write( ESPserial.read() ); }
// listen for user input and send it to the ESP8266
if ( Serial.available() ) { ESPserial.write( Serial.read() ); }
}
the problem is when I want to enter AT mode I make CH_PD connected to GND then power on, then make it connected to VCC, when I type "AT" into Arduino IDE serial monitor, nothing happen.