Bosch BMP280 it's a digital temperature and pressure sensor. Main measurement characteristics:
- ambient range for operation -40 ~ +85C, 0%-100% r.H., 300-1100hPa
- absolute temperature (0-65C) accuracy +-1C
- absolute/relative pressure accuracy +-0.6hPa/+-0.12hPa
More info on: BMP280 datasheet
HINT: DO NOT MISTAKE BMP280 sensor (temperature+pressure - no humidity!) with BMP280 sensor (temperature+pressure+humidity).
In June 2019 we've released 6 new environmental and air quality sensors, including Bosch Sensortec BMP280, all being part of the s-Sense I2C sensor breakout family.
PN: SS-BMP280#I2C SKU: ITBP-6001 BMP280 I2C sensor breakout info
Next, let's kickstart with BMP280 sensor I2C breakout - around 10-15 minutes.
Arduino BMP280 sensor hardware integration (wiring)
First, identify if your Arduino it's 5V or 3.3V compliant! The BMP280 I2C sensor breakout it's shipped in default auto 3-5V compliant configuration. In a nut shell, wire as bellow:
HINT, for some ARDUINO boards:
- SDA (Serial Data) --> A4 on Uno/Pro-Mini, 20 on Mega2560/Due, 2 Leonardo/Pro-Micro
- SCK (Serial Clock) --> A5 on Uno/Pro-Mini, 21 on Mega2560/Due, 3 Leonardo/Pro-Micro
Bellow, sensor wiring example with xyz-mIoT shield [AT SAMD21G, 3.3V compliant, with or without embedded modem]:
Arduino BMP280 sensor software
- a. download BME280/BMP280 Arduino library from: here.
- b. unzip the library and install in Arduino libraries folder. Restart Arduino.
- c. Make a folder named "ssense_BMx680_example". Download and save the code bellow (right click & save as): BME280 / BMP280 - read sensor data Arduino code
- or, c'. The very same code it's available in Arduino "File-> Examples", under "ssense-BMx280" library.
- d. Compile and upload the code to your Arduino shield. The sensor data may be seen on Arduino Serial Monitor (set to 19200bps).
HINT: the above code it's common for both BME280 and BMP280 sensors. For BMP280, the humidity will be reported as unavailable - this is normal (BMP280 it's temperature+pressure sensor)!
What to do next:- you may like to run the "ssense_BMx280_Environment_Calculations.ino" example - available in Arduino "File-> Examples", under "ssense-BMx280" library.
TUTORIAL PROVIDED WITHOUT ANY WARRANTY!!! USE IT AT YOUR OWN RISK!!!!
Comments