Home/Support/Support Forum/XBee3 PWM output for servo motor
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

XBee3 PWM output for servo motor

+1 vote
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 "<stdin>", line 1, in <module>
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?
asked Jan 17 in Python by dominik.windhab New to the Community (5 points)

Please log in or register to answer this question.

...