TX and RX

Hello all!
Can anyone explain to me how to use the pin 0 / 1 on the arduino
duemillanove? I only have one arduino but I want to get another
one soon (maybe I'll buy myself one for christmas?). What I was
wondering is this - is it possible to get two arduinos to talk to eachother
with these pins, and if so, how?

I am also planning on buying the arduino nano, if I do get one.

Thanks everyone,
Onions

Yes you can make two Arduinos talk just connect Tx from Arduino 1 to RX on Arduino 2 and RX from Arduino 1 to Tx on Arduino 2. You must also connect the two Arduinos grounds together and of course make sure you have identical baudrates defined in your serial.begin on the two boards programs

Sounds simple!
Is there a library or code line to get them talking?

Thanks, Onions

Serial.println() and Serial.read() on the other side
read - http://arduino.cc/en/Reference/serial

Well that is simple!

Some things in life are :slight_smile:
If you want to experiment more you might try the NewSoftSerial library, that enables a serial port on "any" pair of pins.

Don't forget to put

Serial.begin(your_speed_here); // such as 9600
Serial.flush; // clears out the receive register to start.

in void (setup) on both sides.
and test for
if Serial.available() >0;

before you try reading any characters.