This program works great if I use the serial port of the FTDI cable. However, if I connect the Arduino's digital pins 0 and 1 to another serial cable's TX and RX lines respectively, and use that serial cable instead of the FTDI cable, I get garbage on the other side (to be exact, 0x00 and a BREAK condition). I can't find any documentation regarding this. Do I need to also apply a common ground of some sort? I would greatly appreciate any help!
PaulS, thank you. Referring to the pinouts on the above link, I hooked the Arduino's GND (right below the 5V) to pin 5, and it changed nothing.
Of course, if Grumpy_Mike is correct, then it changing nothing makes sense. Grumps, to make sure I understand: TTL is coming from the Arduino pins 0 and 1, and it needs to be converted to RS232. Correct?