Hello guys,
i am trying to make a simple Serial communication between Arduino Mega and 4Duino, but it is not working.
I have the Arduino Mega as Sender using this Code:
And 4Duino as Receiver:
As to the Connection i am using the pin D0(RX) / D1(TX) from 4Duino and the D14(TX3) / D15(RX3) from Arduino Mega.
Linked TX3 to RX, TX to RX3 and GND to GND.
Any ideas why it is not working?
Thanks in advance.
i am trying to make a simple Serial communication between Arduino Mega and 4Duino, but it is not working.
I have the Arduino Mega as Sender using this Code:
Code:
void setup() { Serial.begin(9600); Serial3.begin(9600); } void loop() { Serial.print('H'); Serial3.print('H'); delay(1000); Serial.print('L'); Serial3.print('L'); delay(1000); }
Code:
int incomingByte; void setup() { Serial.begin(9600); } void loop() { if (Serial.available() > 0) { incomingByte = Serial.read(); if (incomingByte == 'H') { Serial.print('H'); } if (incomingByte == 'L') { Serial.print('L'); } } }
Linked TX3 to RX, TX to RX3 and GND to GND.
Any ideas why it is not working?
Thanks in advance.
Comment