Giter Site home page Giter Site logo

d2r2 / go-sht3x Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 1.4 MB

Golang library to interact with Sensirion SHT3x relative humidity and temperature sensor's family via I2C-bus from Raspberry PI.

License: MIT License

Go 100.00%
embeded-linux golang gpio i2c i2c-sensors raspberry-pi

go-sht3x's People

Contributors

d2r2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

go-sht3x's Issues

CRC mismatch using example code

Using the example code found in this repo I am getting a CRC mismatch error when running it on my Onion Omega2+ compiled using Go 1.13.4.

2019-11-11T23:36:20.140 [    main] NOTICE  **********************************************************************************************
2019-11-11T23:36:20.141 [    main] NOTICE  *** !!! READ THIS !!!
2019-11-11T23:36:20.141 [    main] NOTICE  *** You can change verbosity of output, by modifying logging level of modules "i2c", "sht3x".
2019-11-11T23:36:20.142 [    main] NOTICE  *** Uncomment/comment corresponding lines with call to ChangePackageLogLevel(...)
2019-11-11T23:36:20.142 [    main] NOTICE  *** !!! READ THIS !!!
2019-11-11T23:36:20.143 [    main] NOTICE  **********************************************************************************************
2019-11-11T23:36:20.143 [   sht3x] DEBUG  Reset sensor...
2019-11-11T23:36:20.144 [     i2c] DEBUG  Write 2 hex bytes: [30a2]
2019-11-11T23:36:20.146 [    main] NOTICE  **********************************************************************************************
2019-11-11T23:36:20.147 [    main] NOTICE  *** Read sensor states
2019-11-11T23:36:20.147 [    main] NOTICE  **********************************************************************************************
2019-11-11T23:36:20.148 [   sht3x] DEBUG  Getting heater status...
2019-11-11T23:36:20.148 [     i2c] DEBUG  Write 2 hex bytes: [f32d]
2019-11-11T23:36:20.150 [     i2c] DEBUG  Read 3 hex bytes: [8010ff]
2019-11-11T23:36:20.150 [    main] FATAL  CRCs doesn't match: CRC from sensor (0xFF) != calculated CRC (0xE1)

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.