https://www.adafruit.com/product/2488
I have the character array ready to send. I can output the array to the serial console.
Now comes the fun part. Getting it to send to the second Metro. I connect port 1 TX on the source Metro to port 0 RX on the "slave" Metro.
To send the data I use this inside loop with a delay of 1 second
Code: Select all
Serial.println("Sending "+String(sendData));
Serial.write(sendData,10);
Now on the receiving Arduino I use this code to display the received data inside the loop with a 1 second delay
Code: Select all
Serial.readBytes(receivedData,10);
Serial.println("Receieved "+String(receivedData));
Instead it shows "Sending 12". So the master sending Arduino is sending the println output down the TX port 1?
I really want to separate the output to the console vs data I send to the other Arduino.
What am I missing?
I see in other doco that the Arduino Mega and other Arduinos have multiple serial ports with multiple TX/RX ports. Does the Arduino Metro have these same other serial port sets I can use? Or should I just buy 2 Arduino Mega's and use those as the "master" units?
Thanks for any tips helping this newbie.