Git Product home page Git Product logo

buildazure.iot.adafruit.bme280's Introduction

BuildAzure.IoT.Adafruit.BME280

An Adafruit BME280 (Pressure, Temp & Humidity) Sensor library for Windows IoT Core

Nuget Package

BuildAzure.IoT.Adafruit.BME280 Nuget Package

C# Usage

var bme280Sensor = new BME280Sensor();

// Initialize BME280 Sensor
await bme280Sensor.Initialize();

// Read Temperature
var temp = bme280Sensor.ReadTemperature();

// Read Humidity
var humidity = bme280Sensor.ReadHumidity();

// Read Barometric Pressure
var pressure = bme280Sensor.ReadPressure();

// Read Altitude
const float seaLevelBarometricPressure = 1022.00f;
var altitude = bmd280Sensor.ReadAltitude(seaLevelBarometricPressure);

Wiring Diagram

Here's a simple Fritzing diagram that shows the expected wiring of the Adafruit BME280 sensor with a Raspberry Pi 2 or 3:

BMD280 Raspberry Pi Wiring Diagram

Examples

The Weather Station V 3.0 project on Hackster.io provides a simple tutorial on using this library in a new UWP app. Also, the full source code for that project is available at the following location:

https://github.com/BuildAzure/AdafruitBME280WeatherStation

Origins

This code was originally posted as part of the Weather Station V 2.0 project on hackster.io. Since that project wasn't released using any reusable Nuget libraries for working with the Adafruit BME280 sensor, this project was created to borrow the BME280 code and release that out as a Nuget package for others to consume. Thankfully it's all licensed under the MIT License, and so is this project!

buildazure.iot.adafruit.bme280's People

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.