122-28176 Parallax Inc, 122-28176 Datasheet - Page 105

GUIDE STUDENT PROCESS CONTROL

122-28176

Manufacturer Part Number
122-28176
Description
GUIDE STUDENT PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-28176

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Example program: BatchMix.bs2
' -----[ Title ]-----------------------------------------------------------
' Process Control - BatchMix.bs2
' Control System for filling, mixing and draining a vat
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
Stop_SW
Start_SW
Opto_SW
Drain
Mix
Fill
Total_Mixed
Mix_Seconds
X
Vat_Volume
' -----[ Initialization ]--------------------------------------------------
LOW Drain
LOW Mix
LOW Fill
Enter and run program BatchMix.bs2.
PIN
PIN
PIN
PIN
PIN
PIN
VAR
VAR
VAR
CON
1
2
8
9
10
11
Word
Byte
Byte
25
' PB1
' PB2
' Opto-Reflector
' Green LED
' Yellow LED
' Red LED
' Total amount of solution mixed
' Time to mix
' General Counting
' Size of Vat
' Set initial states
Figure 4-10
Batch Sequence
Wiring Diagram
Please note that the
ADC circuit is not
used in this activity
but is left on for future
use.

Related parts for 122-28176