Hi, i have two arduino connected to each other. Arduino one pin 10 RX to pin 11 TX on other arduino and vice versa. I have this simple "hi" message sending every second 1 second from arduino one to arduino two. But nothing is showing. Here are the two codes.
Sender:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
Serial.begin(9600);
while (!Serial) {
;
}
mySerial.begin(9600);
}
void loop() // run over and over
{
mySerial.write("hi");
delay (1000);
}
Receiver:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
Serial.begin(9600);
while (!Serial) {
;
}
mySerial.begin(9600);
}
void loop() // run over and over
{
if (mySerial.available())
mySerial.println();
}