From the course: Raspberry Pi: GPIO
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Connect the BME280 via I2C
- [Instructor] In the last video, we connected the Raspberry Pi to the breaboard and the PCA 9685. Now, let's connect the BME 280. You'll remember how in the SPI chapter we connected the BME 280 via SPI. The version of the BME 280 I've purchased supports both SPI and I squared C. Not all devices have both SPI and I squared C. To connect the BME 280 with I squared C, start with the red power line connected to VCC. Check to make sure you aren't using the orange wire. Connect it to the breadboard voltage reel. Then connect the BME 280 black ground to the breadboard ground. The BME 280 also has a yellow SCL line. Connect that to the breadboard SCL row. And connect the blue SDA line to the SDA row. That's it. The BME 280 is now connected to I squared C. You'll notice the BME 280 has two additional lines, orange and green. These are used for SPI support and aren't needed here.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Introduction to I2C devices1m 10s
-
(Locked)
Connect the servo controller via I2C3m 54s
-
(Locked)
Connect the BME280 via I2C1m 27s
-
(Locked)
Install software and test5m 52s
-
(Locked)
Control the BME280 and PCA96852m 56s
-
(Locked)
What you learned about I2C1m 33s
-
(Locked)
I2C in depth5m 17s
-
(Locked)
-
-
-