Giter VIP home page Giter VIP logo

sht30's Introduction

SHT3x

Arduino library for Sensirion temperature and humidity sensors SHT30, SHT31 & SHT35.

The heavy version.
Check for /examples for examples of different use cases.

The datasheet I followed is:
https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/2_Humidity_Sensors/Sensirion_Humidity_Sensors_SHT3x_Datasheet_digital.pdf
For more simple version check the SimpleSHT3x library.

The constructor structure:
SHT3x( int Address = 0x44, //I2C device address, 0x44 or 0x45
ValueIfError Value = Zero, //What to return in case of errors. Zero or PrevValue
uint8_t HardResetPin = 255, //Number of pin RESET connected to (input from 100 to 255 if not used)
SHT3xSensor SensorType = SHT30, //Sensor type, SHT30, SHT31 or SHT35.
SHT3xMode Mode=Single_HighRep_ClockStretch //Operation mode , look for "enum SHT3xMode"
);

Do not forget about the UpdateData() method: this method polls sensors.

Supports:

Temperature data at Celsius, Kelvin and Fahrenheit scales.  
Relative humidity data.  
Absolute humidity data at Torr, mm Hg, Pa, bar, technical and standard atmosphere, psi scales.  
Data integrity (by CRC8 algorithm) (datasheet/section 4.12).  
Temperature, relative and absolute humidity tolerances (in dependence from measured values)  
Calibration (linear) of temperature and humidity data by factors or by reverse sensor values (2 points)  
Heater On/Off (integrated to SHT3x sensor) (datasheet/section 4.10)  
Different sensor actions modes (datasheet/section 4.3)  
Reset: soft (I2C) and hard (by corresponding pin) (datasheet/section 4.9)  

Do not supports:

Action in periodic mode (datasheet/section 4.5)  
Interrupts (datasheet/section 3.5)  

Note 1: by default, the data from sensor updates not faster, than 2 times a second. For faster update use SetUpdateInterval(uint32_t UpdateIntervalMillisec); but do not exceed the datasheet values (10 measurments per second (100 ms)) because of sensor self-heating (datasheet/section 4.5, at the end of Table 9)

Note 2: The sensor type affects the tolerance values only.

Created by Risele for everyone's use (profit and non-profit).

ALL THESE WOR_DS
ARE YOURS EXCEPT
RISELE
ATTEMPT NO
namechangING THERE
USE THEM TOGETHER
USE THEM IN PEACE

sht30's People

Contributors

yasir-shahzad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.