Let there be (LED) light!
At the moment, K-9 sits, completely disassembled, in my garage. When he was last in the house (in July), the kids knocked him around a little bit and I decided he needed he needed a protective coat of polyurethane. The first coat is on. He needs a good sanding and a second coat.
Unfortunately, with work and family and vacations I haven’t been able get back to him. But I was able to start playing with the Arduino micro-controller I bought a few months ago. I’d like to use this as the interface between motors, sensors and the “brain” – an old 12-inch 1Ghz PowerBook G4 running OSX 10.5. But before I even think about which motors make sense, I wanted to make sure I could get my laptop to talk to the board. It wasn’t hard, but requires custom code on the Arduino to send data over the serial port and listen for instructions. After doing some research I stumbled upon a project called Firmata that provides a standardized way to do just this. I couldn’t figure out the MIDI-based message syntax Firmata uses at first. But a gentleman by the name of Andrew Craigie, on the Arduino forum, helped me work through that. (And I NEVER would have figured that out on my own. Thank god for “the internets.”)
With Andrew’s insight and a little effort, I wrote a little REALbasic application that can turn on and off an LED connected to a digital I/O pin on the Arduino. Exciting, I know…. I’ve created a four pound light switch! But genius starts with small steps. I want to make sure I have the details down correctly by setting this up to simultaneously control multiple LEDs. Then I’ll hook up some of the switches on K-9’s control panel to make sure I can listen properly… oh, and wire up the switches, board and computer in such a way that I don’t blow anything up. Details, details. 🙂