This morning I got a first draft of real organ software running on the 16f684 / programmable sound generator circuit I've been building. Once I got the software up and running I tested it with just a probe, then very quickly wanted a keyboard. I have plans to make a permanent one from wood and brass, but I wanted something NOW. So I spent about 20 minutes in my son's room and came up with this lego creation. The only parts not stock legos are the reed switchs and magnets for the circuits. I got really lucky and the magnets I had were a perfect press fit into the bottom of the lego keys.
I hot glued the reed switches to some poster board which I then glued to a stack of legos. A rubber band provides spring back for the keys that pivot on a lego shaft. I soldered wires from the reed switch out to a header I could plug into my bread board. When you push a key the magnet attached to it closes the reed switch beneath the key. The micro reads the state change and commands the sound generator to produce the note. Right now it only has one voice.
Here's a shot of the breadboard. The big 40 pin bug is the sound generator and the little one to the right is the 14 pin 16f684 pic micro. The board to the right is my pic programmer, and to the left is my arduino. The big battery and small board in the top right corner is my portable 5 volt power supply. With this package and my laptop I develop hardware and software while I ride the bus to work in the morning.