Thanks for the schematic, BobK! I'll play around with it later, I won't be able to work on this for a few days.
Thanks for the schematic, BobK! I'll play around with it later, I won't be able to work on this for a few days.
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.
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
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
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?
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?
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 20:55.
Bookmarks