The basic layout is pretty simple. At the top of the case there is a simple momentary switch
that is connected to the microphone input on the sound card. The switch can be depressed by a
metal plate approximately 2"x5" in size. This was placed under the fur at the top of the case
for easy access.
After a bit of tinkering, I was able to reliably take samples from the microphone input on
the sound card and detect a change when the switch was depressed. The next step was to automate
this and do something interesting with the input. What developed was a perl daemon that runs
at boot time, reads a configuration file, and plays a random .wav file - which can be customized
via the config file - when someone pets the top of the case and depresses the switch. That's pretty
much it.
This development was an immediate success. Suddenly, "Fuzzy Router" or "Pimp Computer" was no
longer an adequate name to describe this machine, which had taken on an entirely new and
interactive personality. In searching for new animal noises and .wav files to play, one of
the students suggested a "Chewbacca" growl(ie. Star Wars) - hence the new name for this
creature, "Chewie". Currently, Chewie makes purring, roaring, growling, and mooing sounds
when pet.