I'm trying to send data via serial from my Arduino nano to my ESP. Its an integer from 1 to 4 digits so something like 0, 13, 1234, 123, ...
Every thing works fine but when the data comes too fast it stopps the output and then it print all the data on the screen.
I use this method to recieve data.
void loop() { // run over and over
if (Serial.available()) {
incomingByte = Serial.readString();
Serial.println(incomingByte);
}
}
-
how does it print data to screen when the output is stopped? ... it is not clear what you are sayingjsotola– jsotola2019年06月28日 01:47:03 +00:00Commented Jun 28, 2019 at 1:47
-
What stops? The Arduino or the ESP? And how do you know? You haven't told enough for people to help.st2000– st20002019年06月28日 02:59:53 +00:00Commented Jun 28, 2019 at 2:59
-
majenko.co.uk/blog/reading-serial-arduinoMajenko– Majenko2019年06月28日 14:59:02 +00:00Commented Jun 28, 2019 at 14:59
1 Answer 1
From what you have posted, assuming this is the ESP code in the question, it is clear that for every character the Arduino sends the ESP the ESP will send 3 back. So at some speed this will likly stop working