Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sensirion/embedded-sht
Embedded SHT Drivers for Sensirion Temperature and Humidity Sensors - Download the Zip Package from the Release Page
https://github.com/sensirion/embedded-sht
driver embedded humidity humidity-sens i2c raspberry-pi raspberrypi relative-humidity-sensors sensirion sensirion-embedded-drivers sensor sht31 sht35 sht3x sht4x shtc3 shtw2 temperature temperature-sensor
Last synced: about 1 month ago
JSON representation
Embedded SHT Drivers for Sensirion Temperature and Humidity Sensors - Download the Zip Package from the Release Page
- Host: GitHub
- URL: https://github.com/sensirion/embedded-sht
- Owner: Sensirion
- License: bsd-3-clause
- Created: 2017-12-27T13:30:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T14:16:00.000Z (8 months ago)
- Last Synced: 2024-04-19T15:36:02.586Z (8 months ago)
- Topics: driver, embedded, humidity, humidity-sens, i2c, raspberry-pi, raspberrypi, relative-humidity-sensors, sensirion, sensirion-embedded-drivers, sensor, sht31, sht35, sht3x, sht4x, shtc3, shtw2, temperature, temperature-sensor
- Language: C
- Homepage: https://github.com/Sensirion/embedded-sht/releases
- Size: 382 KB
- Stars: 83
- Watchers: 12
- Forks: 35
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# embedded-sht [![CircleCI](https://circleci.com/gh/Sensirion/embedded-sht.svg?style=shield)](https://circleci.com/gh/Sensirion/embedded-sht) [![GitHub license](https://img.shields.io/badge/license-BSD3-blue.svg)](https://raw.githubusercontent.com/Sensirion/embedded-sht/master/LICENSE)
This repository contains the embedded driver sources for Sensirion's
SHT product line.## Download the Latest Driver Release
**Download the latest ready-to-use driver bundle from the [releases
page](https://github.com/Sensirion/embedded-sht/releases/)**We strongly recommend to use the driver from the release bundle instead of
cloning the repository.## Clone this repository
```
git clone --recursive https://github.com/Sensirion/embedded-sht.git
```## Repository content
* `embedded-common` submodule repository for the common embedded driver HAL
* `sht-common` common files for all SHTxx drivers, humidity conversion functions
* `sht4x` SHT4 driver
* `sht3x` SHT3x/SHT8x driver
* `shtc1` SHTC3/SHTC1/SHTW1/SHTW2 driver
* `utils` Conversion functions (Centigrade to Fahrenheit, %RH relative humidity
to aboslute humidity)
Forsht3x
andsht4x
there are also updated drivers available in separate repositories.## Collecting resources
```
make release
```
This will create the `release` folder with the necessary driver files in it,
including a Makefile. That way, you have just ONE folder with all the sources
ready to build your driver for your platform.## Files to adjust (from embedded-common)
You only need to touch the following files:* `sensirion_arch_config.h` (architecture specifics, you need to specify
the integer sizes)and depending on your i2c implementation either of the following:
* `embedded-common/hw_i2c/sensirion_hw_i2c_implementation.c`
functions for hardware i2c communication if your platform supports that
* `embedded-common/sw_i2c/sensirion_sw_i2c_implementation.c`
functions for software i2c communication via GPIOs## Building the driver
1. Adjust `sensirion_arch_config.h` if you don't have the `` header
file available
2. Implement necessary functions in one of the `*_implementation.c` files
described above
3. make---
Please check the [embedded-common](https://github.com/Sensirion/embedded-common)
repository for further information and sample implementations.---