HTU21D Humidity Sensor Hookup Guide

Similar documents
Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Adafruit SHT31-D Temperature & Humidity Sensor Breakout

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

MCP4725 Digital to Analog Converter Hookup Guide

Hardware Connections between Arduino and IMU Nori Wilkins Apr. 5, 2013

UniPi technical documentation REV 1.1

TSL2561 Luminosity Sensor

CAN-Bus Shield Hookup Guide

DS1307 Real Time Clock Breakout Board Kit

AN2680 Application note

RN-52 Bluetooth Hookup Guide

PN532 NFC RFID Module User Guide

How To Use An Ams 5812 Pressure Sensor With A Usb Starter Kit

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

DHT11 Humidity & Temperature Sensor D-Robotics UK (

KTA-223 Arduino Compatible Relay Controller

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

Designing VM2 Application Boards

Temp. & humidity Transmitter Instructions

DS Wire Digital Thermometer and Thermostat

Tiny Arduino Music Visualizer

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Microprocessor Project Laboratory

ABB Drives. User s Manual HTL Encoder Interface FEN-31

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

DS1621 Digital Thermometer and Thermostat

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

1-Port R422/485 Serial PCIe Card

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Adafruit Si4713 FM Radio Transmitter with RDS/RDBS Support

Pololu DRV8835 Dual Motor Driver Shield for Arduino

DS1621 Digital Thermometer and Thermostat

Advanced Data Capture and Control Systems

Temperature Sensors. Resistance Temperature Detectors (RTDs) Thermistors IC Temperature Sensors

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

DS18B20 Programmable Resolution 1-Wire Digital Thermometer

Green House Monitoring and Controlling Using Android Mobile Application

DS1307ZN. 64 x 8 Serial Real-Time Clock

Sensing element Polymer humidity capacitor Operating range humidity 0-100%RH; temperature -40~80Celsius Accuracy

Real Time Clock USB Evaluation Board V3.0

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

MAX6683 Evaluation System/Evaluation Kit

1.5" & 2.1" Monochrome 128x64 OLED Display Module

2.3" Monochrome 128x32 OLED Display Module

Wireless Temperature

Aosong(Guangzhou) Electronics Co.,Ltd

NC-12 Modbus Application

BUILDING INSTRUCTIONS

USB / Data-Acquisition Module NOW LEAD-FREE

2.2" TFT Display. Created by Ladyada. Last updated on :15:09 PM EDT

Options for ABB drives, converters and inverters. User s manual FDPI-02 diagnostics and panel interface

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

User Manual Weather station V 0.2

User and installation manual

DATASHEET. ADAM Arduino Display Adaptor Module. Arduino Compatible Shield P/N: 4Display-Shield-FT843 For the 4D Systems 4DLCD-FT843 Display

User manual Compact Web PLC WP240 series IEC-line

ECEN 1400, Introduction to Analog and Digital Electronics

Adafruit ATWINC1500 WiFi Breakout

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

GPS/GLONASS SiRFstarV Evaluation Kit EVA5100-A

TEECES DOME LIGHTING SYSTEMS

IR Communication a learn.sparkfun.com tutorial

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

PICAXE DATALOGGER (AXE110P)

Monitor Your Home With the Raspberry Pi B+

EZIO-4THIE * External CJC Sensor** (National LM19)

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

Surveillance System Using Wireless Sensor Networks

Microcontroller to Sensor Interfacing Techniques

How To Use A Digital Red Led Auto Thermometer Panel Meter

Matrix and 7-Segment LED Backpack with the Raspberry Pi

DISCONTINUED. AtlasScientific. as of 10/21/13. E.C. Circuit. Biology Technology. Features

WEB log. Device connection plans

Adafruit LSM9DS0 Accelerometer + Gyro + Magnetometer 9-DOF Breakouts

MidNite Solar Communication Adapter. User Manual. P/N Rev-A

CryptoAuth Xplained Pro

HP03 BAROMETER MODULE Version: 1.1

WICE-SPI Hardware Operation Manual

Digital-output relative humidity & temperature sensor/module DHT22 (DHT22 also named as AM2302)

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

CHAPTER 11: Flip Flops

DS1821 Programmable Digital Thermostat and Thermometer

Fiber Optic Monitor and Control Evaluation Kit

Road Vehicles - Diagnostic Systems

EVAL-UFDC-1/UFDC-1M-16

Pmod peripheral modules are powered by the host via the interface s power and ground pins.

Future Technology Devices International Ltd

2.488Gbps Compact Bi-Di SFP Transceiver, 20km Reach 1490nm TX / 1310 nm RX

10Gbps XFP Bi-Directional Transceiver, 10km Reach 1270/1330nm TX / 1330/1270 nm RX

RB-See-211. Seeedstudio Grove 6-15V, 2A Dual I2C Motor Driver. Grove - I2C Motor Driver. Introduction

Calibration Management Software by CyberMetrics (480)

2013 G Miller. 3 Axis Brushless Gimbal Controller Manual

Duct Humidity Transmitter

System theremino MasterDIL-V3

WEB log. Device connection plans

Electronics 5: Arduino, PWM, Mosfetts and Motors

A REST API for Arduino & the CC3000 WiFi Chip

Vroom Hardware manual ver Code 114VROOHWE00. Vroom CANBUS USER INTERFACE WITH LCD GRAPHIC DISPLAY AND WITH TEMPERATURE AND HUMIDITY SENSOR

Transcription:

Page 1 of 5 HTU1D Humidity Sensor Hookup Guide CONTRIBUTORS: NATE HTU1D Overview The HTU1D is a low-cost, easy to use, highly accurate, digital humidity sensor. All you need is two lines for I C communication and you ll have relative humidity readings such as 45.% or 3.1% and very accurate temperature readings as a bonus! Things you should know about this sensor: Uses the IC interface Typical humidity accuracy of ±% Typical temperature accuracy of ±0.3C Operates from 0 to 100% humidity but this sensor isn t recommended for harsh environments where it could come in contact with water (such as rain). 3.3V sensor - use inline logic level converters or 10k resistors to limit 5V signals Here s the datasheet

Page of 5 Only one HTU1D sensor can reside on the I C bus at a time This sensor is ideal for environmental sensing and data logging. Perfect for a weather station or humidor control system. It is a very good replacement for digital humidity sensors such as the SHT15, SHT1, SHT5, HIH-4030, HIH6130 and capacitive humidity sensors such as the HH10D. Suggested Reading Things you might need to know: I C Protocol Using the PCA9306 voltage translator Logic Levels Installing an Arduino library What are pull-up resistors? How to use a breadbaord Hooking It Up Wiring up the HTU1D humidity sensor is very easy! We recommend soldering four male headers to the breakout board and using the HTU1D in a breadboard. Connections: Breakout board to Arduino VCC 3.3V GND GND SDA A4 SCL A5 There are only four pins that need to be hooked up in order to start using this sensor in a project. One for VCC, one for GND, and two data lines for IC communication. On an Arduino board connect the SDA pin on the

Page 3 of 5 breakout board to A4 and SCL to A5. If you have a newer Arduino, you can connect the SDA and SCL lines directly to the SDA and SCL lines broken out on the Arduino headers. This board runs at 3.3V. Be sure to power the board from the 3.3V pin! Because I C is an open drain signal, there s no need to worry about level shifting the signal; the 3.3V signal will be adequate to communicate with the Arduino and the signal will never reach a dangerous level for the pins on the HTU1D. Note: This breakout board has built in 4.7k pull up resistors for I C communications. If you re hooking up multiple I C devices on the same bus, you may want to disable these resistors. HTU1D Library and Functions We ve written an Arduino library and some example code to make using the HTU1D easy to get up and running. Grab the HTU1D library for Arduino here. Copy and paste the folder HTU1D_Humidity into your Arduino libraries folder. Not sure how to install an Arduino library? Read here for more information. The examples menu expanded to show Humidity example Once the library is installed, open Arduino, and expand the examples menu. You should see the HTU1D_Humidity submenu. Load this example onto the Arduino. Open the serial terminal at 9600bps. You will see the current humidity and temperature in the room! Explanation of Functions:

Page 4 of 5 The library and example code demonstrate some of the smaller functions supported by the HTU1D. These are generally not used by regular users but are documented here in case you need them: myhumidity.readhumidity() will return a float containing the humidity. Ex: 54.7 myhumidity.readtemperature() will return a float containing the temperature in Celsius. Ex: 4.1 myhumidity.setresolution(byte: 0b.7654310) sets the resolution of the readings. myhumidity.check_crc(message, check_value) verifies the 8-bit CRC generated by the sensor. myhumidity.read_user_register() returns the user register. Used to set resolution. When you call the ReadHumidity or ReadTemperature functions you will get a float with the sensor reading or an error code: 57.8 is an example of a valid reading. 0.0 to 100.0 for humidity and -40.0 to 15.0 for temperature. 998 indicates that IC timed out (100ms max). Check your connections. 999 CRC was wrong. The HTU1D calculates an internal CRC and transmits it along with the temperature and humidity readings. It s highly unlikely that you will ever see a bad CRC, but the library supports CRC checking. SetResolution() allows the user to change the humidity and temperature resolution. The vast majority of users do not need to change the resolution. By default the sensor will be in its highest resolution settings. This function is useful if you need to decrease the amount of time between readings or to save power. See page 1 of the datasheet. As an example, to change the resolution to 11 bit RH and 11 bit temperature, you would call myhumidity.setresolution(0b10000001); to set bit 7 and bit 0. check_crc() inputs the message and check_value from the HTU1D and then does a 8-bit polynomial CRC to verify that the message the sensor sent was valid. It s extremely rare that you will see a bad CRC but if you re looking into how to decipher a 8-bit CRC, this is a good example. The HTU1D uses the same CRC as 1-wire products. Disabling IC Resistors There are two 4.7k resistors on the breakout board that pull-up the SDA and SCL lines. If you ve got other devices on the IC bus you may need to disable the on-board resistors. To do this you need to clear the solder jumper on the board. This will disconnect the resistors from VCC and from the IC bus.

https://learn.sparkfun.com/tutorials/htu1d-humidity-sensor-hookup-guide?_ga=1.4669769.759311.14... Page 5 of 5 /1/015 Resources and Going Further You should now have a good idea of how to add humidity and temperature sensing into your next project. Need some inspiration? Check out these other tutorials: Make an automated terrarium that manages heat and humidity levels. Build a humidor control box that maintains a constant humidity in a controlled space. Resources: Example Arduino Sketch demonstrating how to talk to the HTU1D Humidity Sensor HTU1D Datasheet HTU1D Breakout Board Schematic HTU1D Breakout Board Eagle Files Github repo containing all the latest files and code