First we'll need some sort of sensor. We can go ahead and assume it will produce some sort of analog output. Now we need some sort of analog-to-digital converter (ADC) and something to manipulate the result and do all the work. I picked out the PIC16F916 microcontroller for this purpose (because I have them on hand!). This 8-bit device has a built in 10-bit ADC that can sample more than fast enough for our purposes. It also has a built in UART which can be configured for MIDI output. Even better, it has a built in oscillator which will give us a 2MHz effective instruction clock, again plenty quick for this project. Our basic design is pretty simple:
Tuesday, August 5, 2014
Virtual Whammy Bar Part 2
OK, now it's time to start figuring this thing out. The overall goal is to take some sort of hand motion, quantify it, and send an appropriate MIDI message to some digital effect unit.
First we'll need some sort of sensor. We can go ahead and assume it will produce some sort of analog output. Now we need some sort of analog-to-digital converter (ADC) and something to manipulate the result and do all the work. I picked out the PIC16F916 microcontroller for this purpose (because I have them on hand!). This 8-bit device has a built in 10-bit ADC that can sample more than fast enough for our purposes. It also has a built in UART which can be configured for MIDI output. Even better, it has a built in oscillator which will give us a 2MHz effective instruction clock, again plenty quick for this project. Our basic design is pretty simple:
This isn't the definitive design, we'll want to add a few bells and whistles such as buttons and a couple 7 segment displays to control the device operation on the fly. But to start, this will do.
First we'll need some sort of sensor. We can go ahead and assume it will produce some sort of analog output. Now we need some sort of analog-to-digital converter (ADC) and something to manipulate the result and do all the work. I picked out the PIC16F916 microcontroller for this purpose (because I have them on hand!). This 8-bit device has a built in 10-bit ADC that can sample more than fast enough for our purposes. It also has a built in UART which can be configured for MIDI output. Even better, it has a built in oscillator which will give us a 2MHz effective instruction clock, again plenty quick for this project. Our basic design is pretty simple:
