Git Product home page Git Product logo

bme280's Introduction

BME280

Demo programs that use SPI to communicate between Bosch BME280 temperature-humidity-pressure sensor and MSP430FX5XX/FX6XX or MSP430FR59xx families of MCUs.

Read and display temperature, relative humidity, and pressure of the BME280 sensor using the F5529 or FR5969 Launchpad. Sensor polled through SPI in forced mode with 1x oversampling and no filter. Internal trimming parameters must be read from device to perform conversion of raw data. Data displayed on terminal program. Set serial port for 9600 baud, 8-bits, 1 stop, no parity, no flow control. UART polling with no RX interrupt. SPI clock 1 MHz. The CS line must be configured consistently in the accompanying BME280.h header file. Main loop runs with timed interrupt from LPM3 and VLO clock. IDE with CCS 6.1.3 and nofloat printf support.

BME280_F.c Code can be directly implemented on F5529 Launchpad with perpherals wired using the following pins:

P3.0 UCB0 MOSI
P3.1 UCB0 MISO
P3.2 UCB0 CLK SPI
P3.3 UCA0TXD
P3.4 UCA0RXD
P1.5 CS for BME280

BME280_FR.c Code can be directly implemented on FR5969 Launchpad with perpherals wired using the following pins:

P1.6 UCB0 MOSI
P1.7 UCB0 MISO
P2.2 UCB0 SPI CLK
P1.5 CS for BME280
P2.5 UCA1TXD
P2.6 UCA1RXD

BME280.h Library of 6 functions to extract and process data from the BME280 sensor using the SPI protocol. Modify registers ctrl_hum, ctrl_meas, and config as needed. Consult the BME280 data sheet.

bme280's People

Contributors

microphonon avatar

Stargazers

 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.