hiramvillarreal / i2cHoneywellHumidity

Interfacing Honeywell Humidity Sensors on Raspberry Pi.

Home Page:https://www.karlrupp.net/2016/03/raspberry-pi-honeywell-humidity-temperature-sensor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Humidity and Temperature Reader for Honeywell Sensors

Reads temperature and humidity from Honeywell sensors using the i2c interface.
Sensors with SPI output are not supported!
Likely to work with the following sensors:

  • 1.7 percent relative humidity accuracy (Datasheet):
    HIH9120-021-xxxx
    HIH9121-021-xxxx
    HIH9130-021-xxxx
    HIH9131-021-xxxx

  • 2 percent relative humidity accuracy (Datasheet):
    HIH8120-021-xxxx
    HIH8121-021-xxxx
    HIH8130-021-xxxx
    HIH8131-021-xxxx (tested with this sensor)

  • 3 percent relative humidity accuracy (Datasheet):
    HIH7120-021-xxxx
    HIH7121-021-xxxx
    HIH7130-021-xxxx
    HIH7131-021-xxxx

  • 4 percent relative humidity accuracy (Datasheet):
    HIH6120-021-xxxx
    HIH6121-021-xxxx
    HIH6130-021-xxxx
    HIH6131-021-xxxx

  • 4 percent relative humidity accuracy (Datasheet):
    HIH6120-021-xxxx
    HIH6121-021-xxxx
    HIH6130-021-xxxx
    HIH6131-021-xxxx

The code follows the Technical Note on I2C communication with Honeywell sensors

See also: Blog post on interfacing Honeywell humidity sensors on a Raspberry Pi 2.

Build

Make sure you have i2c-tools and libi2c-dev installed on your system. On Debian-based systems (Ubuntu, Raspbian):

$> sudo apt-get install i2c-tools libi2c-dev

Then issue make:

$> make

Run

Run the executable via

$> ./i2cHoneywellHumidity

License

The code is provided under a permissive MIT/X11-style license. See file LICENSE.txt for details.

About

Interfacing Honeywell Humidity Sensors on Raspberry Pi.

https://www.karlrupp.net/2016/03/raspberry-pi-honeywell-humidity-temperature-sensor/

License:MIT License


Languages

Language:C 95.8%Language:Makefile 4.2%