Telephone interface questions


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Location
    Los Angeles, CA
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    I had to figure out how to interface a small SPDT relay (Radio Shack, PN 275-240) to my PIC, and was able to do a little test and turn on an LED, so I have that working. Now it's just a simple matter of hooking the relays to the the tip and ring lines.

    I'm unsure of how to connect all this up to the house phone such that I can dial out with the circuit when I want to, but upon disconnecting from the circuit I regain the house line. It's not clear to me from your schematic, BobK, how I implement that with phone jacks. Any tips?

    Thanks.

  2. #2
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Skarr,

    Take an unused phone cord and cut one end off and strip the red & green wires. Connect them to your project on the incoming telephone line. When you are ready to test, plug the other end of the phone cord into a phone jack. I wouldn't worry about seizing the phone line at this point in your development.

    In actuallity, to use line seizure properly you need to bring the outside incoming phone line to an RJ31X jack and then from there you bring the house phone side to the jack. The RJ31X jack has internal connections that maintain the phone line to house phones until you install the proper RJ45 plug into it. Then your equipment will have a DPDT relay that will maintain the connection until your project goes to call out.

    Digest this and I'll get back to you tonight when I get back from work.

    HTH,

    BobK

  3. #3
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Skarr,

    Look over the attachment and see if you understand the phone line connections as I have them shown. I put some additional circuitry on the drawing I got from MeLabs'LAB-XT schematic. Let me know if I can help anymore. Also let me know if you are interested in buying a used medical alert system. The kind with the large button on the front!

    BobK
    Attached Files Attached Files

  4. #4
    Join Date
    Mar 2010
    Location
    Los Angeles, CA
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Hey BobK, thanks a lot for the updated schematic. I understand the sequence you've described and the schematic now.

    I constructed your updated circuit (minus the "dial" relay) and tested a little circuit by switching two relays to light two LEDs to make sure I understood the connections and wrote the proper code (per your sequence), and that worked. However, when I connected the phone line to the circuit and executed the programs, I couldn't dial out and the relays just switched back and forth.

    I suspect there a grounding issue going on here and that the PIC is resetting itself somehow, but I have no idea how to troubleshoot this. And this only happens when the phone line is physically connected to the circuit; disconnect the line from the circuit jack and the relays work. Any advice?

  5. #5
    Join Date
    Mar 2010
    Location
    Los Angeles, CA
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    After doing some research I learned that I need bypass capacitors in my circuit: one across the PIC's Vss and Vdd pins, and one across the coil of each relay. I added 0.1 uF caps in these locations as well as across the + and - busses of my breadboard. Adding these caps reduced the erratic behavior of the relays but not completely, and I still can't dial out. The circuit works fine if the phone line is not connected to the circuit. Any thoughts?

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default

    What kind of power supply are you using for the PIC®?

    Does this P.S. have an earth connection?

    Is it Switching Power Supply?

    Is it the current supplied enough when relays are ON?

    Do all relays have Diodes for the back EMF?

    Try to have all ground points to one specific point to avoid ground loops.

    Are you sure that your Isolation transformer does indeed isolate the Line from the circuit?

    Post your latest code. May be something is wrong with the code. Ooh, and what about the MCLR of the specific chip? Is it connected to +Vdd? Check its level.

    And by the way, tere is no need to have 2 relays. One can serve as Dial and Hook at the same time.

    Ioannis
    Last edited by Ioannis; - 7th September 2010 at 19:55.

  7. #7
    Join Date
    Mar 2010
    Location
    Los Angeles, CA
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Thanks, Ioannis.

    I have a bench-top DC power supply (EZ Digital Co), grounded, not switching. Current is sufficient to switch relays as far as I can tell. All relays have protection diodes across the coils. MCLR is connected to Vdd. The circuit is essentially that shown in BobK's latest post.

    Not sure how to determine if the isolation transformer is isolating the line from the circuit. I did have this circuit working and dialing prior to adding the relays, if that is of any help.

    I think you may have hit on the grounding problem. My circuit is wired up all over the place on the breadboard. I'm going to rebuild it in a more sensible way and see if that helps. I'll post back when I'm done.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts