Hello everyone,
I am currently working on a project where I'm trying to communicate with my ESP01 using a software serial connection, primarily via AT commands.
Please refer to the following image for my wiring setup:
A few months ago, both the UNO R3 and R4 models worked perfectly fine with this setup.
However, I recently encountered a problem when attempting the same with the UNO R4; the serial monitor displays extensive garbled text, preventing me from configuring my ESP01 as I could before. Could there have been changes to the SoftwareSerial.h library or something else I might be overlooking? Any advice or insights would be greatly appreciated.
Hereโs the code Iโm using:
#include <SoftwareSerial.h>
SoftwareSerial espSerial(2, 3); //Rx,Tx
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
espSerial.begin(115200);
}
void loop() {
if (espSerial.available()) {
Serial.write(espSerial.read());
}
if (Serial.available()) {
espSerial.write(Serial.read());
}
}
On the UNO R3, the setup generally functions correctly despite some occasional garbled text, as shown in the image below:

On the UNO R4, however, the output is nearly unreadable:

I would be truly grateful for any help or suggestions from this community. Thank you in advance for your time and assistance!
