28122 Parallax Inc, 28122 Datasheet - Page 230
28122
Manufacturer Part Number
28122
Description
KIT WHAT'S A MICRO:PARTS ONLY
Manufacturer
Parallax Inc
Datasheet
1.28123.pdf
(340 pages)
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
- Current page: 230 of 340
- Download datasheet (6Mb)
Your Turn – Adjusting Frequency and Duration
ACTIVITY #2: ACTION SOUNDS
Many toys contain microcontrollers that are used to make action sounds. Action sounds
tend to involve rapidly changing the frequency played by the speaker. You can also get
some interesting effects from mixing two different tones together using the
command’s optional
Programming Action Sounds
Action and appliance sounds have three different components:
The pause is the time between tones, and you can use the
pause. The duration is the amount of time a tone lasts, which you can set using the
FREQOUT
tone. The higher the frequency, the higher the pitch, the lower the frequency, the lower
the pitch. This is, of course, determined by the
Example Program: ActionTones.bs2
ActionTones.bs2 demonstrates a few different combinations of pause, duration, and
frequency. The first sequence of tones sounds similar to an electronic alarm clock. The
second one sounds similar to something a familiar science fiction movie robot might say.
The third is more the kind of sound effect you might hear in an old video game.
' What's a Microcontroller - ActionTones.bs2
' Demonstrate how different combinations of pause, duration, and frequency
' can be used to make sound effects.
1. Pause
2. Duration
3. Frequency
√
√
√
√
√
command’s
Save TestPiezoWithFreqout.bs2 under a different name.
Try some different values for the
After each change, run the program and make a note of the effect.
As the
values of 1500, 2000, 2500 and 3000 to answer this question.
Enter and run ActionTones.bs2.
Freq1
Freq2
Duration
argument gets larger, does the tone’s pitch go up or down? Try
argument. This activity introduces both techniques.
argument. The frequency determines the pitch of the
Duration
FREQOUT
and
command’s
PAUSE
Freq1
command to create that
argument.
Freq1
argument.
FREQOUT
Related parts for 28122
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: