EasyManua.ls Logo

Waveshare BME280 User Manual

Default Icon
16 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
BME280 Environmental Sensor
BME280 Environmental Sensor
User Manual
OVERVIEW
The BME280 is as combined digital humidity, pressure and temperature sensor. Its
small dimensions, low power consumption, high precision and stability allow the
implementation in environmental monitor, whether forecast, altitude detection and
IOT application.
FEATURES
Support I2C interface, I2C device address could be set by changing I/O or welds
Supports SPI interface. Default I2C, you can change to SPI by change I/O
Integrated Level convert circuit, compatible with 3.3V/5V
Provide examples and user guide (Raspberry Pi/Arduino/STM32)
SPECIFICATION
Operating voltage:
5V/3.3V
Interface:
I2C/SPI
Temperature range:
-40~85°C (Resolution 0.1°C, tolerance ±1°C)
Humidity range:
0~100%rh (Resolution 0.008%RH, tolerance ±1°C)
Pressure range:
300~1100hPa(Resolution 0.18Pa, tolerance ±1hPa)
Dimensions:
27mmx20mm
Holes size:
2.0mm
Question and Answer IconNeed help?

Do you have a question about the Waveshare BME280 and is the answer not in the manual?

Waveshare BME280 Specifications

General IconGeneral
Sensor TypeBME280
Measurement ParametersTemperature, Humidity, Pressure
Temperature Range-40°C to +85°C
Communication InterfaceI2C, SPI
ManufacturerBosch
Temperature Accuracy±1 °C
Humidity Accuracy±3 %RH
Pressure Accuracy±1 hPa
Humidity Range0 to 100 %RH
Pressure Range300hPa to 1100hPa
Current Consumption3.6 μA @ 1 Hz humidity, pressure and temperature

Summary

OVERVIEW

FEATURES

Key functionalities like I2C/SPI support, level conversion, and example availability.

SPECIFICATION

Technical details including operating voltage, interface, temperature, humidity, pressure ranges, and dimensions.

INTERFACES

I2C Pin Assignments

Pin mapping for I2C communication across Raspberry Pi, Arduino, and STM32.

SPI Pin Assignments

Pin mapping for SPI communication across Raspberry Pi, Arduino, and STM32.

WORKING WITH RASPBERRY PI

Setup and Examples

Guides for setting up the environment, downloading demo code, and accessing resources.

CONNECTING TO RASPBERRY PI

Enable I2C/SPI Interface

Instructions for enabling communication interfaces via `sudo raspi-config`.

Verify Interface Status

Steps to reboot and check enabled modules using `lsmod`.

Hardware Connection and Address Selection

Details on physical connection and I2C address configuration.

Install and Use I2C Tools

Guide to install and use `i2c-tools` for device detection.

RUNNING RASPBERRY PI DEMO CODE

Navigate and Configure Code

Instructions to access the demo code and modify `main.c` for I2C.

Configure for SPI Communication

Instructions to modify `main.c` for SPI interface usage.

Compile and Execute Demo

Commands to clean, compile, and run the demo code.

WORKING WITH ARDUINO

Setup Arduino Environment

Steps to install the library and open the example sketch in Arduino IDE.

Arduino Hardware Connection

Guidance on connecting the BME280 sensor to an Arduino board.

Altitude Data Configuration

Instructions on setting the sea level pressure for accurate altitude readings.

Compile, Upload, and Monitor

Process for compiling, uploading the sketch, and viewing serial output.

WORKING WITH STM32

Setup STM32 Project

Guidance on opening the STM32 demo project.

STM32 Hardware Connection

Instructions for connecting the BME280 sensor to an STM32 board.

STM32 Code Configuration

Steps to configure the STM32 code for I2C or SPI interfaces.

STM32 Compile and Monitor

Process for compiling, uploading code, and viewing serial data on PC.

CODE ANALYSIS

Bosch Sensortec Driver Library

Information about the official library used for BME280 communication.

SPI and I2C Initialization

Code examples demonstrating the initialization process for SPI and I2C interfaces.

Data Acquisition Functions

Details on functions used to read sensor data in forced or normal modes.

Communication Function Details

Explanation of I2C and SPI read/write functions and their implementation.

BASIC DATA READING FLOW

Step 1: Initialize OS and Peripherals

The initial setup required for the operating system and hardware.

Step 2: Implement Communication Functions

Realizing and assigning read, write, and delay functions to the device structure.

Step 3: Obtain and Display Sensor Data

Calling functions to get data and print it to the console or PC.

Related product manuals