Hello guys, I have two Arduinos UNO and I made serial communication. I also have two MKR1000s and I upload same programms and that isn't working. I will attach programms. Please help!!!
Problem:
On serial monitor I see data when Sender write but Reciever don't recieve that. When I turn on Serial monitor on Reciever and write A it turns on led. They don't communicate I think.
Connecting:
RX--> TX
TX--> RX
GND-->GND
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write('A');
delay(2500);
Serial.write('a');
delay(2500);
}
int led=3;
char data;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {
if (Serial.available()>0= {
data=Serial.read();
if(data == 'A') {
digitalWrite(led, HIGH);
}
if(data == 'a') {
digitalWrite(led, LOW);
}
}
}
Recieve.ino (257 Bytes)
Send.ino (121 Bytes)