collegamento 2 arduino codice
//Sketch scritto da Alessandro Oppo per 9minuti.it
//collegamenti rx-tx tx-rx gnd-gnd
#include <SoftwareSerial.h>
char stringa[20];
SoftwareSerial receiver(8, 7);
void setup() {
Serial.begin(9600);
receiver.begin(9600);
}
void loop() {
while (receiver.available() == false) {
receiver.readBytes(stringa, 20);
Serial.write("\n");
Serial.write(stringa);
}
delay(1000);
}