Hey!
I'm trying to communicate trough serial between my Arduino UNO and my Arduino Nano by the TX and RX pins, and it seemed to work fine at first, but now it seems like they frequently loose the communication from each other. Sometimes it works, and sometimes it doesn't.
However, when I plug in USB to one, or both of the boards, while still using one of the TX/RX pins, they're always able to communicate with each other.
Both board do also work when just communicating with the computer and not between the two boards.
Since it seems to work with the PC, I'm afraid that there's a defective RX/TX pin on one of the boards.
I have the GND from the UNO to a breadboard, but nothing to the Nano.
Btw, I'm using the Wild Thumper Controller Wild Thumper Controller Board - ROB-11057 - SparkFun Electronics, which is from what I've understood a modified Nano.
It doesn't look exactly like the Nano, but is the port named GND same for both?
Why should I connect the GND to each other btw? Should I do the same with the 5V?
Jellycow:
It doesn't look exactly like the Nano, but is the port named GND same for both?
Looks like it from the pictures.
Why should I connect the GND to each other btw?
A circuit (loop) is necessary for electricity to flow. TX (connected to RX) and GND form a circuit for sending data from one side to the other. RX (connected to TX) and GND form a circuit for sending data the other direction. Without GND, there is no circuit and no electricity flow.
Should I do the same with the 5V?
If you aren't now then you should not. You would only connect 5Vs together if you have a single shared power supply.