Pages: [1]   Go Down
Author Topic: See this PureData (Pd) instrument with input from an LDR controlled 555  (Read 487 times)
0 Members and 1 Guest are viewing this topic.
Helsinki
Offline Offline
Newbie
*
Karma: 0
Posts: 31
A librarydude
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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



The Arduino code is as simple as

Code:
const int inputPin = A0;

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

void loop() {
  int v;
  v = analogRead(inputPin);
  Serial.write(v);
  delay(10);
}
« Last Edit: August 26, 2013, 03:24:03 pm by mace » Logged

Pages: [1]   Go Up
Jump to: