PDA

View Full Version : Basic Stamp Phone Dialer!!!



Techdude0
02-20-2010, 05:50 AM
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

Tracy Allen
02-20-2010, 06:32 AM
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 (http://www.emesystems.com)

legoman132
02-20-2010, 06:32 AM
Are you aware of the DTMFOUT command?
Syntax: DTMFOUT Pin, {OnTime, OffTime,} [Tone {, Tone...}]

{} = optional
Tone = number to be dialed