How would I go about getting two Arduino boards to communicate?
What I want to achieve is for each board to output one of three states (A, B, C) and for the receiving board to perform a different action dependant on the state of the sending board. I'm totally at ease with the software side of things its hardware advice I need:
1. What should I connect to? (tx & rx?)
2. How many wires would it take?
3. How long could these wires be?
Ta for any advice!!!
The easiest way is to connect the TX1 --> RX2 and TX2 --> RX1 and then use the Serial Communication (as described in the reference):
Used for communication between the Arduino board and a computer or other devices. This communication happens via the Arduino board's serial or USB connection and on digital pins 0 (RX) and 1 (TX). Thus, if you use these functions, you cannot also use pins 0 and 1 for digital i/o.