Skip to content
Discussion options

You must be logged in to vote

Hello, I am wondering how I could change the code to where it controls 144 servos with the same movements (12x12 servos). Would I only have to change the driver count and the canvas width and height on the top part of the code or do I have to modify more?

Originally posted by @SamuA00 in #3 (comment)

Hello @SamuA00, yes, you're right, some constants and code will need to be edited for builds with different number of servos and/or different layouts:

  • DRIVER_COUNT, should be set to number of PCA9685 drivers used. Current code assumes each driver is connected to 16 servos. So, should define as total servo count divided by 16, e.g. 9 for 144 == 12x12 servo build.
  • CANVAS_WIDTH, servos per ro…

Replies: 1 comment 2 replies

Comment options

aaronse
Dec 9, 2021
Maintainer Author

You must be logged in to vote
2 replies
@SamuA00
Comment options

@aaronse
Comment options

aaronse Dec 9, 2021
Maintainer Author

Answer selected by aaronse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4 on December 08, 2021 23:44.