htu21df temperature and humidity sensor support for Raspberry Pi
C Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore Initial commit of real code Jun 22, 2014
LICENSE Auto detect Raspi i2c device Jul 26, 2014
README.md Add support for Intel Edison Mar 6, 2015
build.sh Add demo for MQTT Jun 22, 2014
dweetio.c Auto detect Raspi i2c device Jul 26, 2014
edison-i2c.sh
htu21dflib.c Add support for Intel Edison Mar 6, 2015
htu21dflib.h Initial commit of real code Jun 22, 2014
mqtt.c Auto detect Raspi i2c device Jul 26, 2014

README.md

htu21dflib

htu21df temperature and humidity sensor support for Raspberry Pi.

Adafruit HTU21D-F breakout board details.

http://www.adafruit.com/products/1899

Adafruit guide to configuring the Pi for i2c.

https://learn.adafruit.com/using-the-bmp085-with-raspberry-pi/configuring-the-pi-for-i2c

Build it

./build.sh

Run test program

./htu21dflib

Sample output

29.1 52.3
29.1 52.3
29.1 52.3
29.1 52.3

Dweet your data

./dweetio

Login into http://freeboard.io to access your dweet data. Create a real-time instrumentation panel with temperature and humidity guages without programming.

Intel Edison

The HTU21D works with the Intel Edison Arduino breakout board. This does not use the Arduino SDK or the IoT SDK. This program directly accesses the I2C controller to control the sensor.

edison-i2c.sh enables the I2C controller on /dev/i2c-6. Run this only once.

htu21dflib.c takes the device name as an optional command line parameter.

./edison-i2c.sh
./htu21dflib /dev/i2c-6