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

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
Program Discussion
The
retrieves data from StampPlot, which is used in setting the ADC span and offset based on
desired temperature range. In this program, values are read and used slightly differently
than in the previous activity. The
instead of 5 for 0.5 V as it was in Activity #2. This affects the math for calculating
temperature and PWM. The span is calculated by having StampPlot return the difference
between the upper and lower temperature settings.
The Fan and Heater controls are read as a 1 (on) or 0 (off), based on whether the virtual
switch is up or down. These values are used to directly control the BASIC Stamp
outputs. For example,
of the BJT powering the resistor.
Figure 6-20 Manual Control of Incubator
ReadSP_Temps
DEBUG "!READ [(txtTMax),-,(txtTMin)]",CR
DEBUGIN DEC V_Span
subroutine is run when the program is initialized. This routine
Heater
, in the code below, is assigned to Pin 5, providing control
V_Offset
variable would be 50 (for 50 °F) in this case

Related parts for 122-28176