juffin
March 21, 2021, 11:29pm
1
Hello. I try to connect my Arduino pro mini to ESP32 via Serial port. My code:
SoftwareSerial EspSerial(10, 11); // RX, TX
void setup(void) {
Serial.begin(115200);
EspSerial.begin(115200);
}
void loop()
{
if (EspSerial.available() > 0) {
String EspSerialRead = EspSerial.readString();
Serial.print("EspSerialRead: ");
Serial.println(EspSerialRead);
EspSerial.write(10);
}
}
But I have some trouble: Arduino get message from ESP32 but not send any to it. I test it via USB port and get the same result - get message from terminal but not any send. Please, help, what could be the problem? Thanks!
EspSerial.begin(115200);
The highest baud rate that SoftwareSerial can reliably operate is 38400.
juffin
March 22, 2021, 5:59am
3
I change it to 9600 but it's the same - read ok, but can not send
Do you have an Oscilloscope or a second Arduino to run a test?
juffin
March 22, 2021, 11:08am
5
no, I don't have oscilloscope...
I connect ESP32 to PC via usb and all work fine, then connect my Arduino and not get any data in port...
At least you answer half a question, I'm out!!!!!!!
system
Closed
July 20, 2021, 11:13am
7
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.