Make Noise
Make Noise
with your
drawings
code ............................................. 6
if you're new to arduino, i strongly suggest that you take a look at the
"getting started" section on the official arduino site:
http://www.arduino.cc/en/Guide/HomePage
- 4 alligator clips
- 1k ohm resistor
(brown, black, red)
- 3 connecting wires
(make them about 1 inch long)
- 9 v battery (optional)
(you can also power the arduino from the computer)
- a pencil
2
working principle
so, basically, the microcontroller will be constantly reading the current flow
through your drawing, calculating a proportional pulse based on it and creating
a square wave that will feed the speaker, eventually translating your drawing
into sound.
3
connection diagrams
graphic diagram:
4
schematic diagrams:
to arduino analog
input pin 5
1k ohm
gnd
from arduino
digital
output pin 8
8 ohm speaker
gnd
5
code
*/
void setup(){
pinMode(pinSpeaker, OUTPUT);
}
void loop(){
int rawVal = analogRead(pinGraphite);
playSound(durVal, freqVal);
// -->change this value to experiment with diferent silent intervals
delay(100);
}
6
// this function receives two parameters: duration [microsecs]
// and frequency[Hz]
long playTime = 0;
7
play / experiment
the more graphite there is in your lines, the more current will flow,
affecting your pulse width and frequency.
keep also in mind that the piece of paper works as an insulator, so you can
use an eraser to change the sound.
8
this booklet was prepared to be distributed for free during the
AUDO festival: alternative artistic practices in sound,
purdue university, lafayette, IN.
sep. 10-12, 2010.
alejandro tamayo
www.thepopshop.org
2008-2010
Bogotá, Col.