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

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
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 130-28176