Hello,
i'm working on a project which involves controlling the functionality of modified toys/instruments from a laptop i.e. the laptop can trigger sound playback etc. I'll explain how I achieve this:
I open up a toy and poke around the circuit board until I find two points which, when connected together using croc clips, trigger one of the sound functions of the toy. I solder wires to each of these points (POINT A + POINT B), and feed them out of the casing, so that I can trigger the sound by touching the ends of the wires together - instead of pressing a button already on the toy.
To have this operation controlled electronically, i need an electronic switch. I've been using the 4066 chip, which is essentially 4 independent SPST switches. Using a breadboard, i can connect POINT A to one pin on the 4066, POINT B to another pin on the 4066, and then 'close' the switch by supplying a 'control voltage' to another pin on the 4066. When the control voltage is supplied, the switch closes, current runs from A to B, and the sound is triggered. Lovely.
The control voltage comes from the Arduino digital output pin. When i turn a certain pin ON, a 5V voltage is sent to the necessary pin on the 4066, and a switch is operated. I'm using an Arduino Duemilanove btw. I'm using Max / MSP to drive the arduino - this way i can write various programs to trigger sound play back in which ever way i like e.g. i can use an analogue keyboard like a MIDI keyboard.
By the end of the project, i aim to have around 10 modified toys/instruments being simultaneously controlled from the laptop. This way I can write a program in Max/MSP which can 'play thru' a composition using these instruments... and i can just sit back and watch. This is all a pretty simple overview, but i will explain in more detail if requested.
My question:
A single arduino has 13 output pins, meaning i can control 13 switches (thus can control playback of 13 different sounds). Ideally, i aim to have in the region of 50 different sounds available for playback, therefore i require 50 independent digital output pins. Am i best using multiple arduino boards - or should I investigate an alternative micro-controller?
All I am using the arduino for is the 5V output to operate the switches in the 4066. If there is a different micro controller available that has more output pins capable of this 5V - as well as being compatible with Max/MSP - then I would prefer to use that! But as yet, i cannot find one. Any suggestions?
Thanks, and sorry if this doesn't make sense just yet, it's late and i'm tired!
Jordan
PS- For anyone interested, here is a previous performance I was involved in using circuit bent instruments. Here we 'manually' operated our instruments. I did, however, circuit bend a Nintendo Entertainment System, which was controlled by a laptop in the exact same fashion as described above. Glitches are automatically turned on and off according to a Max / MSP program which was running live. The output of the NES is projected behind us. At times, the NES is programmed to glitch 'in-sync' with the music. WARNING: circuit bent music may not be to everyone's taste!!