Raspberry Pi I2C

So many choices

GPIO libraries

GPIO tutorials

Our first attempt: It used to be harder


Adafruit breakouts

One big board to study

The GPIO/Cobbler side

Devote on third of the board to GPIO/Cobbler connections. The Cobbler takes a lot of space, but it is pretty sturdy. You could also just try running a few wires to the board, but the cobbler is safer.

Add a least one pushbutton switch and one LED to this side of the board.

The PCA9685 side

The PCA9685 breakout is one of our few output I2C devices we have. Put in on the other side of the breadboard. Put a couple of LEDs close to it.

The middle

Leave this space for the input I2C devices such as a ADS1015 breakout or Adafruit 9-DOF breakout.

Looking at documentation

Let’s look at the first couple of paragraphs of the PCA9685 datasheet. Look at the first couple of paragraphs.

Next look at the Adafruit 16 Channel Servo Driver with Raspberry Pi tutorial from Adafruit. I will try to find the battery packs.

Using the Adafruit Python PCA9685 library determine how to fade a LED from bright to dim over a period of 10 seconds.

The PCA9685 datasheet (p 18) show how to turn on a single LED. Can this be done with the Adafruit library.

Read the Python documentation for classes and determine how to extend the PCA9685 class.