I am currently testing the UART on my boards to ensure they are in working order, but I do not see any response from the receiving board on the serial monitor. My code and boards are setup like this:
Sending Code:
void setup(){
Serial.begin(9600); //initialize serial communication at a 9600 baud rate
}
void loop(){
Serial.println("Hello world!");
delay(1000);
}
Receiving Code:
char incomingByte ; // for incoming serial data
void setup() {
Serial.begin(9600); //initialize serial communication at a 9600 baud rate
}
void loop() {
// send data only when you receive data:
if (Serial.available() > 0) {
// read the incoming byte:
incomingByte = Serial.read();
// say what you got:
Serial.print("I received: ");
Serial.println(incomingByte);
}
}
I am very new to Arduino and cannot find much about UART and the R4.
Thanks.