0

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);
 }
}
asked Jun 28, 2019 at 1:34
3
  • how does it print data to screen when the output is stopped? ... it is not clear what you are saying Commented 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. Commented Jun 28, 2019 at 2:59
  • majenko.co.uk/blog/reading-serial-arduino Commented Jun 28, 2019 at 14:59

1 Answer 1

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

answered Jun 28, 2019 at 3:02

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.