28176 Parallax Inc, 28176 Datasheet - Page 199
28176
Manufacturer Part Number
28176
Description
KIT PARTS PROCESS CONTROL W/TEXT
Manufacturer
Parallax Inc
Datasheet
1.122-28176.pdf
(330 pages)
Specifications of 28176
Accessory Type
Process Control
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® 2 and Board of Education
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 199 of 330
- Download datasheet (11Mb)
LOOP
' -----[ Subroutines ]-----------------------------------------------------
ReadSP:
SetADC:
ReadADC:
CalcTemp:
UpdateSP:
PlotPoint:
GOSUB PlotPoint
PAUSE 100
DEBUG CR,"!READ [(txtADCoffset),*,10]",CR ' obtain offset volt. in tenths
DEBUGIN DEC V_Offset
PAUSE 50
DEBUG "!READ [(txtADCspan),*,10]",CR
DEBUGIN DEC V_Span
PAUSE 50
RETURN
PWM ADC_Vminus, V_Offset * 255/50,100
PWM ADC_Vref, V_Span * 255/50,100
RETURN
LOW ADC_CS
SHIFTIN ADC_Dout, ADC_Clk, MSBPOST,[ADC_ByteValue\9] ' Clock in ADC data
HIGH ADC_CS
RETURN
TempF = (V_Span * 1000)/255 * ADC_ByteValue + (V_Offset * 1000)
RETURN
DEBUG "!O txtByteBin = ", BIN8 ADC_ByteValue,CR, ' Update w/ binary ADC val
DEBUG "!O txtTemp = [", DEC TempF,",/,100]",CR
RETURN
DEBUG "!FCIR (txtByte),(txtTemp),0.3A,(WHITE)",CR
PAUSE 100
DEBUG "!FCIR ,,,(BLUE)",CR
RETURN
√
√
√
Load StampPlot macro sic_pc_adc_span_offset.spm.
Verify that "ADC Span" is set to 5 and "ADC Offset" is set to 0 in StampPlot.
Connect and plot. A small blinking dot will appear on the screen, marking the
temperature.
"!O txtByte = ", DEC ADC_ByteValue,CR
' y = mx + b
' where y=temp,
' m = (change in output)/(change in input) = voltage Span/255
' x = ADC value read, b = offset, y = temperature in hundredths
' temperature = (Span/255)Byte + Offset
' Read ADC 0831
' Enable chip
' Disable ADC
' obtain span voltage in tenths
' Apply PWM to set offset volt.
' Apply PWM to set span voltage
' Update w/ decimal ADC val
' Update w/ temperature/100
' Plot white circle at
'
' Plot again in blue
byte, Temp as X,Y
Related parts for 28176
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: