I'm writing a simple arduino program to light up leds when a certain character comes in on the serial port. Everything on the Arduino side works fine.
Then i wrote a ruby app to talk to Arduino on the serial port. Very simple code:
sp = SerialPort.new "/dev/tty.usbserial-A6008mdp", 9600, 8, 1, SerialPort::NONE
This code for some reason only works when I have the serial monitor in the Arduino IDE open. If I exit the IDE it doesn't work...i see the RX light on the board light up, and the the LED on pin 13 lights up, and nothing.
Any ideas why this could be happening? I'm running on Mac OS X Snow Leopard.