SparkFun BME280 Breakout Hookup Guide - learn.sparkfun.pdf
(
2088 KB
)
Pobierz
SparkFun BME280 Breakout Hookup Guide
≡
Pages
CONTRIBUTORS:
FAVORITE
0
MTAYLOR
SHARE
Introduction
The BME280 Breakout Board is the easy way to measure pressure and humidity,
and without taking up a lot of room. It gives you easy to solder 0.1" headers, runs
I2C or SPI, takes measurements at less than 1mA and idles less than 5uA (yes,
microamps!).
The BME280 can be used to take pressure, humidity, and temperature readings.
Use the data to get relative altitude changes, or absolute altitude if the locally
reported barometric pressure is known.
The BME280 Breakout Board.
Ranges:
Temp: 40C to 85C
Humidity: 0 100% RH, =3% from 2080%
Pressure: 30,000Pa to 110,000Pa, relative accuracy of 12Pa, absolute
accuracy of 100Pa
Altitude: 0 to 30,000 ft (9.2 km), relative accuracy of 3.3 ft (1 m) at sea level,
6.6 (2 m) at 30,000 ft.
Covered In This Tutorial
This tutorial gives you all you need to get going with the BME280. First we’ll take
a look at the IC and hardware, then we’ll use the SparkFun BME280 Arduino
library to get data out of it by SPI or I2C.
The tutorial is split into the following pages:
BME280 Hardware Overview – Basic information about the hardware.
Assembly – Connect to the BME280 by I2C or SPI
Installing the Arduino Library – How to get it
Using the Arduino Library – explains the user API
Theory and Example Data – Showcase of the examples included with the
library.
Resources and Going Further – Links to the datasheet and application notes,
plus inspirational projects
Required Materials
Get the datasheet and application notes now. Keep a copy to refer to once you get
off the charted path.
Bosch BME280 Datasheet
This tutorial explains how to use the BME280 Breakout Board with an RedBoard
(or Arduino). To follow along, you’ll need the following materials:
BME280 Breakout Board
Arduino UNO, RedBoard, or another Arduinocompatible board
Straight Male Headers – Or wire. Something to connect between the breakout
and a breadboard.
Breadboard – Any size (even mini) should do.
M/M Jumper Wires – To connect between Arduino and breadboard.
Logic Level Converter – To shift SPI levels from 5v to 3.3v.
The BME280 is a 3.3V device! Supplying voltages greater than ~3.6V can
permanently damage the IC. As long as your Arduino has a 3.3V supply
output, and you're OK with using I
2
C, you shouldn't need any extra level
shifting. But if you want to use SPI, you may need a Logic Level Converter.
If you use a 3.3Vbased micro – like the Arduino Pro 3.3V or 3.3V Pro Mini –
there is no need for level shifting.
Suggested Reading
Connection of the BME280 uses some basic concepts shared by a lot of our
products. If you want to get more familiar with these basic tasks, these articles can
help you out.
Serial Peripheral Interface (SPI)
InterIC Communication (I
2
C)
Logic Levels
BiDirectional Level Shifter Hookup Guide
If the concepts of pressure are weighing on you, check out these links.
(external) Air Pressure Altitude Calculator – Play around to get a feel for
what the pressures are at different altitudes.
Wikipedia: Atmospheric_pressure – Has a nice equation for conversion of
pressure and altitude (referenced for library code).
MPL3115a2pressuresensorhookupguide – pressurevsaltimetersetting –
Confused why the reading pressure doesn’t match the reported pressure from
your local weather station? Read this section.
Hardware Overview
The Front Side
The BME280 Breakout board has 10 pins, but no more than 6 are used at a single
time.
Use one header for I2C connections, or the other for SPI connections – no need to
use both!
The left side of the board are power, ground, and I
2
C pins.
Pin
Pin Function Notes
Label
GND
3.3v
Ground
Power
Supply
0V voltage supply.
Supply voltage to the chip. Should
be regulated between 1.8V and
3.6V.
I
2
C: Serial data (bidirectional)
SDA
Data
SCL
Serial Clock
I
2
C serial clock.
The remaining pins are broken out on the other side. These pins break out SPI
functionality and have another power and ground.
Pin Label Pin Function Notes
GND
3.3v
Ground
Power
Supply
0V voltage supply.
Supply voltage to the chip.
Should be regulated
between 1.8V and 3.6V.
Clock line, 3.6V max
Data comming out of the
BME280
Data going into the BME280,
3.6V max
Active low chip select, 3.6V
max
SCK
SDO
Clock
Data out
SDI
Data in
!CS
Chip Select
(Slave
Select)
The Back Side
Plik z chomika:
Zabr7
Inne pliki z tego folderu:
#13 [Arduino] Wstęp.mp4
(316351 KB)
#22 [Arduino] Piny analogowe Port szeregowy (odczyt).mp4
(183980 KB)
#17 [Arduino] Diody w pętli.mp4
(193024 KB)
#15 [Arduino] Programowanie w C.mp4
(61460 KB)
#25 [Arduino] Przyciski.mp4
(192403 KB)
Inne foldery tego chomika:
ABC Krotkofalowca SP5HS
Akustyka i elektroakustyka
Alain Charoy - Kompatybilność elektromagnetyczna. Zakłócenia w urządzeniach elektronicznych. Tomy 1-4 [pdf]
CB
Czasopisma i Artykuły prasowe
Zgłoś jeśli
naruszono regulamin