Adafruit Industries BME280 Bedienungsanleitung

Adafruit BME280 Humidity + Barometric Pressure + Temperature
Sensor Breakout
Created by lady ada
Last updated on 2016-04-26 12:01:06 PM EDT

2
3
6
6
7
7
8
8
8
9
10
10
11
12
13
14
17
18
18
18
18
19
Guide Contents
Guide Contents
Overview
Pinouts
Power Pins:
SPI Logic pins:
I2C Logic pins:
Assembly
Prepare the header strip:
Add the breakout board:
And Solder!
Wiring & Test
I2C Wiring
SPI Wiring
Download Adafruit_BME280 library
Load Demo
Library Reference
F.A.Q.
Downloads
Documents
Alternative Driver (Python)
Schematic
Dimensions
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 2 of 19

Overview
Bosch has stepped up their game with their new BME280 sensor, an environmental sensor with
temperature, barometric pressure and humidity! This sensor is great for all sorts of
weather/environmental sensing and can even be used in both I2C and SPI!
This precision sensor from Bosch is the best low-cost sensing solution for measuring humidity with
±3% accuracy, barometric pressure with ±1 hPa absolute accuraccy, and temperature with ±1.0°C
accuracy. Because pressure changes with altitude, and the pressure measurements are so good, you
can also use it as an altimeter with ±1 meter accuracy!
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 3 of 19

The BME280 is the next-generation of sensors from Bosch, and is the upgrade to the
BMP085/BMP180/BMP183 - with a low altitude noise of 0.25m and the same fast conversion time. It
has the same specifications, but can use either I2C or SPI. For simple easy wiring, go with I2C. If you
want to connect a bunch of sensors without worrying about I2C address collisions, go with SPI.
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 4 of 19

Nice sensor right? So we made it easy for you to get right into your next project. The surface-mount
sensor is soldered onto a PCB and comes with a 3.3V regulator and level shifting so you can use it
with a 3V or 5V logic microcontroller without worry. We even wrote up a nice tutorial with wiring
diagrams, schematics, libraries and examples to get you running in 10 minutes!
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 5 of 19

Pinouts
Power Pins:
Vin - this is the power pin. Since the sensor chip uses 3 VDC, we have included a voltage
regulator on board that will take 3-5VDC and safely convert it down. To power the board, give it
the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use
5V
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 6 of 19

3Vo - this is the 3.3V output from the voltage regulator, you can grab up to 100mA from this if
you like
GND - common ground for power and logic
SPI Logic pins:
All pins going into the breakout have level shifting circuitry to make them 3-5V logic level safe. Use
whatever logic level is on Vin!
SCK - This is the SPI Clock pin, its an input to the chip
SDO - this is the Serial Data Out / Master In Slave Out pin, for data sent from the BMP183 to
your processor
SDI - this is the Serial Data In / Master Out Slave In pin, for data sent from your processor to the
BME280
CS - this is the Chip Select pin, drop it low to start an SPI transaction. Its an input to the chip
If you want to connect multiple BME280's to one microcontroller, have them share the SDI, SDO and
SCK pins. Then assign each one a unique CS pin.
I2C Logic pins:
SCK - this is also the I2C clock pin, connect to your microcontrollers I2C clock line.
SDI - this is also the I2C data pin, connect to your microcontrollers I2C data line.
Leave the other pins disconnected
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 7 of 19

Assembly
Prepare the header strip:
Cut the strip to length if necessary. It will be easier to solder if
you insert it into a breadboard - long pins down
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 8 of 19

Add the breakout board:
Place the breakout board over the pins so that the short pins
poke through the breakout pads
And Solder!
Be sure to solder all pins for reliable electrical contact.
(For tips on soldering, be sure to check out our Guide to
Excellent Soldering (http://adafru.it/aTk)).
You're done! Check your solder joints visually and continue onto
the next steps
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 9 of 19

Wiring & Test
You can easily wire this breakout to any microcontroller, we'll be using an Arduino. For another kind of
microcontroller, as long as you have 4 available pins it is possible to 'bit-bang SPI' or you can use two
I2C pins, but usually those pins are fixed in hardware. Just check out the library, then port the code.
I2C Wiring
Use this wiring if you want to connect via I2C interface
Connect Vin to the power supply, 3-5V is fine. Use the same voltage that the microcontroller
logic is based off of. For most Arduinos, that is 5V
Connect GND to common power/data ground
Connect the SCL pin to the I2C clock SCL pin on your Arduino. On an UNO & '328 based
Arduino, this is also known as A5, on a Mega it is also known as digital 21 and on a
Leonardo/Micro, digital 3
Connect the SDA pin to the I2C data SDA pin on your Arduino. On an UNO & '328 based
Arduino, this is also known as A4, on a Mega it is also known as digital 20 and on a
Leonardo/Micro, digital 2
By default, the i2c address is 0x77. If you add a jumper from SDO to GND, the address will change to
0x76.
© Adafruit Industries https://learn.adafruit.com/adafruit-bme280-humidity-barometric-
pressure-temperature-sensor-breakout Page 10 of 19
Inhaltsverzeichnis

















