To make this project, you will need the following things. Parts: (5X) 5K potentiometer- (Radioshack #271-1714) (5X) Potentiometer knobs - (Radioshack #274-416) (3X) LEDs - (Radioshack #276-307) (1X) SPDT switch - (Radioshack #275-1549) ...
The Arduino is able to output sound through a library that has been developed called the Tone Library.
By creating an interface and a program that can call certain values to be output to an audio out, the Arduino Synthesizer is a robust tool for making a rudimentary noise machine. It uses granular synthesis techniques to generate a distinctive sound that can be a whole lot of fun for musicians, artists, tinkerers, and hobbyists.
Sound is created by playing the same sound grain, or samples (small pieces of around 1 to 50ms) over and over again at very high speed. Our ears and brains turn this into an audible hybrid of the repetition rate and the original grain, and it sounds like a constant tone.
The grain consists of two triangular waves of adjustable frequency, and adjustable decay rate.
I have attached the code for the Arduino to this Instructable. You will need a USB 2.0 to upload it to your board. After you have uploaded the code from your computer, go ahead and attach the Proto Shield to your Arduino.
Solder wires to the your 1/8" mono audio jack, make your leads fairly long. Connect your positive lead to PWM~ 3 on the Arduino. You will need a 10K ohm resistor between the arduino board and the positive lead of your audio jack. Connect the negative lead of your jack to ground rail of the breadboard.
One lead of your photoresistor is wired directly to your 5V positive rail on the breadboard, as well as Analog Input 5 on the Arduino. The other lead of the photoresistor is connected to a 10K ohm resisted ground rail.
The tactile switch has four leads. Allow the switch to straddle the bridge of the breadboard. Connect one of the two parallel pins to your 5V positive rail on the bread board, and the other to a 10K ohm resisted ground pin. The last connection of your tactile switch connects a signal wire between the switch and Digital Pin 6 on the Arduino.
This is the completed breadboarded circuit. Test with a pair of headphones, or connect to a small speaker. If you are using headphones, this is a mono output, and it will be loud. Do not put your headphones directly near your ear when firing up this synth.
The next few steps outline how to move the circuit from the breadboard to the Protoboard. Because all of your components are secured to the enclosure, it will be simple to run wires from your components to the board.
Solder lead wires to all of the components within the the enclosure, using red and black wires respectively to denote which leads are positive and negative.
On the Protoboard, connect one wire to digital pin 3, and solder into place, run a jumper wire to the center of the board so that you may break the line with the same 10K ohm resistor from the breadboard.
When you solder these into place, make sure you drop enough solder on to the board to connect the wire to the resistor.
Step 15: Solder in the resistors for photo resistor, tactile switch, and SPDT switch