Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

Set min and max positions programmatically

Hello,
I’m using a number of mini maestro 24 boards for a project, and it would be useful to be able to set the min and max position of each servo programmatically through a serial interface command - rather than the configuration utility. Is there a way to do this?
Thanks,
Matt

Hello, Matt.

I moved your post to the “Servo controllers and servos” section of the forum since it is specific to the Maestro.

There is no way to set the Min and Max limits for the servo channels through the serial interface. However, you might consider limiting the min and max values you send each channel to in your program instead. This should work as long as the limits on the Maestro are configured to a larger range than you are commanding it to be from your program.

If you are still interested in changing those values programmatically, it is possible to do so through USB using our Software Development Kit (SDK). The Usc class has the source code for doing this. However, please note that these values are stored in the Maestro’s EEPROM, which is rated for 100,000 erase/write cycles, so you should be careful not to change them rapidly in your program or that limit could potentially be reached quickly.

Brandon