So many choices
- Raspberry gPIo tutorial by sparkfun
- Adafruit’s GPIO Setup lesson part of Adafruit’s guides
- MagPi: Simple Electronics with Essentials GPIO Zero
Our first attempt: It used to be harder
- The pinout — Physical vs GPIO
- I2C SDA on physical pin 2I2C SDC on physical pin 3
- Intel SMBus
- Kernel documention for i2c devices
- Files and devices — find them
- Using I2C bus from user space
- GPIO, SPI and I2C from Userspace, the True Linux Way
- Adafruit’s I2C list
- Using the Adafruit Unified Sensor Driver
- ADS1015 4-channel ADC
- PCA9685 16-channel PWM driver
- Adafruit 9-DOF breakout
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.
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