I was looking for a way to detect a line-in device transmitting audio. I got the idea to use an ADC for this from this question: How to detect line level audio signal?

I already have a 4-channel ADC (the ADS1015) on my board which uses only one channel to read from a resistor network. So, I still have three available, but is this a good idea?


What should I expect line-level audio to be, worst case? Less than 5 V, 10 mA?

From what I understand from the datasheet, the ADS1015 is tolerant of analog voltages up to 5.5 V, 10 mA continuously and 100 mA momentary, but it seems not to be able to handle negative voltages:

From the datasheet, page 20:

Although the ADS1013/4/5 can read bipolar differential signals, they cannot accept negative voltages on either input. It may be helpful to think of the ADS1013/4/5 positive input as noninverting, and of the negative as inverting.

Now, I don't fully understand this. Will negative voltages damage the circuit? Or can't they be measured? In the latter case, for detection purposes, I guess it's OK to measure positive voltages only? In the first case, can we filter out the negative voltages?


I have a three-channel passive summing box. Can I simply hook it up to the ADC from there (see schematic)? Or should I add filters, safety, and/or, ...?

enter image description here


  • The programmable gain is currently set to "2/3".
  • I read the values from a Python script, so I can be "smart" with the detection, for example filter out fluke spikes.
  • Any tips to make it robust (prevent false positives) and somewhat idiot proof (the ine-in is on my car's dashboard, who knows what stuff people plug in when I'm not looking)?
  • 1
    \$\begingroup\$ Old question but a logic level can be created easily with a diode cap amplitude detector with a transistor and hold cap with some decay time constant like 3 s. This is the trivial solution \$\endgroup\$ Jan 18, 2021 at 4:27
  • \$\begingroup\$ @TonyStewartSunnyskyguyEE75, it's been a while since I have worked on this project. Thanks for your input. I should really blow the dust off of this one soon ;-) \$\endgroup\$
    – svenema
    Jan 19, 2021 at 16:35

1 Answer 1



simulate this circuit – Schematic created using CircuitLab

You will need to add a circuit like the one below on each input so that the ADC input will not go below ground. There are protection diodes built into the part that will clip the lower half of the signal otherwise.

enter image description here

The signal to the ADC will be centered at 1/2 of the V+ (2.5 V) and can swing +/-2.5 volts before the audio starts to get distorted.

  • \$\begingroup\$ "You will need to add a circuit like the one below on each input", I think you mean "above"? The circuit below is the chip itself. \$\endgroup\$
    – svenema
    Oct 28, 2017 at 16:43
  • \$\begingroup\$ The first circuit is not for protection. It is just there to give the input of the A/D a center reference. As far as protection, all you need is to place a resistor in series with the A/D input. The existing diodes in the chip will clamp the signal. The series resistance limits the current the diodes will need to pass, and is where the remaining voltage will be dropped. \$\endgroup\$
    – Rudy
    Jan 12, 2019 at 21:19

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.