Hi Everyone,
This is the interfacing between PC and Arduino Uno
PC ------serial com-------- Arduino Uno
The code:
String b = "Received Data : ";
String a = "";
void setup(){
** Serial.begin(230400);**
** Serial.println("Ready...");**
}
void loop() {
** a = Serial.readString();**
** Serial.print(b);**
** Serial.println(a);**
** delay(1000); **
}
When baudrate lower than 230400, communication is ok.
But when using baudrate 230400, arduino get invalid data from PC, but oke when sending data to PC.
example when PC sending string ABCD to Arduino
the result should be:
Ready...
Received Data : ABCD
but the result is invalid:
Ready...
Received Data : A~ *
Why this happened?