Grove - Tempture&Humidity Sensor (High-Accuracy &Mini) v1.0

From Wiki
Jump to: navigation, search

Introduction

This is a multifunctional sensor that gives you temperature and relative humidity information at the same time. It utilizes a TH02 sensor that can meet measurement needs of general purposes. It provides reliable readings when environment humidity condition in between 0-80% RH, and temperature condition in between 0-70°C, covering needs in most home and daily applications that don't contain extreme conditions. Specification


300px-Grove - Tempture&Humidity Sensor (High-Accuracy &Mini).jpg

Wide operating voltage range (3.3V ~ 5V) Low Power Consumption 350 µA during RH conversion 0 to 100% RH operating range Measuring Range: Humidity: 0% - 80% RH Temperature: 0 ~ 70 °C Accuracy: Humidity: ±4.5% RH Temperature: ±0.5°C I2C host interface Excellent long term stability

Applications

Industrial HVAC/R Thermostats/humidistats Micro-environments/data centers

Demonstration

This demo is going to show you how to read temperature and humidity information from this Grove - Temperature&Humidity Sensor (High-Accuracy &Mini) Sensor.


Temperature Sensor-xin.jpg


The Temperature and Humidity sensor is connecting to analog port I2C of Grove - Base Shield.

Download Grove_Temper_Humidity_TH02 library and install the library into Arduino libraries. /*

* Demo name   : TH02_dev demo 
* Usage       : DIGITAL I2C HUMIDITY AND TEMPERATURE SENSOR 
* Author      : Oliver Wang from www.simgin-chip.com
* Version     : V0.1
  • /
  1. include <TH02_dev.h>
  2. include "Arduino.h"
  3. include "Wire.h"

void setup() {

 Serial.begin(9600);        // start serial for output
 
 Serial.println("****TH02_dev demo by www.simgin-chip.com****\n");
 /* Power up,delay 150ms,until voltage is stable */
 delay(150);
 /* Reset HP20x_dev */
 TH02.begin();
 delay(100);
 
 /* Determine TH02_dev is available or not */
 Serial.println("TH02_dev is available.\n");    

}


void loop() {

  float temper = TH02.ReadTemperature(); 
  Serial.println("Temperature: ");   
  Serial.print(temper);
  Serial.println("C\r\n");
  
  float humidity = TH02.ReadHumidity();
  Serial.println("Humidity: ");
  Serial.print(humidity);
  Serial.println("%\r\n");
  delay(1000);

}

Note:

Upload it into your Arduino board and open the serial monitor to observe the temperature and relative humidity information of the environment


Result Picture1.jpg



File:TH02 SENSOR.pdf