Coder Social home page Coder Social logo

sensirion / embedded-i2c-sht4x Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 4.0 567 KB

Embedded driver for the SHT4x sensor family.

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.50% C 90.63% C++ 7.87%
embedded i2c sensor driver humidity temperature sensirion sht4x sht40 sht4x-sensor

embedded-i2c-sht4x's Issues

embedded-i2c-sht4x/sample-implementations/Nordic_nRF5_series/ - CRC Errors

Hello All,

We have a platform with the nRF52840 and have used the code here for the SHT41-AD1B-R2 part from Sensirion.

We're seeing CRC errors being returned from the sensirion_i2c_init(); and sht4x_measure_blocking_read(); calls.

Just wondering if anyone else here has had an issue with CRC's not being correct using this P/N: SHT41-AD1B-R2.

From looking at the data packet - it appears the temperature part of the data tracks according to the temperature we're monitoring; so the sensor appears operational in that regard. I have a Total Phase Aardvark attached - I can provide logs if anyone wants to see that.

When sending a 0x89 - we're seeing this consistently from the sensor:
0ED8 51 ADE0 FF - is that a valid S/N?

Thanks In Advance,
John W.

Is this instruction unnecessary ?

I really like the simplicity of this repo.

In "sensirion_i2c.c" sensirion_i2c_read_words, I think this loop is unnecessary :

for (i = 0; i < num_words; ++i) {
        const uint8_t* word_bytes = (uint8_t*)&data_words[i];
        data_words[i] = ((uint16_t)word_bytes[0] << 8) | word_bytes[1];
    }

Isn't it ?

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.