0
\$\begingroup\$

I want to input some analog signals (audio) to my Arduino board. This signals are generated by a cellphone using the audio jack.

As you know we need to add an offset to the signal in order to stay always above 0 so arduino can read the value, and this is achieved very easy by a condenser and two resistors: (ignore the op-amp for the moment)

enter image description here

We just filter any offset on the input with the 10uF condenser and then add a 2.5V to the line using the resistors so the input always oscillate around 2.5.

Well this is ok if you are expecting always the same levels of audio signals, for example this circuit designed to "listen" audio from a microphone and so the op-amp can expect always values from -200mV to 200mV, and so we can set the correct amplification values.

But since my input is the audio jack of a cellphone, what if the volume of the cellphone is set to high or medium or low? What are the maximum voltage levels of an audio output jack of a cellphone? How can set an amplifier to amplify only when i need to or in other words, how can I guarantee a nice audio input on the arduino by regulating the input.

The circuit needs to be simple and ideally without the need of negative power supply.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ This may help you search: what you want is called Automatic Gain Control. \$\endgroup\$
    – Mels
    Commented Oct 1, 2013 at 12:44
  • \$\begingroup\$ You find out the range of the audio signal output of the cell phone jack by measuring it with an oscilloscope. \$\endgroup\$ Commented Oct 1, 2013 at 13:54

2 Answers 2

0
\$\begingroup\$

Most OpAmp's and Digital Input's of Micro's now have Clamping Diodes to protect against minor transient Electrical Over Stress (EOS). However, to protect against larger sustained EOS, external Clamping Diodes are recommended. See TI's e2e below picture.

enter image description here

Where the ATmega328's Input High Voltage is VCC+0.5v. This indicates there is such an internal clamp. Where it can not sustain much stress above this. Additionally, a like Diode clamping pair should be on the Input to the Micro.

  1. EOS from the input is clamped by the first Diodes into the V+'s Zener, in the above picture
  2. Over amplification of the OpAmp's output would then be clamped by a like diode pair on the input to the A2D.
\$\endgroup\$
0
\$\begingroup\$

What is the voltage range of a standard headphone jack from a phone?

That doesn't quite answer the question although it does describe "Line level", which is roughly 1 volt peak-to-peak. However, I suspect the simple answer is that the headphone output amplifier will not be able to exceed the voltage of its own power rails, which for a lithium battery will be about 4V.

You may get better results by adding a resistor across the headphone jack to provide the impedance expected by the headphone output amp, somewhere in the 100 ohm to 1k region. Try this if you are experiencing audio distortion.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.