130-28176 Parallax Inc, 130-28176 Datasheet - Page 128

KIT PARTS PROCESS CONTROL

130-28176

Manufacturer Part Number
130-28176
Description
KIT PARTS PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 130-28176

Accessory Type
Education Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Board of Education Full Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
' -----[ Title ]-----------------------------------------------------------
' Process Control - Tachometer.bs2
' Measures RPM of Fan
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
Opto_SW
Sampled
Opto_Count
RPM
SP_Data
CyclesPerRev
' -----[ Initialization ]--------------------------------------------------
PAUSE 500
DEBUG CR,"!RSET",CR,
Figure 4-19: Tachometer Wiring Diagram
"!CLRC",CR,
"!SPAN 0,10000",CR
Enter, save and run Tachometer.bs2.
Close the Debug Terminal.
PIN
PIN
VAR
VAR
VAR
CON
8
9
Word
Word
Word
1
' Opto-Reflector
' Indicator to indicate sampling
' Count from opto-reflective switch
' Calculated RPM
' Data returned from StampPlot
' Connection stabilizing time
' Reset StampPlot
' Clear any text on plot
' Set Y-Axis span

Related parts for 130-28176