Pages: [1]   Go Down
Author Topic: Sampling audio from headphone jack.  (Read 545 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: 92
Posts: 3969
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

Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies
Replacement for the Arduino IDE: UECIDE - Proper serial terminal, graphing facilities, plugins, overhauled internals.
Java isn't bad in itself, but it has enabled morons to write programs.

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: 92
Posts: 3969
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

Why not visit my eBay shop? http://stores.ebay.co.uk/Majenko-Technologies
Replacement for the Arduino IDE: UECIDE - Proper serial terminal, graphing facilities, plugins, overhauled internals.
Java isn't bad in itself, but it has enabled morons to write programs.

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 509
Posts: 31452
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: