Thursday, April 8, 2010

Arduino controls Digital Temperature & Humidity sensors

Arduino Digital Temperature & Humidity sensors


As to environmental temperature and humidity measurement and control,Swiss Sensirion launched the SHT family integrated of digital temperature and humidity sensor,which is undoubtedly a very good choice. Although the prices is a littile more than common analog temperature or humidity sensor, it is good when you need to read an accurate temperature and humidity values. Besides it has high reliability and excellent long-term stability.

We designed this digital temperature and humidity sensor based on most widely used SHT10 from SHT family.

SHT10 used a two-wire serial interface similar to I2C (bidirectional 2-wire), so we need to use two connection cables to connect with the electronic building module.


To use the electronic building module with Arduino, you can download the appropriate library code in the official website, or download directly from here, We use "Arduino 0018"to test.Extract the files to the "libraries" directory under Arduino installation directory:




Connect DATA and SCK pins on electronic building module respectively to Arduino digital I / O, 10 pins and 11 pins, As follows:

#include?<SHT1x.h>

#define dataPin 10 // DATA
#define clockPin 11// SCK
SHT1x sht1x(dataPin, clockPin);

void setup()
{
?Serial.begin(9600);
?Serial.println("Starting up");
}

void loop()
{
float temp_c;
float temp_f;
float humidity;

// Read values from the sensor
temp_c = sht1x.readTemperatureC();
temp_f = sht1x.readTemperatureF();
humidity=sht1x.readHumidity();

// Print the values to the serial port
?Serial.print("Temperature: ");
?Serial.print(temp_c, DEC);
?Serial.print("C / ");
?Serial.print(temp_f, DEC);
?Serial.print("F. Humidity: ");
?Serial.print(humidity);
?Serial.println("%");

delay(2000);
}

here is output as follows:

Information about SHT10 - Digital Humidity Sensor

Economic relative humidity sensor for low cost applications.

SHT10 digital humidity and temperature sensor is the low cost version of the reflow solderable humidity sensor series. The accuracies have been opened to a level that guarantees a very competitive price. The capacitive humidity sensor is available up to high volumes and as every other sensor type of the SHTxx family, it is fully calibrated and provides a digital output.

Features :

  • Energy consumption:
80uW (at 12bit, 3V, 1 measurement/s)
  • RH operating range:
0~100% RH
  • T operating range:
-40 ~+125Centigrade (-40~+257F)
  • RH response time:
8 sec (tau63%)
  • Output:
digital (2-wire interface)

  • Maximal accuracy limits for relative humdity and temperature:

Accuracy relative humidity SHT10Accuracy  temperature SHT10

Delivery Conditions

Packaging: Tape & Reel, sealed in ESD bag

Please go to our Forum for further discussion

No comments:

Post a Comment