28018 Parallax Inc, 28018 Datasheet - Page 5
![MODULE SENSOR TEMP+HUMIDITY](/photos/19/50/195082/mfg_28018_sml.jpg)
28018
Manufacturer Part Number
28018
Description
MODULE SENSOR TEMP+HUMIDITY
Manufacturer
Parallax Inc
Series
Sensirion SHT11r
Specifications of 28018
Output Type
Digital - 2-Wire
Sensor Type
Humidity and Temperature
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
28018879
Manufacturer:
st
Quantity:
8 111
Company:
Part Number:
28018883
Manufacturer:
st
Quantity:
3 791
Part Number:
28018883
Manufacturer:
ST
Quantity:
20 000
' -------------------------------------------------------------------------
' Subroutines
' -------------------------------------------------------------------------
' connection reset: 9 clock cyles with ShtData high, then start sequence
'
SHT_Connection_Reset:
' generates SHT11 "start" sequence
'
' ShtData
'
' Clock
'
SHT_Start:
' measure temperature
' -- celcius = raw * 0.01 - 40
' -- fahrenheit = raw * 0.018 - 40
'
SHT_Measure_Temp:
Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003
LOOP
END
SHIFTOUT ShtData, Clock, LSBFirst, [$FFF\9]
INPUT ShtData
LOW Clock
HIGH Clock
LOW ShtData
LOW Clock
HIGH Clock
INPUT ShtData
LOW Clock
RETURN
GOSUB SHT_Start
ioByte = ShtTemp
GOSUB SHT_Write_Byte
GOSUB SHT_Wait
ackBit = Ack
GOSUB SHT_Read_Byte
soT.HighByte = ioByte
ackBit = NoAck
GOSUB SHT_Read_Byte
PAUSE 1000
"rhLin.... ", DEC (rhLin / 10), ".", DEC1 rhLin, "% ", CR,
"rhTrue... ", DEC (rhTrue / 10), ".", DEC1 rhTrue, "% "
_____
___|
___
|_______|
|___|
___
_____
|___
' let pull-up take high
' alert device
' temperature command
' send command
' wait for measurement
' another read follows
' get MSB
' last read
' get LSB
5