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

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
Example Program: SimpleSequentialProgram.bs2
' -----[ Title ]-----------------------------------------------------------
' Process Control - SimpleSequentialProgram.bs2
' Tests and illustrates sequential flow using a simple test circuit.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
Photo
LED
Buzzer
PB
PBVal
PhotoVal
A
Enter and run SimpleSequentialProgram.bs2.
Pushbutton Value
Pushbutton Value
AVOID TYPOS! All of the BASIC Stamp (.bs2) programs listed in this text are available
for free download from the Process Control product page at www.parallax.com.
PIN
PIN
PIN
PIN
VAR
VAR
Declarations
Initialization
Pushbutton
Set LED to
Display
Read
Start
and
0
5
10
13
Bit
Word
' Alias for photo resistor circuit on P0
' Alias for LED on P5
' Alias for buzzer on P10
' Alias for pushbutton on P13
' Bit variable to hold pushbutton value
' Word variable to hold RC Time value
1/4 Second Delay
Based on Photo
Photo Resistor
Photo Resistor
Sound Buzzer
Resistor Value
Measure
Display
A
Figure 1-4
Simple Sequential
Operation Flowchart

Related parts for 130-28176