Go Down

Topic: Arduino Realtime Audio Processing (Read 11503 times) previous topic - next topic


On compiling the program given in 'arduino_audio_loopback' i am getting an error as " TCCR2A not declared" . plz hlp...

No idea what program this is nor what you are trying to compile it on.
Please provide a link or post the code as an attachment or in code tags.
TCCR2A is a timer register in the ATmega 328 and others but it doesn't appear on things like the Duo.


Mike is probably right, as usual...
my guess would also go on...Maybe the wrong board/chip?!
As far as i remember that specific example will work on atmega 328, 168 and previous compatibles( 8, etc).
Even to use with the mega 2560 there might be the need for slight alterations in order to port the code( dont quote me on this, for this particular  example you mentioned though... Havent looked at the code for a while) , but am sure it does compile and work on the Uno/328,etc.
10 LET Loop=Infinite
20 GO TO 10


i am missing how did you record your audio sample? and how did you save it without a shield?
if you please can support me with a code. i really need it

Thanks in advance


Nice try whippoorwill but if you read the thread it is about processing audio not saving it.


I realize this is an old thread, if I should have started a new thread I'm sorry in advance.  I was just going through the reverb example and something jumped out at me:

Code: [Select]
  // set adc prescaler  to 64 for 19kHz sampling frequency
  cbi(ADCSRA, ADPS2);
  sbi(ADCSRA, ADPS1);
  sbi(ADCSRA, ADPS0);

Doesn't this set the prescaler to 8, not 64? So its sampling at 153kHz rather.  Was this intentional and the comment is just wrong? I attemped setting bits 2 and 1 and clearing pin 0 to set it to 64, but the output just isn't the same (much quieter for whatever reason).  Still going through the rest of the code to see what's going on with that just thought someone might have some insight.

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!

via Egeo 16
Torino, 10131