Connecting a phoneline to the propeller - Help?
Matthew Burmeister
Posts: 49
How would i connect the propeller to a phone line? i saw the BS2 circuit in Nuts and Volts, But i don't have a transformer or zener diodes.
Post Edited (Matthew Burmeister) : 6/6/2009 6:58:10 PM GMT
Post Edited (Matthew Burmeister) : 6/6/2009 6:58:10 PM GMT
Comments
Dial the phone, detect touchtones, etc.
BTW: Ring voltage can potentially fry your Propeller.
(and smarts if you catch it in the teeth. {don't ask.})
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
If you want the prop to actually be able to pick up and put data on the line, you will need to use transistors, or even better opto-isolators. The phone line is a current loop; you pick the phone up ("off hook") by shorting tip and ring through about a 300 ohm resistor, and you modulate the outgoing signal by varying the resistance. The Prop could probably emulate one of the old 300 or 1200 baud modems pretty easily, but the faster protocols involve some pretty fancy modulation which really isn't worth the effort when you can get used external 56K Hayes compatible modems for ten bucks at the flea market.
@OBC: I defy your plead not to ask. I am very curious.
P.S. On the Basic Stamp diagram it uses a 220V "Sidicator". What is that??????
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontroled.
I know whereof OBC speaks on ring voltage, since I used to work on phone equipment. The standard voltage on a phone line that is on-hook (not in use) should be around 40 VDC. When you pick up the phone, it should drop to around 20VDC. In practice this varies wildly, but nominally neither of these voltages will shock you.
But when the phone rings, the ring signal is over 100VAC superimposed on the line. (If you are using a line set that can convert audio on an on-hook line, it will also make an EXTREMELY LOUD NOISE.) Working on phone stuff it's easy to fall into the habit of touching conductors without worrying about shock, but when you happen to grab one that's ringing it WILL GET YOUR ATTENTION. This is why OBC warns of it frying your propeller; it can pack some decent current since that signal was meant to turn a mechanical motor in a mechanical ringer mechanism back in the day, but if you use large enough series resistors you can safely hook your prop up straight to the phone line. You'll need to do that anyway to drop the nominal line voltage to something between 0 and 3.3V for threshold detection or ADC.
I never thought about why the ring voltage would be so high... but that makes since now.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontroled.
I used to have the bad habit of stripping wire with my teeth...
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontroled.
i already made a DTMF and pulse dialing object, but can i get a link to the spectrum analyzer?
Post Edited (Matthew Burmeister) : 6/6/2009 9:05:48 PM GMT
i have a digital phone modem, so i'll just disconnect it. [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Misses 8 bit computing
There are two basic ways to deal with the AC. One is to rectify it and put it on another pin through an even bigger dropping resistor or voltage divider; this is what most commercial solutions do to get "hey the phone is ringing" as a digital signal. The other is to leave a little headroom in the voltage divider feeding your ADC and just treat it like a very big analog signal that comes along sometimes. It IS AC at about 20 Hz (though that varies too, it's never as high as 60 Hz or as low as 10 Hz) so if your dividers give ADC at most half its max output value with any normal line event, and you suddenly see it max out periodically with that kind of period, hey the phone is ringing.
Can't find the it in the object exchange, nor could i find it by searching. help?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
dial phones, plus detect touchtones
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
Post Edited (Matthew Burmeister) : 6/7/2009 12:49:39 AM GMT
FYI: I designed many modems in the 80's and 90's including the Apple 2400.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, SixBladeProp, website (Multiple propeller pcbs)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
I always found that a nice peppermint hurt less.
Wow Nice!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
Perhaps there is a circuit in one of the magazines. The impedance matching is extremely important as the modem speeds were increased, especially 9600 to 56000 baud.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, SixBladeProp, website (Multiple propeller pcbs)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Have a look at these: The firsts two are DAA the third is a complete single-chip modem
enjoy
For a simple 300 or 1200 modem it is probably doable with the Prop. However, without a good understanding of mathematics and dsp programming, much higher than this will not likely be doable.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, SixBladeProp, website (Multiple propeller pcbs)
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
I'm thinking of using a relay (radio shack doesn't carry optos). is this the correct isolation transformer i should use? www.radioshack.com/product/index.jsp?productId=2103994
anyways, i have a small budget. (being 15 doesn't help at all)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
Post Edited (Matthew Burmeister) : 6/8/2009 8:55:21 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontroled.
Thanks microcontrolled!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Disclaimer: I cannot guarantee any information i post is accurate, but most of the time, it is correct.
Misses 8 bit computing
the advantage in using single-chip DAAs is the approvals(certifications) they have. In case of large scale production it is cheaper to build the I/F circuit by yourself and then get the approvals the telecom companies requires to let you connect to their lines.
When the production quantity is low or single it is simpler to use an already approved DAA. (These modules are not IC. They are hybrid modules with build-in isolation transformers and any needed components). And because your final stage is approved also your product is approved. When you consider risks of damage to your product (propeller) you should also consider the risks of damages to telecom network (which reparation will be billed to you)
CH1786 - Cermetek modem. (this is a 5v model)
http://www.digchip.com/datasheets/download_datasheet.php?id=231400&part-number=CH1786
INTRODUCTION
The CH1786 family of modems are a full function,
FCC Part 68 approved 2400bps modem. These
modems provide a fast, easy and flexible way to
integrate a modem into any OEM product while
utilizing the minimum amount of PCB space (1.01 ”x
1.27 ”x 0.52 ”[noparse];)[/noparse]. The CH1786 family only requires two
external interfaces: a CCITT V.24 serial interface that
can be routed directly to a UART, and a Tip and Ring
interface which goes directly to an RJ-11 jack for the
PSTN line connection. The CH1786 can be
controlled with industry standard AT commands and,
hence, is compatible with available industry
communication software.
A few posts back you have·his big brother: the CH1788