Home > Arduino, Misc. Audio Builds, Synth > Arduino + Touchscreen = Touchduino synth

Arduino + Touchscreen = Touchduino synth

February 21st, 2009 Leave a comment Go to comments

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.

Click here to play Clean mp3

Click here to play Ringer mp3

Click here to play Wah mp3

MOVIE LINK

-James

Categories: Arduino, Misc. Audio Builds, Synth Tags:
  1. March 16th, 2009 at 10:02 | #1

    I would be very interested in the code for this project. I’m building a low end touch sensitive display to sit on top of a digital picture frame. I hope to be able to manipulate the digital picture frame with the touch sensitive input via an Arduino.

    Thanks in advance! /pauric

  1. March 2nd, 2009 at 13:03 | #1