Hello, I am trying to connect my Me Auriga board to a Arduino Nano using port 5, I have connected them as follows:
MeAuriga | Nano
GND | GND
TX2 | RX0
RX2 | TX1
The Me Auriga is the receiver and the code is here:
char mystr[10]; //Initialized variable to store recieved data
void setup() {
// Begin the Serial at 9600 Baud
Serial.begin(9600);
}
void loop() {
Serial.readBytes(mystr,5); //Read the serial data and store in var
Serial.println(mystr); //Print data on Serial Monitor
delay(1000);
}
And the code for the Nano, which is the sender:
char mystr[5] = "Hello"; //String data
void setup() {
// Begin the Serial at 9600 Baud
Serial.begin(9600);
}
void loop() {
Serial.write(mystr,5); //Write the serial data
delay(1000);
}
What Happens:
When I connect them together on the nano, i just get prints of Hello on the serial monitor and it doesn’t matter if the port 5 cable is connected it just keeps printing hello.
While the Me Auriga serial monitor is blank.
What I Have Tried:
I saw this forum, which explains to use serial2, so I try to use serial2 for the Me Auriga but I still get the same output as before.
Any help would be greatly appreciated.