[sdiy] (OT)help processing realtime audio on Arduino?

Olav Martin Kvern okvern at ix.netcom.com
Tue Feb 1 20:41:15 CET 2011


Hi Dan,

re: "there was an interesting article by LAB 3 on realtime audio 
processing on the arduino but it went WAY over my head"

I was just about to send you that link.:-) I'm afraid that that's about 
as simple as it's going to get, really--just download their code and try 
it. Once you can play with the example projects, I think it'll be a lot 
clearer.

The problem with just reading an input and sending the value to the PWM 
output is timing. You have to do a bit more work than that. The timer 
interrupt in their examples takes care of synchronizing the input/output 
sample rate.

re: "i am not even trying to save it in RAM. eventually i would like to 
try an R2R ladder out of the chip. would i use the non-pwm pins for that?"

The PWM pins can be used as standard digital output pins. For that 
matter, the analog input pins can be used as digital pins, and you can 
do PWM on the non-PWM pins (though it takes a little more work).

Thanks,

Ole



More information about the Synth-diy mailing list