Servo 2040 and servo rotation direction

Hi, moving from PCA9685 to Servo 2040 so new here! I noticed the horn rotates now counter clockwise, from right (min) to left (max). Freq is set at 50hz. Tried several servos so this behavior si definitely due to the 2040 board. Any idea why is this and how I can change it back to clockwise ?

Hi @cezar,

I am not familiar with how the PCA9685 drives servos, but minimum and maximum on Servo 2040 should relate to the smallest and largest allowed pulses (500 and 2500, respectively). It could be that how these map to angle (or value()) is different between the two products. Left and right are relative to how you hold to servo after all.

In any case, the mapping of servo pulse to angle/value can be customised on the Servo and ServoCluster classes by changing its Calibration. See: pimoroni-pico/micropython/modules/servo at main · pimoroni/pimoroni-pico · GitHub

Edit: Just noticed your post was from 2023 not 2024. Apologies for the rez!