28119 Parallax Inc, 28119 Datasheet - Page 46

KIT UNDERSTANDING SIGNALS

28119

Manufacturer Part Number
28119
Description
KIT UNDERSTANDING SIGNALS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28119

Lead Free Status
Contains lead
Accessory Type
Oscilloscope
Interface Type
USB
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
281197-2
Manufacturer:
TE
Quantity:
20 000
Part Number:
281197-2
Manufacturer:
MOLEX
Quantity:
2 500
Triggering a Sine Wave with TestPiezoWithFreqout.bs2
' Understanding Signals - TestPiezoWithFreqout.bs2
' Send a tone to the piezo speaker using the FREQOUT command.
'{$STAMP BS2}
'{$PBASIC 2.5}
DO
LOOP
With the CH1 probe connected you will see the signal shown in Figure 3-6. The
command in this program generates a 200 Hz signal for 60000 ms (1 minute) from I/O
pin 9. However, since the command is nested in a
repeated and the signal is generated continuously.
FREQOUT 9, 60000, 200
Run the program TestPiezoWithFreqout.bs2.
CH1
CH2
Horizontal Dial
Trigger Source
Trigger Edge
Trigger Mode
Run / Stop Mode
Trigger Voltage
FREQOUT
FREQOUT
a sine wave when filtered. This sine wave can be translated into sound with a piezo
speaker, assuming the frequency is within the audible range. The
requires the following arguments: pin (0-15) is the I/O pin used, duration (1-65535) is the
length of the tone in ms., freq1 is the frequency in Hertz, freq2 is an optional second
frequency, also in Hertz. For detailed information, open the BASIC Stamp Windows Editor
Help file.
pin, duration, freq1 {,freq2}.
is a BASIC Stamp command that generates a series of pulses that approximate
2 V / division
Off
1 ms / division
Channel 1
Rising
Auto
Continuous
2 V
DO
..
LOOP
, the command is immediately
FREQOUT
Figure 3-5:
Configuration for
the OPTAscope to
measure sine
waves
command
FREQOUT

Related parts for 28119