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

XBee3 PWM output for servo motor

+2 votes
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()

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, 2019 in Python by dominik.windhab New to the Community (6 points)
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?


Please log in or register to answer this question.