Shop OBEX P1 Docs P2 Docs Learn Events
Keypad DTMF program — Parallax Forums

Keypad DTMF program

LuckyLucky Posts: 98
edited 2010-04-28 20:40 in Propeller 1
Hey everyone! I now present to you my Keypad(3x4) DTMF program which will make all the sounds you hear when pressing regular phone key numbers. It also displays the number/symbol pressed on the parallax serial terminal. The program is self-explanatory and is commented well. Enjoy!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"The man who smiles when things go wrong has thought of someone to blame it on."


-Lucky[size=-1][/size]

Comments

  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2010-04-28 01:46
    Wow! Can it dial the phone? This is what I've been waiting for for years!!!! :-D

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my new website!!

    Use the Propeller icon!! Propeller.gif

    Follow me on Twitter! Search "Microcontrolled"
  • LuckyLucky Posts: 98
    edited 2010-04-28 01:49
    Sadly, not yet. It just replicates the sound and reports the pressed button to the terminal. Maybe v2.0 though [noparse];)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "The man who smiles when things go wrong has thought of someone to blame it on."


    -Lucky[size=-1][/size]
  • KyeKye Posts: 2,200
    edited 2010-04-28 02:47
    Illegal....

    "Wow! Can it dial the phone? This is what I've been waiting for for years!!!! :-D"

    Just so you know, dial the phone at your own risk.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • FlyingFishFingerFlyingFishFinger Posts: 461
    edited 2010-04-28 02:55
    Not necessarily illegal, just get a DAA.
    Unfortunately, they're not too cheap, normally somewhere between $10 and $30, depending on the features and other specs...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    UC Berkeley '12 EECS
    CalSol: UC Berkeley Solar Car
    http://calsol.berkeley.edu
    KJ6AWU
  • LuckyLucky Posts: 98
    edited 2010-04-28 03:39
    Would anyone be interested in a texting like feature for the program, where if you press the same button again it goes from 2 ->a then another press is a -> b, b->c, c->2. Also might add a buffer to store the last few digits pressed. Special key combinations couldalso be recognized such as 911, 411, *82, etc.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "The man who smiles when things go wrong has thought of someone to blame it on."


    -Lucky[size=-1][/size]
  • mctriviamctrivia Posts: 3,772
    edited 2010-04-28 14:53
    if it plays DTMF then it can dial a phone. Simplist way hold speaker up to a land line and start hitting buttons. If you want to do it as a complete circuit you can rip the transformer out of an old modem and use that to connect the prop to the phone line.

    Just be careful. Usually the blue pair of wires is the only wires in use inside a telephone cable but the other wires can be in use if you have more then 1 line. the 2 wires in each pair are called the tip and ring. The ring wire will be sitting at -48V. however if some one calls you a 90VAC signal gets modulated over that line while the ringer is going off. These voltages can be dangerous and trust me the 90VAC hurts.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Lots of propeller based products in stock at affordable prices.

    Free shipping on orders over $100 and a Free LCD screen for orders over $200. Today Only(April 28th, 2010)

    propmodule.com will be closed May 1-10th. Orders made in that time will be shipped on the 11th.
  • JRetSapDoogJRetSapDoog Posts: 954
    edited 2010-04-28 19:27
    Yeah, I also wondered about the dialing thing.· I recall using a dual-tone multifrequency (DTMF) chip from Radio Shack that, with the output sent to a speaker, would dial a phone when held up to the mouthpiece (accoustically coupled).· In what sense do you mean that it won't dial a phone, just for lack of a speaker?··Or did you mean because it's not directly coupled?· Or is something else problematic?· Anyway, is it producing sweet tones?· I believe that there is a total of 16 unique·tone-pairs (made from combining 1 of 4 tones with 1 of 4 other tones), though often only 12 tone-pairs are used, with regulations possibly applying to the other four.· Don't guess it'd be illegal to use the standard 12, though.· And I think the phone company just owns the equipment to the demarcation box/block or whatever it's called (in the basement, etc.), so one could connect·a home-made dialer, I would think.· Anyway, those blended tones have·kind of a pleasant sound, distinctive, anyway.·
  • mctriviamctrivia Posts: 3,772
    edited 2010-04-28 20:40
    yes the phone company only owns the equipment up to the demarcation point. However with hold coper based trunk lines it is possible to shut down whole parts of a cities phone system just by running high voltages over the wires. Fiber optic systems make this attack meaningless and I am sure most equipment now a days has protection against this as it was well documented in the anarchists cook book.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Lots of propeller based products in stock at affordable prices.

    Free shipping on orders over $100 and a Free LCD screen for orders over $200. Today Only(April 28th, 2010)

    propmodule.com will be closed May 1-10th. Orders made in that time will be shipped on the 11th.
Sign In or Register to comment.