Arduino + PureData

Today, we got to play around with getting PureData again. We managed to get an Arduino to interface with PureData, allowing us to use sensors to control the audio output of our PureData patch.

We managed to hook 4 force sensing resistors up to an Arduino using a breadboard and pulled the readings into PureData using Pduino in PD and Firmata on the Arduino.

IMG_20130220_142846
The Arduino

Here's a video of it in action:

The synth patch combines a phasor and oscillator to create the sound. By multiplying the sawtooth of the phasor with the sine wave of the oscillator we get a kind of tremolo effect.

The phasor takes a value between 0 and 127 and the oscillator between 0 and 10. The force resistors gave us a max value of 0.5, so we had to scale them accordingly.

Here what the PD patches looked like:

Screen Shot 2013-02-20 at 14.10.59 copy
Pduino Patch
Screen Shot 2013-02-21 at 15.14.38 copy
Mini-synthesizer
© 2020 Dec Norton