Tags:
view all tags
---+ The SHT30 !I2C Temperature an Humidity Sensor ---++ Introduction The SHT30 is a temperature and humidity sensor for the I2C bus. Typical accuracy for temperature is +- 0.1 °C and +- 1.5% relative humidity. Sensirion, the company behind the SHT30 supplies a series of documents including the data sheet, several application notes and sample code, written in C STM32F10x microcontroller. You can find it at [[https://www.sensirion.com/en/download-center/humidity-sensors/digital-humidity-sensors-for-various-applications/][https://www.sensirion.com/en/download-center/humidity-sensors/digital-humidity-sensors-for-various-applications.]] There is also [[https://github.com/rsc1975/micropython-sht30][a SHT30 driver written for !MicroPython on the ESP8266]] but unfortunately it did not work on the ESP32 out of the box and it implements only a small subset of the SHT30's functions. I therefore developed a driver called sht3x translating the Sensirion code into !MicroPython. Here is a list of functions, their command codes and if they are implemented in the SHT30 driver: | Function | Repeatability | measurement per s | Clock Stretching | Command Code | Implemented in SHT30 driver | | Single shot data acquisition | High | | enabled | 0x2C06 | no | | ^ | Medium | ^ | ^ | 0x2C0D | no | | ^ | Low | ^ | ^ | 0x2C10 | no | | ^ | High | ^ | disabled | 0x2400 | yes | | ^ | Medium | ^ | ^ | 0x240B | no | | ^ | Low | ^ | ^ | 0x2416 | no | | Continuous data acquisition | High | 0.5 | disabled | | | | ^ | Medium | ^ | ^ | | | | ^ | Low | ^ | ^ | | | | ^ | High | 1 | ^ | | | | ^ | Medium | ^ | ^ | | | | ^ | Low | ^ | ^ | | | | ^ | High | 2 | ^ | | | | ^ | Medium | ^ | ^ | | | | ^ | Low | ^ | ^ | | | | ^ | High | 4 | ^ | | | | ^ | Medium | ^ | ^ | | | | ^ | Low | ^ | ^ | | | | ^ | High | 10 | ^ | | | | ^ | Medium | ^ | ^ | | | | ^ | Low | ^ | ^ | | | -- %USERSIG{UliRaich - 2020-05-22}% ---++ Comments %COMMENT%
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r7
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2020-05-22
-
UliRaich
Home
Site map
AFNOG web
Embedded_Systems web
IoT_Course_English web
IoT_Course_French web
Main web
Sandbox web
TWiki web
IoT_Course_English Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback