Controlling a servo with VOXL
vmassague last edited by
Hi ModalAI Team,
I would like to ask if you have any tips regarding how can I successfully control a servo motor with the m500 drone and VOXL. I know there are free PWM in the Flight Core but as I understand it, they are all used by the motors.
Another option I was thinking of is to get a PWM Driver connected to an I2C available on the VOXL board. Finally, I would use the voxl_io library that you provide to communicate.
Do you have any recommendations, tips, or suggestions? Is there a better way more straightforward to control a servo with the m500 drone?
Chad Sweet last edited by
You could use an i2c to PWM breakout board from Sparkfun or Adafruit and then voxl-i2c to communicate with it https://docs.modalai.com/voxl-i2c-io/
Additionally, there is a python wrapper for libvoxl_io i2c functionality, so it should be relatively straightforward once you have the i2c->pwm board hooked up to VOXL i2c port. https://gitlab.com/voxl-public/core-libs/libvoxl_io/-/tree/master/lib/python