Go Down

Topic: See this PureData (Pd) instrument with input from an LDR controlled 555 (Read 619 times) previous topic - next topic

mace

Hi, i made a simple musical (erhem) instument with Pure Data (aka. Pd). I also built an electronics component of it, which is a 555 timer chip, who's blinking is responds to the ambient lighting conditions.

An light-dependant-resistor (LDR) controls the blinking behaviour of the 555, an Arduino reads the chip (there is also a LED as an indicator), and sends it over serial to Pure Data's comport -object. The Pd instruments uses the pulse data to modulate a sine-wave oscillator. A sawtooth oscillator is mixed in for a good measure.

Here is a little video

http://www.youtube.com/watch?v=KlO09kLGf74&list=PL5iRoe7YDplNR1w3kYwBbtGxSe5X8l5jW&index=18

The Arduino code is as simple as

Code: [Select]
const int inputPin = A0;

void setup() {
 pinMode(inputPin, INPUT);
 Serial.begin(9600);
}

void loop() {
 int v;
 v = analogRead(inputPin);
 Serial.write(v);
 delay(10);
}

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy