sensirion / embedded-i2c-sht4x Goto Github PK
View Code? Open in Web Editor NEWEmbedded driver for the SHT4x sensor family.
License: BSD 3-Clause "New" or "Revised" License
Embedded driver for the SHT4x sensor family.
License: BSD 3-Clause "New" or "Revised" License
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.
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 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.