Society of Robots - Robot Forum

Software => Software => Topic started by: fleseriutiberiu on January 28, 2012, 04:28:56 AM

Title: Servo control: maintain PWM vs one-shot
Post by: fleseriutiberiu on January 28, 2012, 04:28:56 AM
Hi everyone,

I am relative new to this servo control with microcontrolers and I have the following issue: I have a MSP430F1232 TI microcontroler and trying to controll a servo. My question is: should the PWM signal be maintained after the servo has reached the end position? or the PWM should be maintained just for a few milliseconds until the servo has reached its target position?

Thank you
Title: Re: Servo control: maintain PWM vs one-shot
Post by: AntiLogick on January 28, 2012, 06:34:39 AM
If you want that servo will go to one position for example in the middle, you have two choices:
Enable pwm all the time.
Or enable pwm just little amount of time that servo can turn i this possition.
The main differences between them are:
if you doing first option, servo won't let you turn it by your hand or something, i mean i holds this position and dont change it until you give other duty cycle. The second option doesnt do this. It turns servo to position, but you can easily change it with mechanical energy.

P.S sorry for bad eng. i hope you understood me.