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

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
Stand-Alone Control with the BASIC Stamp
Also included in the file distributions, but not used in the activities, are the following:
This macro and program pair work together for an interface, but the BASIC Stamp
performs the math. This allows the routines that read StampPlot to be commented-out,
and stand alone operation to be performed. Also, with StampPlot interaction, the speed is
somewhat greater.
calculations, some limits were imposed:
' -----[ Title ]-----------------------------------------------------------
' IncubatorPID-BS2.bs2
' Controls an incubator using PID control with StampPlot Interface
' BASIC Stamp performs the calculations
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ Declarations ]----------------------------------------------------
ADC_DataIn
TempF
LED
ADC_CS
ADC_Clk
ADC_Dout
ADC_Vminus
ADC_Vref
Heater
Fan
DriveTime
Err
TempDrive
BASIC Stamp 2 program IncubatorPID-BS2.bs2
StampPlot macro sic_pc_pid_b2_calc.spm
Values for gains are based on a scalar used (to get a K
and only limited values for gains are possible.
interface are updated with allowable values when the connection opens.
Maximum errors of 200% and drives of 200% in most cases.
Maximum integral sum of 30000.
An "Update" checkbox on the interface must be checked to have the BASIC
Stamp read any updated values (including temperature settings and drive time).
VAR Byte
VAR Word
PIN 0
PIN 13
PIN 14
PIN 15
PIN 11
PIN 10
PIN 5
PIN 0
VAR Byte
VAR Word
VAR Word
But in order for the BASIC Stamp to perform the necessary
' Analog to Digital Converter data
' Calculated temperature in tenths
' LED output pin
' ADC Chip Select pin
' ADC Clock pin
' ADC Data output
' Control ADC offset
' Control ADC Span
' Incubator Heater
' Incubator Fan
' Amount of time to drive heater in seconds
' Calculated error in tenths
' Working variable
Drop-down boxed on the
I
of 0.001) for example,

Related parts for 122-28176