28128 Parallax Inc, 28128 Datasheet - Page 126

no-image

28128

Manufacturer Part Number
28128
Description
KIT BASIC ANALOG/DIGI PARTS ONLY
Manufacturer
Parallax Inc
Datasheet

Specifications of 28128

Accessory Type
ADC, DAC
Product
Microcontroller Accessories
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Adjusting pot B, you should now be able to measure sound on a frequency range from
about 60 Hz to about 3.5 kHz. You can log frequency data as you adjust the pot with the
revised version of Program Listing 6.2 below.
' Basic Analog and Digital - PL6_2R1.bs2
' Frequency Meter
' {$STAMP BS2}
' {$PBASIC 2.5}
f
n
DO
LOOP
100 k
POT B
DEBUG CLS
FOR n = 0 TO 9
NEXT
PAUSE 1000
FOR n = 0 TO 9
NEXT
PAUSE 5000
COUNT 0, 1000, f(n)
DEBUG HOME, "Frequency:
DEBUG "Frequency at
DEBUG "
nc
VAR
VAR
2 k
seconds was ", DEC4 f(n), " Hz.", CR
Word(10)
Nib
2 k
0.1 µF
7
6
2
555 Timer
", DEC1 n
Vdd
Vss
8
1
", DEC4 f, " Hz.", CR, CR
4
3
P0
Figure 6-9
Astable Multivibrator
Circuit
With fixed R
R
adjusted with pot B.
B
is can still be
A
=4 k .

Related parts for 28128