Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 5 months ago.
Continuous servo PWM LPC1768
Hi Guys,
I need to make a program in order to control a continuous servo motor to turn clock wise or anticlockwise in various speeds depending on the reading from a sensor. My PWM on the oscilloscope works as i wanted to but the servo does not react to that. instead it maintains a rotation in one side. I use a springRC continuous servo. the way i do it is by altering the duty cycle of the PWM around 50% depending on the direction i need (above or below for each direction of rotation). i maintain a steady signal period of 3ms for the PWM.
do you have any suggestions on how to make this work?
Thank you in advance Andreas
If on the olliscope it works as you want, you should have a look at its datasheet what kind of input signal it expects. Is your period for example what it needs?
posted by Erik - 20 Apr 2017Thank you Erik! I just found the problem. I used a program that I previously wrote for a different servo and even though the period and PWM control was correct I used I bias on the output that pushed this type of servo into rotation despite what the PWM was. You were correct though this type of servo has a different period that regular servos.
posted by Andreas Kyriacou 20 Apr 2017