XBee3 PWM output for servo motor

Hi!
I tried to connect a servo motor (ES08AII) to the XBee3 PWM output. It has a default frequency of 15635Hz

>>> pwm2 = PWM(‘P0’, duty=512)
>>> pwm2.freq()
15635

According to the docs (https://www.digi.com/resources/documentation/digidocs/pdfs/90002219.pdf) there is no way to change this frequency:

>>> pwm2.freq(50)
Traceback (most recent call last):
File “”, line 1, in
NotImplementedError: can’t set PWM frequency

I tried to implement a 50hz/1600us cycle via sleep function, but it seems like this does not give enough precision for the motor.

Is there a way to control the servo via the XBee3?
Are there plans to implement the .freq() function in the near future?

2 Likes

I’m trying to achieve the same thing.

I can only get the servo to do a full CW rotation. Can’t get it to any other positions or to move CCW.

Any help on this?

Cheers