Coder Social home page Coder Social logo

microphonon / shtc3 Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 109 KB

Demo I2C interface between MSP430 and Sensirion SHTC3 temp-humidity sensor

License: MIT License

C 100.00%
msp430 shtc3 sensirion temperature humidity sensirion-shtc3 launchpad

shtc3's Introduction

SHTC3

Demo code to read and display temperature and humidity data from Sensirion SHTC3 using the MSP430F5529 or MSP430FR5969 Launchpad. Low-level I2C communication using UCB0 registers, interrupts, and low-power modes. Read sensor in low-power mode with clock stretching. Display data on terminal program. Humidity displayed with 4 significant figures; temperature 3 significant figures. Main loop runs with timed interrupt from LPM3 and VLO clock. I2C clock 100 kHz; UART 9600 baud. IDE with CCS 6.1.3 and nofloat printf support.

SHTC3_F.c Code for MSP430Fx5xx/x6xx MCUs. Launchpad terminals:
P3.0 SDA with 10k pullup
P3.1 SCL with 10k pullup
P3.3 UART TXD
P3.4 UART RXD

SHTC3_FR.c Code for MSP430FR59xx MCUs. Launchpad terminals:
P1.6 UCB0SDA with 10k pullup
P1.7 UCB0SCL with 10k pullup
P2.5 UCA1TXD
P2.6 UCA1RXD

Sensirion product page: https://www.sensirion.com/shtc3

Digi-Key video: https://www.youtube.com/watch?v=X7GWMmYFZ9I

shtc3

shtc3's People

Contributors

microphonon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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