GithubHelp home page GithubHelp logo

smartboxchannel / arduino-shtc3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ludiazv/arduino-shtc3

0.0 1.0 0.0 1.72 MB

A minimal arduino library for SHTC3 temperature & Humidity sensor

C++ 100.00%

arduino-shtc3's Introduction

A minimial arduino library fro SHTC3 Temperature & Humidity sensor

A bare minimal arudino lib for this sensor for low power applications based on official SHT libraries.

If you find this library usefull and want to support open software consider to donate.

Buy Me A Coffee

Usage

The library is designed for low power applications that will poll the reading periodically. When the sensor is not reading it is keep asleep consuming less than 1 uA.

 
    SHTC3 sensor(Wire);

    void setup() {
            Serial.begin(9600)
            Wire.begin();
            sensor.begin();
    }
    void loop() {
            s.sample();
            Serial.print(F("[SHTC3] T:"));
            Serial.print(s.readTempC());
            Serial.print(F(" Cº  /   H: "));
            Serial.print(s.readHumidity());
            Serial.println(F(" %"));
            delay(2000);
    }

Technical notes

  • The sensor is _NOT 5V tolerant: If using 5V boards a 3.3V power source or 3.3V regulator need to be used. Most arduino boards have 3.3V power line that can be used to power the device. SCL & SDA require also logic level shifters are required as this pins are nor 5V tolerant.
  • Pull-up resistors are typically needed on SCL & SDA lines. Resistor values will depend on frequency and bus configuration.
  • Sensor supports up to 400kHz (fast I2C).

Compilation options:

if ARDUINO_SHTC3_NOFLOAT is defined no float computation is done. Temperature and Humidity will return a 16bit integer. This optimization will reduce the code size more at expense of precision in the reading.

Notes:

Library has been tested on a arduino pro mini 3.3V.

Change Log

  • 0.0.1 First version
  • 0.0.2 Bug correction
  • 0.0.3 Fix wake & reset delay bug.

arduino-shtc3's People

Contributors

ludiazv 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.