Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

16
  • 1
    A simpler way would be to put the print inside setup which is only done once. Commented Jul 6, 2018 at 8:35
  • that doesn't work either Commented Jul 6, 2018 at 8:40
  • My question here is not regarding how to print it once. I want to know why I am not receiving anything on the Uno when I only print it once. Even when I print in setup I do not receive the string on the uno. Commented Jul 6, 2018 at 8:41
  • Have you used the while(true) loop, without exit(0)? This is not completely clear Commented Jul 6, 2018 at 9:04
  • 1
    I can't reproduce that. With pin 18 (TX1) on my Mega connected to pin 10 (software serial receive), I get the expected message in the serial log if I reset the Mega (thus forcing it to send the message once). Note that you have pins 18 and 19 reversed in your question text. When I said "how have you wired this up?" I was hoping you would actually show what was connected to where (or a photo). If you have 19 on the Mega connected to 10 on the Uno, then it definitely won't work. Commented Jul 7, 2018 at 22:48