Shop OBEX P1 Docs P2 Docs Learn Events
Basic Stamp Phone Dialer!!! — Parallax Forums

Basic Stamp Phone Dialer!!!

Techdude0Techdude0 Posts: 1
edited 2010-02-19 22:32 in BASIC Stamp
I found out recently that with the basic stamp homework board, i can program it to play the tones a phone makes.
here's how it works,
the original freqout is like this,
FREQOUT 9, 200, 1200
here's is a freqout for a phone number (just 5):
FREQOUT 9, 200, 770, 1336.
just customize the last two numbers to the Hz frequency.
if you want the frequencies, they are right here : http://en.wikipedia.org/wiki/Dual-tone_multi-frequency
there is a map the shows 2 sets of Hz frequencies and use the two numbers for one number and put it in the FREQOUT code.
use this code to dial your phone in case of an emergency or to prank call someone with it on a payphone or make a blue box with it!!
here is a sample code for a 555 number:

' {$STAMP BS2}
' {$PBASIC 2.5}
FREQOUT 9, 200, 770, 1336 "5"
PAUSE 50
FREQOUT 9, 200, 770, 1336 "5"
PAUSE 50
FREQOUT 9, 200, 770, 1336 "5"
PAUSE 50
FREQOUT 9, 200, 770, 1336 "5"
PAUSE 50
FREQOUT 9, 200, 852, 1209 "7"
PAUSE 50
FREQOUT 9, 200, 770, 1336 "5"
PAUSE 50
FREQOUT 9, 200, 770, 1336 "5"
end

Okay here's the deal, do not use this for illegal uses, you'll get arrested for it! this is for
educational purposes only!! i am not responsible if you get in trouble with it so don't be stupid and use your brain!
you might also need a good speaker for the tones being played or just attach it to the phone line.
Thank you for reading and have fun and be safe!

Post Edited (Techdude0) : 2/19/2010 10:28:19 PM GMT

Comments

  • Tracy AllenTracy Allen Posts: 6,662
    edited 2010-02-19 22:32
    Hi Techdude0,

    Nice work, and welcome to the forum! But I'll have to pop your bubble a little bit -- Check out the DTMFOUT command in the Stamp manual!
    DTMFOUT pin, OnTime, OffTime, Tone1, Tone2

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tracy Allen
    www.emesystems.com
  • legoman132legoman132 Posts: 87
    edited 2010-02-19 22:32
    Are you aware of the DTMFOUT command?
    Syntax: DTMFOUT Pin, {OnTime, OffTime,} [noparse][[/noparse]Tone {, Tone...}]

    {} = optional
    Tone = number to be dialed
Sign In or Register to comment.