I have been working on a cycle computer for a project and have a problem communicating via Serial data. I have tried the examples on the website and changed the baud rate and many things. Here are my current two programs to test whether the 2nd arduino is even recieving data.
TRANSMITTING PROGRAM
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11);
void setup() {
}
void loop() {
mySerial.begin(9600);
mySerial.write(45);
delay(10000);
}
RECEIVING PROGRAM
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11);
void setup() {
mySerial.begin(9600);
}
void loop() {
if (mySerial.available()) {
Serial.print("Hello");
}
}
I did both of these programs without the Software Serial data library also and it didn't work either.
I also tryed many other variations of this program
thanks for help