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.

There is also 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    

-- Uli Raich - 2020-05-22

Comments

Edit | Attach | Watch | Print version | History: r7 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2020-05-22 - UliRaich
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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