28018 Parallax Inc, 28018 Datasheet
![MODULE SENSOR TEMP+HUMIDITY](/photos/19/50/195082/mfg_28018_sml.jpg)
28018
Specifications of 28018
Available stocks
Related parts for 28018
28018 Summary of contents
Page 1
... Data Clock 4.7 kΩ Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003 599 Menlo Drive, Suite 100 Rocklin, California 95765, USA Office: (916) 624-8333 Fax: (916) 624-8003 SHT11 Sensor Module Ω ...
Page 2
... File...... SHT11_Demo.BS2 ' Purpose... Interface to Sensirion SHT11 temperature/humidity sensor ' Author.... Parallax ' E-mail.... support@parallax.com ' Started... ' Updated... 19 JUL 2003 ' ' {$STAMP BS2} ' {$PBASIC 2. ========================================================================= ' ------------------------------------------------------------------------- ' Program Description ' ------------------------------------------------------------------------- ' 2 Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003 When running, the program output will appear as ...
Page 3
... CON 0 Yes CON 1 DegSym CON 186 ' ------------------------------------------------------------------------- ' Variables ' ------------------------------------------------------------------------- Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003 This program uses advanced math features of ' bi-directional data ' read temperature ' read humidity ' status register write ' status register read ' soft reset ' degrees symbol for DEBUG 3 ...
Page 4
... DEC (tF / 10), ".", DEC1 tF, DegSym, " " GOSUB SHT_Measure_Humidity DEBUG CRSRXY "soRH..... ", DEC soRH, CR, 4 Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003 ' data from/to SHT11 ' ack/nak from/to SHT11 ' timeout delay timer ' timeout status ' temp counts from SHT11 ...
Page 5
... ShtTemp GOSUB SHT_Write_Byte GOSUB SHT_Wait ackBit = Ack GOSUB SHT_Read_Byte soT.HighByte = ioByte ackBit = NoAck GOSUB SHT_Read_Byte Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003 _____ |___ ' let pull-up take high ' alert device ' temperature command ' send command ' wait for measurement ...
Page 6
... RETURN ' sends "status" ' SHT_Write_Status: GOSUB SHT_Start ioByte = ShtStatW 6 Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003 ' convert to tenths C ' convert to tenths F ' alert device ' humidity command ' send command ' wait for measurement ' another read follows ' get MSB ' last read ...
Page 7
... FOR toDelay = 1 TO 250 IF (ShtData = 0) THEN EXIT PAUSE 1 NEXT IF (toDelay = 250) THEN timeOut = Yes RETURN Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003 ' send command ' alert device ' write to status reg cmd ' send command ' only one byte to read ' send byte ...
Page 8
... The following subroutines can be used to switch the SHT11 heater on and off. Heater_On: status = %00000100 GOSUB SHT_Write_Status RETURN Heater_Off: status = %00000000 GOSUB SHT_Write_Status RETURN 8 Parallax, Inc. • Sensirion SHT11 Sensor Module (#28018) • 07/2003 ' reset the connection ' reset command ' only one byte to send ' send it ' wait at least heater bit = On ' heater bit = Off ...