Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kfricke/micropython-sht31
Micropython "driver" for the SHT31 temperature and humidity sensor
https://github.com/kfricke/micropython-sht31
Last synced: about 16 hours ago
JSON representation
Micropython "driver" for the SHT31 temperature and humidity sensor
- Host: GitHub
- URL: https://github.com/kfricke/micropython-sht31
- Owner: kfricke
- License: mit
- Created: 2016-02-08T22:43:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-16T10:16:17.000Z (over 1 year ago)
- Last Synced: 2024-04-22T12:36:35.594Z (7 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 21
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-sht31 - Driver for the SHT31 temperature and humidity sensor. (Libraries / Sensors)
- awesome-mpython - micropython-sht31 - Driver for the SHT31 temperature and humidity sensor. (精选驱动库 / 传感器)
README
# micropython-sht31
This repository contains a MicroPython "driver" implementationforo the SHT31
temperature and humidity sensor from Sensirion.Currently only a reasonably small subset of the features the sensor is
implemented.## Implemented
* Read the temperature and humidity at different "repeatability" (accuracy)
settings. With celsius and fahrenheit values.
* Only single shot data acquisition mode## Not yet implemented
* Continous (periodic) temperature acquisition and the corresponding
break/stop command
* CRC check of the sensor readings
* Temperature alerts
* Resetting the sensor (nRESET pin)## Example code:
```
from machine import Pin, I2C
import sht31i2c = I2C(scl=Pin(5), sda=Pin(4), freq =400000)
sensor = sht31.SHT31(i2c, addr=0x44)sensor.get_temp_humi()
```