Description
Bosch has stepped up their game with their new BMP280 sensor, an environmental sensor with temperature, barometric pressure that is the next generation upgrade to the BMP085/BMP180/BMP183. This sensor is great for all sorts of weather sensing and can even be used in both I2C and SPI.
Feature:
- Model: GY-BMP280-3.3
- Chip: BMP280
- Power supply: 3V
- Communication method: Standard IIC/SPI communication protocol
- Air pressure range: 300-1100hPa
- Pin pitch: 2.54mm
- Module size: 11.5mm*15mm
Getting started with the BMP280 Pressure Sensor Module
This GY-BMP280-3.3 pressure sensor module Arduino tutorial shows how to connect a pressure sensor module to Arduino and how to read pressure and temperature from the device
Step1: Hardware required
Step2: Connecting the Hardware
In this example connect the following BMP280 pins to the Arduino respectively, VCC to 3.3V, GND to GND, SCL to A5, and SDA to A4.
Step3: Setting up the library
Before we get to the actual code you will need to install the following libraries:
Once the libraries are downloaded, place them in the Arduino>Libraries folder. Go to the Adafruit_BMP_280 library folder and open Adafruit_BMP280.h using notepad. Find the I2C address and change it to 0x76 (see photo). Save and close.
Step4: Upload the sample sketch
Download and upload the attached sketch.
BMP280 CODE
Step5: Testing the circuit
Use the serial monitor to see what your new sensor is picking up.