28122 Parallax Inc, 28122 Datasheet - Page 269

KIT WHAT'S A MICRO:PARTS ONLY

28122

Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28122

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Core Processor
PIC16C57c
Flash
128 Bytes
Operating Supply Voltage
9 V
Board Size
31 mm x 16 mm
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Further Investigation
“Applied Sensors”, Student Guide, Version 2.0, Parallax Inc., 2003
“Basic Analog and Digital”, Student Guide, Version 2.0, Parallax Inc., 2003
“Understanding Signals”, Student Guide, Version 1.0, Parallax Inc., 2003
P1. Use the piezospeaker circuit from Figure 8-2, p. 220; pushbutton circuits from
Add a
Figure 4-20, p. 129.
' What's a Microcontroller - Ch8Prj01_PushButtonToneGenerator.bs2
' P4 Pressed:
'
' P3 Pressed:
'
'{$STAMP BS2}
'{$PBASIC 2.5}
DEBUG "Program Running!"
DO
LOOP
More sound effects, clicks, crickets are introduced using the piezoelectric
speaker.
discussion of math fractions. The speaker is also used as feedback for a variety
of sensor measurements.
The speaker is used to make a frequency generated by a 555 timer audible. The
BASIC Stamp measures the frequency of the tone with a
You can use this book to view the output of the
digital pulses, and as sine waves.
IF (IN4 = 1) THEN
ELSEIF (IN3 = 1) THEN
ENDIF
FREQOUT 9, 200, 2000
FREQOUT 9, 100, 3000
IF noteDot = 1 THEN noteDuration = noteDuration * 3 / 2
READ Dots + index, noteDot
IF noteDot = 1 THEN
ENDIF
DEBUG
noteDuration = noteDuration * 3 / 2
DEBUG "Dotted Note!", CR
The pentatonic and equal temperament scale are the basis for
command to the
2 kHz beep for 1/5 second. 2 kHz = 2000 Hz.
1/5 s = 1000 / 5 ms = 200 ms
3 kHz beep for 1/10 second. 3 kHz = 3000 Hz.
1/10 s =
1000 / 10 ms = 100 ms
IF...THEN
. Don't forget the
' 2000 Hz for 200 ms
' 3000 Hz for 100 ms
FREQOUT
COUNT
ENDIF
command, both as
command.
.

Related parts for 28122