Electronic – How to improve this analog interface for only counting pulses through audio port

analogaudiopulse

I want to count pulses through sound-card of a PC or a smartphone's audio port.
Two different pulses will originate from two LM331 and I can scale them to 1V or any amplitude.

I want to feed these pulses to the audio port of a sound card's channels. Then the rest is to software to count the pulses.

So far I plan to use this analog interface between the pulses and the audio jack and sound-card:

enter image description here

Do you think the topology is correct? How can I improve this interface for the noise? I am only interested to count pulses not to view any other signal.

Edit:
R1 R2 sets the voltage at X.

enter image description here

Best Answer

Check what the input impedance of the sound card is. It may be that the signal will get significantly attenuated by the 22 kΩ in series. A common input impedance for "line" inputs is 600 Ω, for example.

I'd start with 1 kΩ in series followed by just two back to back diodes to ground. ±700 mV is still a substantial signal for line level audio, and totally overwhelming for a microphone input.

If you only have a microphone input, then add another resistor divider after the clipping diodes. ±10 mV is a strong microphone signal.

Related Topic