From the course: Raspberry Pi: GPIO
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Introduction to I2C devices
From the course: Raspberry Pi: GPIO
Introduction to I2C devices
- [Instructor] There are a couple of ways to communicate between a Raspberry Pi and an integrated circuit or a module. We've already discussed direct connections to the GPIO, the 1-Wire protocol, and SPI. There's another way to connect very similar to SPI, but it's called Inter-Integrated Circuit or I2C. I2C isn't difficult to work with, but there are a few things you'll want to be aware of. In this project, I'll use I2C to connect the BME280 weather sensor. The BME280 is interesting in that can be connected via either SPI or I2C. I'll also use I2C to connect a PCA9685 servo driver, which will control the servos moving the temperature and barometric pressure gauges. This looks complex, but we'll break it down into smaller parts in the following videos. So let's get started with I2C.
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)
-
-
-