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

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
Photo PIN 8
' -----[ Initialization ]--------------------------------------------------
' ***** Reads values from StampPlot on reset
PAUSE 1000
' Read time between evaluations (seconds * 4)
DEBUG CR,"!READ [(drpTime),*,4]",CR
DEBUGIN DEC Samples
PAUSE 50
' Read setpoint
DEBUG CR,"!READ (txtSetP)",CR
DEBUGIN DEC SetPoint
PAUSE 50
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
' -----[ Subroutines ]-----------------------------------------------------
ReadPhoto:
RETURN
' Adjust delay to approximate real time between evaluations
' Take samples and plot
IF Samples > 2 THEN
ELSE
ENDIF
' Evaluate and plot
GOSUB CalcError
GOSUB CalcProp
GOSUB MarkProp
' GOSUB CalcInteg
' GOSUB MarkInteg
' GOSUB CalcDeriv
' GOSUB MarkDeriv
GOSUB CalcTotal
GOSUB MarkTotal
HIGH Photo
PAUSE 10
RCTIME Photo, 1, PhotoVal
FOR Counter = 1 TO Samples
NEXT
GOSUB ReadPhoto
GOSUB PlotData
IF Samples > 4 THEN PAUSE Delay
GOSUB ReadPhoto
GOSUB PlotData
' Photo RC Network
' Allow connection to stabilize
' Charge photoresistor's RC network Cap
' Allow 10 milliseconds to charge fully
' Measure discharge time thru photoresistor

Related parts for 122-28176