Categories
Uncategorized

In Advance of Troubleshooting

Teensy

I’m working on a new exhibit that will be using an Arduino (actually, a Teensy++ 2.0) to talk to an application running on a PC via serial data. The Teensy will be sending one byte to control the application’s behavior. This is an upgrade from an older version where the Teensy just sent keystrokes to the application. The nice thing about sending keystrokes is that it was very easy for anyone to troubleshoot because they could just open Notepad and press some buttons to see if they were sending any output. The bad part was that if a normally closed switch was open, it would just stream characters to the computer, which could make things hard to troubleshoot for some people.

ATMTester

To deal with the troubleshooting issue (which will eventually come up, as it always does) and make it easy for non-technical people to view a serial data stream, I wrote a simple application in Processing that reads the byte and displays the value, along with the status of each physical control of the exhibit.

ATMTester

The exhibit should always have the Teensy plugged into COM3 on the PC, but again, once something leaves the shop we never know what strange things might happen. When the application starts up it will present a dialog showing the COM ports, and asking you to select the correct one. If you select the wrong one it will just display nothing. This should be enough to help troubleshoot things via phone or email.

The trickiest part was the code to choose the COM port. (I know, we don’t call them “COM ports” on Mac OS X, and yes, the application works fine on Mac OS X, that’s another thing I love about Processing.) The code for choosing the COM port came from this forum thread How to let the user select COM (serial) port within a sketch?.

I did have to install Java to get the application to run, but it looks and functions like any other Windows application. Here’s hoping this all works and never has to be used, but is there just in case…

Categories
Uncategorized

Body and Machine (and Hammer!)

make it move: Body and Machine

Exciting news in the world of kinetic art! If you enjoyed my recent piece The Hammer of Futility, but would really like to see it in person, you’re in luck! As long as you’re in Minneapolis between March 7th, 2015 and March 21st, 2015.

The arts organization make it move is putting on a show titled Body and Machine and my lovely hammer will be there, and if all goes well, I’ll also be there, at least for the opening on Saturday, March 7th, 2015.

My colleague Broc Toft will also have some work in the show. I enjoy Broc’s work and I think you will too. Speaking of enjoyable work, Savage Aural Hotbed will also be performing at the opening! I saw them at The Hack Factory back in 2013 and they were a lot of fun.

I’ve got a few more kinetic pieces in mind, but I’m really pleased with how the hammer turned out, and I hope to see you (well, my Minneapolis friends) at the opening!