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

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
Temperature is calculated to hundredths by the BASIC Stamp program, so that 149.22
degrees is stored as 14922. The
to using the value:
A typical string sent to StampPlot would be: [14922,/,100]. StampPlot will perform the
division prior to plotting or using the value in other ways.
Challenge 6-3: Monitoring Average Temperature
StampPlot maintains multiple values for each of 10 analog channels it can plot. The
macro code handles updating the textboxes. The BASIC Stamp could also use them to
show the current value in the status box above the plot:
StampPlot formatting may be used to limit and pad the number of decimal places used:
AINMIN0
Other values of interest:
AINVAL0
AINMAX0
AINAVE0
The "Clear Min/Max" button on StampPlot clears the stored values by issuing a "
instruction (Clear Min Max).
DEBUG CR,"!READ (swHeat)",CR
DEBUGIN DEC Heater
DEBUG "[", DEC TempF,",/,100]",CR
DEBUG "!STAT Current Temp: (AINMIN0)",CR
DEBUG "!STAT Current Temp: [(AINMIN0), FORMAT, 0.00]",CR
Add code to the
average temperature in the status box. Format the value for 3 decimal places.
Have StampPlot graph the average temperature by adding it as a second analog
value to be plotted. Replace the first line in
DEBUG "[", DEC TempF,",/,100], (AINAVE0)",CR
is the minimum value of analog channel 0.
– Last analog value for channel 0.
– Maximum analog value for channel 0.
– Average analog value for channel 0.
PlotTemp
PlotTemp
routine in IncubatorManual.bs2 to display the
subroutine has StampPlot divide by 100 prior
PlotTemp
with:
!CLMM
"

Related parts for 130-28176