Pages: [1]   Go Down
Author Topic: Sampling audio from headphone jack.  (Read 782 times)
0 Members and 1 Guest are viewing this topic.
Haverhill, Ma
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

Haverhill, Ma
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's not what I wanted to here  smiley-cry

Thanks for the reply
Logged

Haverhill, Ma
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley

Logged

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

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 604
Posts: 33448
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

No that only protects from over voltage, you also have to protect against negative voltages. Use a pair of rail clamping diodes.
See:-
http://www.thebox.myzen.co.uk/Tutorial/Protection.html
Logged

Haverhill, Ma
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you both for your help.
Logged

Pages: [1]   Go Up
Jump to: