Site icon 14core.com

Wiring the BME280 Environmental Sensor Using i2C/SPI Interface with Microcontroller

BME280 is an integrated digital humidity, pressure and temperature sensor. This sensor module is compact in a small smart integrated device on a metal-led this device runs on a low power consumption that allow the sensor driven in a battery powered devices such as smart handset, GPS devices, Smart Watches, etc.

The BME280 achieves in a high performance in all applications that requires humidity and temperature measurement applicable to home automation and control, navigation, health care, and global positioning system (GPS). The humidity sensor provides a fast response time for fast context awareness application and high accuracy in a wide temperature range. The pressure sensor is a barometric pressure with extremely high accuracy and resolution and lower noise than other pressure sensor.

The integrated temperature sensor is optimized for lowest noise and highest resolution. Its output used for temperature compensation of the pressure and humidity sensor and can be used for estimation and acquisition of the ambient temperature.

This BME280 sensor provides both TWI/i2c and SPI interface that can be powered using 1.71 to 3.6 volts for the VDD and 1.2 ~ 3.6 volts for the VDD-IO the measurement can be triggered by the host. When the sensor is disabled the current consumption drops to 0.1 uA. The sensor also can be operated in 3 modes, sleep mode, normal mode, and forced mode. For wiring diagram using i2c or SPI see the diagram below.

Required Components

Wiring Guide

Source Code Using Two Wire Interface / i2C

[crayon-6695bd4e0eda6116022467/]

Source Code Using Serial Peripheral Interface (SPI)
[crayon-6695bd4e0edae480791939/]
Downloads

 

Wiring the BME280 Environmental Sensor Using i2C/SPI Interface with Microcontroller
Exit mobile version