Arduino to arduino serial communication

Hi,

I have two Arduinos, master and slave.
Master is is configured on node-red.

[{"id":"ecbb4b8e.2b4d28","type":"serial out","z":"8de82ddc.c1d07","name":"Serial Out","serial":"a5c662b5.9c21c","x":500,"y":180,"wires":[]},{"id":"a5c662b5.9c21c","type":"serial-port","z":"","serialport":"/dev/ttyACM2","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"\\n","bin":"false","out":"char","addchar":"","responsetimeout":"10000"}]

Slave is configured to read serial data.


int incomingByte = 0;

void setup() {
  Serial.begin(9600);           // start serial for output
}

void loop() {
  if (Serial.available() > 0) {
    // read the incoming byte:
    incomingByte = Serial.read();

    // say what you got:
    Serial.print("I received: ");
    Serial.println(incomingByte, DEC);
  }
}

Problem is 'i'm unable to receive the serial data on the slave, when it's sent from the master.

What's the connectivity between the two? is it as simple as the RX/TX are the wrong way arround? Where are you running Node-Red?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.