How do I connect two I2C devices to my R Pi? Specificaly 16 Channel 12 Bit PWM Servo Motor Driver and LED Controller-PCA9685 and Gyroscope?
2 Answers
I2C is a bus. You can connect multiple devices to a bus.
I2C requires that each device on the bus has a unique address (generally a small number between 0 and 127). Manufactures tend to give different types of device different addresses, so normally there is no need to do anything special.
As far as wiring is concerned just connect each device to SDA and SCL (and power and ground). The SDA and SCL signals can be shared between devices, just like power and ground can be shared.
You need multiple I2C Buses for that, which you need to configure on your Pi properly. Here is a guide!