Configure a PCA9685 Board

Configure a pca9685 board to integrate a PCA9685 Arduino I2C Interface into your machine:

Navigate to the CONFIGURE tab of your machine’s page in the Viam app. Click the + icon next to your machine part in the left-hand menu and select Component. Select the board type, then select the pca9685 model. Enter a name or use the suggested name for your board and click Create.

An example configuration for a pca9685 board in the Viam app Config Builder.

Edit the attributes as applicable to your board, according to the table below.

  "components": [
      "name": "<your-pca9685-board-name>",
      "model": "pca9685",
      "type": "board",
      "namespace": "rdk",
      "attributes": {
        "i2c_bus": “<string>”,
        "i2c_address": <int>
      "depends_on": []

The following attributes are available for pca9685 boards:

i2c_busstringRequiredThe index of the I2C bus on the board with GPIO pins your pca9685 is connected to. Often a number.
Example: ”1”
i2c_addressintOptionalThe PCA9685’s unique I2C address.

Have questions, or want to meet other people working on robots? Join our Community Discord.

If you notice any issues with the documentation, feel free to file an issue or edit this file.