Skip to content

astro-gokart/RaspberryPI_HTU21DF

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RaspberryPI_HTU21DF

This is a python driver to use with Adafruit's HTU21D-F breakout board. https://www.adafruit.com/product/1899

This driver requires the pigpio library, available at http://abyz.co.uk/rpi/pigpio/index.html

To install this library please navagate to its folder and sudo python HTU21DF.py install

I wanted to use this sensor in a project with a Raspberry Pi but I only found drivers written in C, so I wrote my own.

Please keep in mind that it does not use every function offered by the sensor. When temperature and humidity are read the i2c clock is held though there is a no hold mode available. I also have not writted functions to read and write to the user register. The only functions are read_temperature, read_humidity, and reset.

If you use an old revision A Raspberry Pi you will have to change the i2c bus in the driver from 1 to 0.

About

Python driver for HTU21D-F temp/hum sensor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%