KitronikLtd / Kitronik-Pico-Robotics-Board-MicroPython

Example code for the Kitronik Pico Robotics board ( www.kitronik.co.uk/5329 )
MIT License
19 stars 10 forks source link

Continuous rotation servo support #2

Closed shepai closed 2 years ago

shepai commented 2 years ago

Hi, I was reading through the datasheet and it suggested that the board supports continuous rotation servos. I was wondering how to do this? I currently am writing to the servos and only being able to move between 0 and 180. Is there a way to have a speed between -1 and 1?

Thanks in advance :)

AlasdairAtKitronik commented 2 years ago

Hi @shepai, controlling a continuous rotation servo still uses '0-180' as in an put, with 90 being stationary, 0 full speed one direction and 180 being full speed the other direction. This should work with the module provided. Have you tried this with continuous rotation servos and it just hasn't worked at all?

shepai commented 2 years ago

Hi @AlasdairAtKitronik Thanks for your quick reply! Ah yes, works fine. It seems the motors I had were attached to a chassis that required more torque than they could give out. When I detached them and ran the code, the servos moved continuously. Thank you :)

AlasdairAtKitronik commented 2 years ago

@shepai Glad it's all sorted :)