Grove - Barometer Sensor (BMP280)
Grove - Barometer Sensor (BMP280) is a breakout board for Bosch BMP280 high-precision and low-power digital barometer. This module can be used to measure temperature and atmospheric pressure accurately. As the atmospheric pressure changes with altitude, it can also measure approximate altitude of a place. It can be connected to a microcontroller with I2C (integrated with Grove socket) or through SPI bus. We have also provided highly abstracted library to make this product easier to use.
The BMP280 is an upgraded version of BMP180 and gets dramatic improvements from BMP180. BMP280 comes with a smaller footprint, lower power consumption, lower noise measurements, higher resolutions for pressure and temperature, lower RMS noise, newly added interface SPI, more measuring modes, higher measuring rate and newly added filter against environmental interference. Since the atmosphere pressure reading is affected by altitude and temperature, we have added compensation features in the library. Hence, Grove - Barometer Sensor (BMP280) would be more reliable on providing precise temperature, atmospheric pressure values and approximate altitude data.
Upgradable to Industrial Sensors
With the SenseCAP S2110 controller and S2100 data logger, you can easily turn the Grove into a LoRaWAN® sensor. Seeed not only helps you with prototyping but also offers you the possibility to expand your project with the SenseCAP series of robust industrial sensors.
SenseCAP S210x series industrial sensors provide an out-of-box experience for environmental sensing. Please refer to the S2101 Wireless Temperature and Humidity Sensor with higher performance and robustness for air quality monitoring. The series includes sensors for soil moisture, air temperature and humidity, light intensity, CO2, EC, and an 8-in-1 weather station. Try the latest SenseCAP S210x for your next successful industrial project.
SenseCAP Industrial Sensor |
S2101 Air Temp & Humidity |
Pre-reading
An introduction of What is a Barometric Pressure Sensor and How does it work is strongly recommended reading ahead if you are not familiar with it. Please visit our blog for detailed information.
Feature
- Get more precise temperature, atmospheric pressure values, and approximate altitude data
- Grove compatible and easy to use
- Highly abstracted library for building projects quicker
More details about Grove modules please refer to [Grove System](https://wiki.seeedstudio.com/Grove_System/).
Specification
Parameter | Value |
---|---|
Input voltage | 3.3V or 5V |
I/O voltage | 3.3V or 5V |
Operating current | 0.6mA |
Operating temperature | -40 - 85 ℃ |
Effective pressure measurement range | 300 - 1100 hPa (1 hPa= one hundred Pa) with ±1.0 hPa accuracy |
Temperature measurement accuracy | ±1.0°C |
Measurement modes | Piezo & Temperature, forced or periodic |
Chip | BMP280 (datasheet) |
Possible sampling rate | 182 Hz (typical) |
Interface Bus | SPI, I2C (use either one of them) |
Weight | 3 g (for breakout board) |
Dimensions | 40 (width) × 20 (depth) mm |
I2C Address | 0x77()default or 0x76 |
Notes
1. We will show/describe how to select interface bus soon.
2. The altitude is calculated by a combination of temperature and atmospheric pressure. No specialized components for altitude.
Application
- Enhancement of GPS navigation
- Outdoor/indoor navigation
- Weather forecast
- Botany management
Platforms supported
Arduino | Raspberry Pi |
---|---|
The platforms mentioned above as supported is/are an indication of the module's software or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.
Getting Started
Play with Arduino
Materials required
Seeeduino V4.2 | Base Shield | Grove-Barometer_Sensor-BMP280 |
---|---|---|
Get One Now | Get One Now | Get One Now |
Hardware Overview
- SPI soldering pads, a voltage monitoring circuit.
- Interface bus selection pads , to select I2C bus, connect the two pads by soldering (this is connected by default); to select SPI bus, cut the two pads with a sharp knife or a soldering iron.
- Slave board address selection pads, to select slave board address to avoid address collision.
* If you have selected I2C bus, the default address for slave board is **0x77**(right-two pads are connected). If you want to use the address **0x76**, connect only left two (disconnect right two) by soldering.
* You can disconnect pads with just a sharp knife.
* If you have selected SPI bus, the default address for slave board is **0x77**(right-two pads are connected). If you want to use the address **0x76**, disconnect all three pads.
Note
Do not touch or shake or let this product in vibration when it works. This will cause interference and will affect the accuracy of data collected.Step 1. Connect Grove-Barometer_Sensor-BMP280 to port I2C of Grove-Base Shield.
Step 2. Plug Grove - Base Shield into Seeeduino and connect Seeeduino to PC via a USB cable.
If you don't have a Grove Base Shield, you can also directly connect this module to [Seeeduino](https://www.seeedstudio.com/catalogsearch/result/?q=Seeeduino) as below.
Seeeduino_v4 | Grove-Barometer_Sensor-BMP280 |
---|---|
5V | VCC |
GND | GND |
SDA | SDA |
SCL | SCL |
Software
Step 1. Download the library from Github.
Step 2. Refer How to install library to install library for Arduino.
Step 3. Create a new Arduino sketch and paste the codes below to it or open the code directly by the path:File -> Example ->bmp280_example->bmp280_example
Here is the code:
/*
* bmp280_example.ino
* Example sketch for BMP280
*
* Copyright (c) 2016 seeed technology inc.
* Website : www.seeedstudio.com
* Author : Lambor, CHN
* Create Time:
* Change Log :
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include "Seeed_BMP280.h"
#include <Wire.h>
BMP280 bmp280;
void setup()
{
Serial.begin(9600);
if(!bmp280.init()){
Serial.println("Device error!");
}
}
void loop()
{
float pressure;
//get and print temperatures
Serial.print("Temp: ");
Serial.print(bmp280.getTemperature());
Serial.println("C"); // The unit for Celsius because original arduino don't support speical symbols
//get and print atmospheric pressure data
Serial.print("Pressure: ");
Serial.print(pressure = bmp280.getPressure());
Serial.println("Pa");
//get and print altitude data
Serial.print("Altitude: ");
Serial.print(bmp280.calcAltitude(pressure));
Serial.println("m");
Serial.println("\n");//add a line between output of different times.
delay(1000);
}
Step 4. Upload the code. If you do not know how to upload the code, please check how to upload code.
Step 5. Open the serial monitor to receive the sensor's data including temperature, barometric pressure value, and altitude.
The outcome will display on the **Serial Port** as following if everything goes well.
Schematic Online Viewer
Resources
- [Eagle] Grove-Barometer Sensor BMP280 Schematic
- [Datasheet] BMP280 Datasheet
- [References] I2C how-to for Arduino
Project
Intelligent alarm system made with BBG ( IoT)
Monitoring System for Smart Crops Design and build a system to monitor the status of your crops using the Netduino 3 WiFi.