27297 Parallax Inc, 27297 Datasheet - Page 128

KIT STAMPWORKS WITH BS2-IC

27297

Manufacturer Part Number
27297
Description
KIT STAMPWORKS WITH BS2-IC
Manufacturer
Parallax Inc
Datasheet

Specifications of 27297

Lead Free Status
Contains lead
Product
Microcontroller Accessories
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
27297SQ
Manufacturer:
NS
Quantity:
4
Page 118 · StampWorks
The DTMF tones used in telephone systems are standardized, so instead of passing a
tone (or tones), the digit(s) to be dialed are passed as parameters. In actual dialing
applications, the DTMF on-time and off-time can be specified to deal with telephone
line quality.
This program also presents the BASIC Stamp’s basic musical ability by playing a
simple song. Constants for note frequency (in the first octave) and note timing
simplify the operational code. The Play_1_Note subroutine adjusts note frequency
for the specified octave. The musical quality can suffer a bit in the higher octaves
because of rounding errors. Using the ideal values shown, the constants table can be
expanded to create accurate musical notes. Keep in mind that each octave doubles
the frequency of a note.
Octave 2 = Octave 1 * 2
Octave 3 = Octave 2 * 2
Octave 4 = Octave 3 * 2
And so on…
Challenge
Convert (a portion of) your favorite song to play on the BASIC Stamp.

Related parts for 27297