Hello friends.
I'm trying to talk with an Arduino through another unchipped arduino.
The code is:
void setup() {
Serial.begin(9600);
pinMode(2, INPUT);
}
void loop() {
Serial.println("send");
if (Serial.available()) {
Serial.read();
delay(500);
Serial.println("OK");
}
delay(500);
}
When I connect with de chipped arduino directly with usb I get "send" every 1/2 seconds and "OK" every time I send something. PERFECT
If I connect using the unchipped arduino (gnd->gnd, vin->vin, tx->tx, rx->rx) I get "send" every 1/2 seconds and "OK" only some times. 1 every 20 times or less. It's... aleatory.
Any idea?
Thanks