0

I try to send an "a" string via serial with

Serial.println("a");

and I receive "Oy=" in Ascii or {4F}{79}{3D} in Hexa.

Where should I start investigating? What could be wrong? Baudrate is 9600 on all sides.

PS: I suspect the cable. Any hints how to check it?

  • 1
    It sounds like wrong baud rate. If you set them both the same then maybe the Arduino is running at the wrong speed. – Majenko Aug 16 '16 at 19:55
1

On your setup function

Serial.begin(115200);//<- 115200 is the baud rate, serial monitor must match this speed
while(!Serial);//<-- wait for Serial to be ready

see: https://electronics.stackexchange.com/questions/9264/what-standard-uart-rates-are-there for more baud rates

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.