- Fri May 30, 2008 11:47 pm
#49326
I decided to break down and ask for some help I've been googling for the past week trying to find some sample code for a VU meter using the ADC on an AVR. I've found several schematics where people have used ICs such as the LM3915 with LEDs but I'd like to display the meter on an LCD instead.
If anyone has any code they'd like to contribute or maybe some ideas on how to do this I'd love to hear it.
Thats one half of the question... the other is what would be the proper way to port the audio into the ADC on the avr? For testing I put the audio from a headphone output directly into ADC0 and it gives me a reading but it is very jumpy and doesn't seem consistent. Probably doesn't give much of a good description there... I saw some others putting the audio through a couple of capacitors for filtering so maybe this is what I need to do...
As for code samples... I have two environments available... Bascom and avr-gcc. I'm currently running a m48 on a STK500. My LCD is a 16*2 running in 4-bit mode.
Any help would be appreciated! Thanks!
Kelly
If anyone has any code they'd like to contribute or maybe some ideas on how to do this I'd love to hear it.
Thats one half of the question... the other is what would be the proper way to port the audio into the ADC on the avr? For testing I put the audio from a headphone output directly into ADC0 and it gives me a reading but it is very jumpy and doesn't seem consistent. Probably doesn't give much of a good description there... I saw some others putting the audio through a couple of capacitors for filtering so maybe this is what I need to do...
As for code samples... I have two environments available... Bascom and avr-gcc. I'm currently running a m48 on a STK500. My LCD is a 16*2 running in 4-bit mode.
Any help would be appreciated! Thanks!
Kelly