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.

What you learned about I2C

What you learned about I2C

From the course: Raspberry Pi: GPIO

Start my 1-month free trial

What you learned about I2C

- [Instructor] Let's take a minute to review this project. The project used several devices, a BME 280 weather sensor, a PCA 9685, and two servos. Like SPI, I2C allows more than one device on the bus. The weather project used two I2C devices, the PCA 9685 and the BME 280. The important thing about I2C is that it is one of many communication protocols, such as SPI and 1-Wire. I2C uses fewer control wires than SPI, but more than 1-Wire, but I2C isn't a complete solution. Just like SPI, it requires libraries and additional software to actually make things work. In our case, we had to install smbus2, i2c-tools, pca9685.py, and servo.py before Python could communicate with the respective devices. Like SPI, I2C allows more than one device on the bus. The weather project used two IC2 devices, the PCA 9685 and the BME 280. Finally, there's a catch to IC2, but it requires a demonstration and I'll talk more about that in the…

Contents