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.

6
  • The Arduino serial monitor is incredibly crude and barely usable at the best of times. It may be to do with line endings, or something similar. Personally I would use putty or teraterm rather than hyperterminal, since that is a bit crude too (though not as crude as the arduino serial monitor). Commented May 11, 2017 at 16:03
  • @Majenko In my case, Hyperterminal is showing correct data as above. But serial should show similar data too. Is there any problem in my Arduino code? Commented May 11, 2017 at 16:50
  • Not in that little snippet, no. However the two serial programs do deal with line endings in a very different manner, which is probably where the difference in displays lies. Commented May 11, 2017 at 16:56
  • What results do you get if you change int incomingByte to char incomingByte or to byte incomingByte? Commented May 11, 2017 at 17:00
  • 1
    Rahul Rastogi, by “result remains the same” do you mean the same as for "char incomingByte", or like the “int incomingByte” output? Commented May 11, 2017 at 18:34