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.
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:
Name | Type | Required? | Description |
---|---|---|---|
i2c_bus | string | Required | The index of the I2C bus on the board with GPIO pins your pca9685 is connected to. Often a number.Example: ”1” |
i2c_address | int | Optional | The 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.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!