Go Down

Topic: Sampling audio from headphone jack. (Read 915 times) previous topic - next topic

Bill2k

I searched the forum and found this post http://arduino.cc/forum/index.php/topic,42833.0.html but I'm not able to reply to it.

I have a question in reference to the schematic on that page.

What happens if the "audio in" voltage is greater than 5 volts? Will the voltage going to the arduino still max out at 5 volts?

Thanks,
Bill

majenko

Yes.  The internal ESD diodes in the ATmega will bleed off the excess (to a certain extent).  Too much, though, and you risk blowing the chip.

You should attenuate the signal first if it's going to be too loud.
Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Bill2k

That's not what I wanted to here  =(

Thanks for the reply

Bill2k

Do you think placing a 5.1 volt zener diode between the analog pin and ground would be enough protection?

majenko

That plus a resistor is a common way of protecting the inputs, yes.

The other thing you can do is just add a simple pot as a variable attenuator to turn down the volume :)

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Go Up