So Mike and I found some cheap $2 touch screens from a used computer parts store. They are 4-wire resistive touch screens from various manufacturers. Now everybody knows about the Arduino, and if you don’t it’s basically a Quick-n-Easy prototyping board equipped with 14 digital pins (6 of which can provide PWM output), and 6 analog pins. the chip is an ATmega168 with limited functionality. It reads a modified version of C++ so writing code for it is fairly straight forward, without much variance from that of C++.
I used two analog pins and one digital pin for this project. I wired the touch screen to the 3v pin, the Gnd pin and the analog pins 0 and 1 set to input. In the code (digital) Pin 3 is set to PWM out. I wired the output jack to Gnd and Pin 3. The code generates a sine wave that has it’s frequency and volume variables mapped to the touch screens X and Y. So for example I have my finger at 0 X, 0 Y then my frequency will be 30 and my volume will be around 1 db. As I move up the X the frequency changes and as I move up the Y so does the volume. The frequencies jump up the pentatonic scale and if you put multiple fingers on it then it adds the values together and you get into the way higher frequencies.
I added leds underneath for looks and for functionality so I could remember the location of particular sounds. Altogether its pretty basic but kinda fun. here are some recordings of it that I just made while sitting here making this post.