Great Job. Quick Question re; multiple Servo's #19
-
How do you recommend handling multiple servos? I have a project with 16 servos with different PWM limits and velocity profiles for smoothing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hi @TimRosener, You can make as many instances of Derivs_Limiter as you want. You can have one Derivs_Limiter per servo and have separate velocity and range limits for each servo. This library doesn't help with actually sending control signals to many servos, it only provides the smoothed angle to send to the servo. Do you have independent control of all 16 of your servos working? (without velocity profiles)
Thanks to you, I realized that I didn't have an easy way to handle an array of Derivs_Limiter objects. Please update the library to 3.1.0 or newer and let me know how it works for you. For some reason the new library version isn't showing up in Arduino's library manager, so you may have to download the updated library from here: https://github.com/joshua-8/Derivs_Limiter/releases/tag/v3.1.1 Here is an image showing 4 independent Derivs_Limiters running at once (it's the output of the Multi example). It sounds like you're working on a very cool project! Good luck, and feel free to ask any other questions you might have. -- joshua-8 |
Beta Was this translation helpful? Give feedback.
Hi @TimRosener,
Thank you for your interest in this library!
You can make as many instances of Derivs_Limiter as you want. You can have one Derivs_Limiter per servo and have separate velocity and range limits for each servo. This library doesn't help with actually sending control signals to many servos, it only provides the smoothed angle to send to the servo.
Do you have independent control of all 16 of your servos working? (without velocity profiles)
Controlling 16 servos is a challenge for a standard Arduino. The standard library has a limit of 12 servos https://www.arduino.cc/reference/en/libraries/servo/
If you haven't already found a way to control 16 servos, here are some suggestions: