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

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.

Contents