Recently, we had a workshop in the learning studio with some folks from the MIT media lab, to help them test an experimental extension of Scratch. It is part of the Scrach X project, and it uses arduino-based hardware and a modified version of scratch to control different inputs and outputs, like motors, switches and lights. Ryan and I were trying to program a light show when our computer crashed, and we had to improvise.
Since we couldn't use a computer to program our lights to turn on and off, we decided to try using mechanical switches and a spinning platform to create a looping program. Our contraption looks pretty complicated, but if you watch closely, you can see it has several home-made switches that turn colored lights on and off as the platform spins around on a slow moving motor.
This experiment got us thinking, how far can you push mechanical switches? Is there a way to make something turn on for a few seconds? Blink? Loop? Can you make a mechanical switch that triggers a random behavior? We have been playing around with programming recently, and this experiment got us really interested in the idea of programming something mechanically.
The spinning platform Ryan and I made was perfect for running a program in a continuous loop, just like a computer code, but it was very hard to alter the pattern, and you couldn't switch the program out for a different one.
For the next version, I decided to try using a record player with interchangeable cardboard records to control a mechanical switch. I liked the idea of making cardboard record-programs because they were easy to alter, and I could quickly load a new one to get a different behavior. If you want to alter the program, you can use an x-acto knife! For the mechanical switch, I mounted a micro-switch on an improvised tone-arm. When the record spins, the cut-outs trigger the micro-switch to turn the light on and off.
Getting a light to blink on and off seemed like a good starting point, so the first record I made runs a blink program.
blink from The Tinkering Studio on Vimeo.
The nice thing about the cardboard records is they are easy to make and they are interchangeable. This one has a more complex pattern . . . it turns a light on and off and makes it blink fast and slow.
loop from The Tinkering Studio on Vimeo.
So far, I'd only been able to run really simple programs in a loop, and I was curious to see if I could make a record that was a little more sophisticated. This is a record that I programmed (or cut out little holes with an x-acto knife) to say "hello world" in morse code.
hello world from The Tinkering Studio on Vimeo.
This is a pretty silly way to program (especially when there are wonderful things like scratch out there!) but it's always interesting to break something complicated down to a really basic level that is easy to understand and play around with. And it's pretty cool that you can program something with cardboard!