Getting max patch audio signal to speakers through arduino

timothybone's icon

I figured this would be pretty straightforward, but I actually haven't found consensus on a good way forward with this.
Simply put: my goal is to have max patches output audio signal through Arduino's to speakers. Is the easiest thing here to pick (or build) an audio shield for arduino? Maxuino uses firmata, is there a way to send signal through PWM? I'm guessing this is a very simple question. I'm pretty sure I just need to learn about OSC and that's the way forward...

Cheers!

Steven Miller's icon

Both the 8-bit resolution and the ~490 Hz frequency of the Arduino Uno (and predecessors) PWM outputs make for very poor quality audio output. If you really want to do audio output of reasonable sound quality, have a look at the recently released Arduino Due - it has 2 channels of reasonable (12-bit) quality D-to-A. I can't find any specs on the samplig freq of the DAC pins, however. http://arduino.cc/en/Main/ArduinoBoardDue

brendan mccloskey's icon

It might also help to look at ladyada's Drawduino circuit and code. You should find it on the Adafruit site. I also seem to remember littlescale doing 8-bit audio on Arduino. Neither of these involve Max afaik though. Sorry not to add anything as specific as Stephen's remarks.

Brendan