2008/02/15

Extreme Feedback Device

Recently, I read about Extreme Feedback Devices (e.g. lava lamps).

The idea is to set up a physical device that displays the current status of an automated build in an eye-catching way, so that it is really hard to not recognize that the build is down. I loved the idea and decided we have to have an Extreme Feedback Device (XFD) on our own.

I wanted an especially cheap and simple solution. I used a mySmartControl M8 board with an ATMega8 AVR RISC microcontroller from Atmel, modified the circuit of a cheap LED effect lamp and connected it to the microcontroller, so that each color can be switched on and off individually.

The microcontroller board has an USB interface and shows up as a virtual COM port. A small C program running on to the microcontroller listens to commands sent via the COM port from the PC and reacts by switching the LEDs on and off. On the PC a Java programm polls the web page of the build server and sends commands to the microcontroller utilizing the serial communication library rxtx.

The price for the hardware was about 35€. It took me 5 hours to make everything work, whereas the hardest part was the microcontroller programming. Luckily there was a ready-to-use example program which exactly did what I needed :-)

Here is what the final result looks like:














After using the device for a couple of days it turned out to be very useful, if the device flashes a couple of times when the state changes, so that one recognizes a build failure immediately, even from the corner of one's eye.
As the device has also a blue LED, and can therefore display basically arbitrary colors by mixing the primary colors (RGB), one can think of visualizing additional aspects of the build status.

7 comments:

Kai said...

incredible cool stuff!!!

Haiko said...

Thie link to the LED lamp is broken, which lamp did you use?

testdrivenguy said...

It was the "LED-Pyramide LED 10" from
H&H.

Jens said...

Another Extreme Feedback Device: http://www.jensjaeger.com/2010/04/extreme-feedback-device-the-batman-lamp/

dalini said...

could you give a link to the ready to use example programm or was this part of the board?

thanks a lot

testdrivenguy said...

Yes the microcontroller program was one of the examples included on the driver CD.

Anonymous said...

We ended up using a giant siren like this.