SHT1x数字温湿度传感器

SHT1x Humidity and Temperature Sensor (SKU: DFR0066)

目录

1 概述
2 技术规格
3 应用范围
4 连接示意图
5 示例代码
6 相关文档

概述
瑞士Sensirion公司推出了SHT1x单片数字温湿度集成传感器。采用CMOS微加工专利技术(CMOSenstechnology),确保产品具有极高的可靠性和出色的长期稳定性。该传感器由1个电容式聚合体测湿元件和1个能隙式测温元件组成,并与1个14位A/D转换器以及1个2-wire数字接口在单芯片中无缝结合,使得该产品具有功耗低、反应快、抗干扰能力强等优点。
在对环境温度与湿度测量要求高的情况下使用,该产品具有极高的可靠性和出色的稳定性。与Arduino专用传感器扩展板结合使用,可以非常容易地实现与温度和与湿度感知相关的互动效果。

技术规格
传感器工作电压: 5v
接口简单(2-wire),响应速度快;
相对湿度和温度的测量兼有小数点输出;
全部校准,数字输出;
超低功耗,自动休眠;
出色的稳定性;
超小体积(表面贴装);
湿度范围0-100%RH,温度范围-40-128.8℃
测湿精度±4.5%RH,测温精度±0.5℃(25℃)。
使用Arduino SHT1x库可以直接驱动
模块尺寸:32X17mm

应用范围
精确的数据记录
变送器
自动化及过程控制
楼宇控制和HVAC
测试与测量
医疗

连接示意图
SHT1x z.png
示例代码
在运行样例程序前,请先安装SHT1x 库文件到您的Arduino libraries文件夹下

//Arduino Sample Code for SHT1x Humidity and Temperature Sensor
//www.DFRobot.com
//Version 1.0

#include <SHT1x.h>

// Specify data and clock connections and instantiate SHT1x object
#define dataPin 10
#define clockPin 11
SHT1x sht1x(dataPin, clockPin);

void setup()
{
Serial.begin(38400); // Open serial connection to report values to host
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);
}

相关文档 SHT1x手册 C语言样例代码 SHT1x 库文件

Nextredirectltr.png购买 SHT1x数字温湿度传感器(SKU: DFR0066)

标签: Arduino传感器