I'm actually interested in doing the exact same thing (occasional serial connections to Boarduino to change which LED is lit)
My setup is:
- Perl using Win32::SerialPort
- Windows XP
- Boarduino with what i suspect is the NG firmware due to a 7 second sketch start delay.
I've read on misc threads about shortcutting the reset:http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1187635332/15http://www.neufeld.newton.ks.us/electronics/?p=205
And general perl serial interfacing:http://www.neufeld.newton.ks.us/electronics/?p=205
.. And I know the Boarduino gives you the option to simply not solder the cap that will tie the reset to the serial but I would prefer to keep that auto reset if I can get away with it via the HUPCL feature I was seeing in some of the linux threads. I suspect that i should be able to do the same thing with the Windows Com Port setup (Set RTS on Close?)
The project I'm looking to create is basically a street light with LED's that will show the current state of my network / monitored infrastructure. A scheduled task will run occasionally and go and retrieve the state of a monitor, that monitor will return something like, "Normal, Warning, Danger" or whatever to the program. Based on that I want to turn around, open a serial connection on the Boarduino, and change the color of the LED to the appropriate green, yellow, red, and then disconnect since this will most likely be running off of a laptop, which might at anytime be undocked, and I would like the board to simply keep it's last known state. I saw another project that did it with the OneWire:http://stephenhouser.com/bblight
but I would like to do the same thing with the Arduino technology. Any help or tips would greatly appreciated.