1
\$\begingroup\$

I am designing an automated telephone circuit that will work with the PSTN line. I already had a question to detect the incoming ring signal. Now I want to detect whether the opponent person in the line terminated the call. Because I need to cut off the line connection automatically since there will be no one to hang the handset on my telephone side.

So far, I learned that there is a constant beep sound which is generated by the telecom company when the opponent hangs his/her phone and terminates the call. The beep sound has ~2V peak-to-peak and a 5V offset, you can see the DC measurement and AC measurement below:

DC Measurement:

enter image description here

AC Measurement:

enter image description here

I am trying to detect the existence of this signal by an MCU. So far, I tried using an optocoupler but the voltage is not enough for driving an optocoupler. I tried the optocoupler circuit because the input (LINE- and LINE+) must be isolated from the output (GPIO of the MCU).

Are there any already-tested solutions for this kind of applications? Do they just use circuits for amplifying or filtering this signal to detect its existence? I wanted to use a comparator by using the Line for both supply and input but I couldn't get it work.

\$\endgroup\$
4
  • \$\begingroup\$ Have you tried just a straight OP-amp, band pass filter and a comparator? \$\endgroup\$
    – winny
    Oct 15, 2018 at 7:48
  • \$\begingroup\$ I'm not really experienced with circuit designs, so I'm using the classic methods and try to understand the basics. How should I supply the op-amp? If I supply it with another isolated source, how can I give the input line signal to the op-amp with a reference to this source? \$\endgroup\$ Oct 15, 2018 at 7:54
  • \$\begingroup\$ Classic method would not involve an optocopler. How are you powering everything today? Do you need isolation from the PSTN? \$\endgroup\$
    – winny
    Oct 15, 2018 at 8:45
  • \$\begingroup\$ I have multiple power sources in this board by I don't know how to connect the line to an op-amp in this example. Because I can not combine the line- with the ground layer of the power source of the op-amp because there is a potential difference between them. Do you have any reference circuits? Even a block scheme is enough for me to understand what you mean. \$\endgroup\$ Oct 15, 2018 at 10:57

1 Answer 1

1
\$\begingroup\$

Something like this should get you started. You will need to iron out several details. I would suggest installing LTspice if you haven't already and simulate it to get the details.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
8
  • \$\begingroup\$ Better check it for 100 V AC bell ring voltage too. \$\endgroup\$
    – Transistor
    Oct 16, 2018 at 9:19
  • \$\begingroup\$ @Transistor Ah, yes! Several things to iron out here. Probably cheat and increase R1 value and have something to clamp before the op-amp. \$\endgroup\$
    – winny
    Oct 16, 2018 at 9:21
  • 1
    \$\begingroup\$ @abdullahcinar You're welcome, but wait until you have got it to work. As Transistor said, you probably need to recomputethe filter constants for higher R1 value and add a zener or similar to clamp the 100 VAC ringing. R3 and R4 will need tuning too to give reasonable detection threshold. \$\endgroup\$
    – winny
    Oct 18, 2018 at 8:59
  • 2
    \$\begingroup\$ I needed to use an external power supply for the opamp and comparator because the phone line was very sensitive to the current draw. The input voltage was decreasing more than my comparison tolerance. Additionally, I used an opamp as a comparator and make this circuit run in a single package IC. Thanks for the help! \$\endgroup\$ Nov 20, 2018 at 10:37
  • 1
    \$\begingroup\$ @abdullahcinar Good to hear and glad to be of help! \$\endgroup\$
    – winny
    Nov 20, 2018 at 10:53

Your Answer

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

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