Giter Club home page Giter Club logo

seeed_sht35's Introduction

Grove - I2C High Accuracy Temp&Humi Sensor(SHT35) Build Status

Introduction of sensor

SHT3x-DIS is the next generation of Sensirion’s temperature and humidity sensors. It builds on a new CMOSens® sensor chip that is at the heart of Sensirion’s new humidity and temperature platform.


Usage:

Download all the source files.

  • exampleS/basic_demo/basic_demo.ino,This example can get the temprature from the serail.

Reference:

Refer to the /doc to get more detail.


This software is written by downey for seeed studio
Email:[email protected] and is licensed under The MIT License. Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.

seeed_sht35's People

Contributors

granjow avatar hiroeorz avatar jenkinlu001 avatar killingjacky avatar linux-downey avatar per1234 avatar pillar1989 avatar wemakemachines avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

seeed_sht35's Issues

Tags made without bumping version in `library.properties`

Even though a 1.0.1 and 1.0.2 has been tagged in the repository. Only version 1.0.0 of the library is available from the Arduino Library Manager. This causes users to use an outdated version of the library that is missing the critical fix from #5

Explanation

The cause is shown here in the library's dedicated indexer logs web page:

2023/04/03 14:12:03 Checking out tag: v1.0.1
2023/04/03 14:12:03 Release Grove - I2C High Accuracy Temp_Humi Sensor SHT35:1.0.0 already loaded, skipping
2023/04/03 14:12:03 Checking out tag: v1.0.2
2023/04/03 14:12:04 Release Grove - I2C High Accuracy Temp_Humi Sensor SHT35:1.0.0 already loaded, skipping

Unfortunately, the logs don't communicate about this particular thing very clearly, but what this tells us is that the version value in the library.properties metadata file was not updated before creating the v1.0.1 and v1.0.2 tags (note that the indexer checked out tag v1.0.2 , only to find the release version was 1.0.0).

You can see it here:

https://github.com/Seeed-Studio/Seeed_SHT35/blob/v1.0.2/library.properties#L2

version=1.0.0

Even though Git tags are the unit of release for the Arduino Library Manager, all versioning is done according to the version field of the library.properties file.

For this reason, the indexer will reject any tag that has the same value in its version field as a release already in the index.

Solution

The solution is to make another release of the library:

  1. Update the version value in library.properties to the version that will be used for the new release.
  2. Create a new release or tag in the library repository.

The indexer system will pick up that new release and it will be available from Library Manager within a day.

The non-compliant release will still be missing, but since the newer release will be available, that is no problem.


The fact that the metadata update was forgotten two releases in a row indicates this problem is likely to occur again. I suggest producing a formal library release procedure document for use by the Seeed Studio developers when making releases of Seeed Studio's many valued Arduino libraries.


Originally reported at https://forum.arduino.cc/t/sht35-library-error/1110371

Doesn't handle clock stretching correctly

When using
#define HIGH_REP_WITH_STRCH 0x2C06
and example sketch it inits ok but can't read. Sometimes it will work until I power cycle.
Changing to any of the 0x2400 no stretch settings works.
Oscilloscope shows no clocking or data after SCL held low and release with 0x2C06.
0x2C0D and 0x2C10 work for some reason. 0x24XX always works.

Unable to read / set heater status

Hi,

I am trying to get the heater status, enable/disable if needed.

        bool heaterstatus = sensor.heaterStatus();

exit status 1
no matching function for call to 'SHT35::heaterStatus()'

How can i get and then enable/disable the heater using this library?

err_t definition conflicts with nRF52 BSP

In the Arduino BSP for nRF52 – which Xiao BLE uses – err_t is defined as uint32_t, whereas in this library it is defined as:

typedef enum {
  NO_ERROR = 0,
  ERROR_PARAM = -1,
  ERROR_COMM = -2,
  ERROR_OTHERS = -128,
} err_t;

As a quickie, I changed the name of the enum, and all references to it, to err_tp. The example now compiles on Xiao BLE. I also had to add a #define for the I2C pins:

#define SDAPIN PIN_WIRE_SDA
#define SCLPIN PIN_WIRE_SCL

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.