Society of Robots - Robot Forum

Mechanics and Construction => Mechanics and Construction => Topic started by: mrcw2 on May 20, 2011, 03:02:41 AM

Title: problem after converting servo
Post by: mrcw2 on May 20, 2011, 03:02:41 AM
Hi  I use a Phidgets advanced servo controller to control a Hitec HSR-1422CR servo.  I can start the servo with the command

advServo.Servos[0].Engaged = True;

and stop the servo with

advServo.Servos[0].Engaged = False;. 

But I decided to use a Hitec HS-5745MG for more power.  I converted the servo and set the pot to the null position (servo stationary).  Now the first command starts the servo, but the second command doesn't stop the servo. 
Anybody got any idea what else I need to do?
Title: Re: problem after converting servo
Post by: rbtying on May 20, 2011, 07:17:08 AM
Are you able to get a full range of motion from the servo (-full_speed to +full_speed)? Stopping the signal isn't guaranteed to stop the servo - only a 1500us pulse is going to do that.  The behavior when the servo is not given a signal is not defined, so it'll be inconsistent between servos.
Title: Re: problem after converting servo
Post by: mrcw2 on May 20, 2011, 07:53:40 AM
yes I get the full range of movement.

doesn't a 1500 us puts the servo in the centre position (not bacwards or forwards)?   When I disengage the servo, in whatever position, surely it should stop/disengage.  The other servo stops/disengages whatever position it's in, which is what I think this servo should do.
Title: Re: problem after converting servo
Post by: Gertlex on May 28, 2011, 03:02:58 PM
Did you test the servo before modifying it?
Title: Re: problem after converting servo
Post by: waltr on May 28, 2011, 03:50:57 PM
I don't know what advServo.Servos[0].Engaged = True; does but a servo requires a pulse about every 20msec. From a modified continuous rotation servo the 'neutral' pulse (1500us) must be send at 20ms intervals. So as rbtying said, not sending a pulse is an undefined condition and probably will not stop the servo motion.
Title: Re: problem after converting servo
Post by: mrcw2 on May 29, 2011, 02:26:18 AM
yes the servo worked fine before I played with it, now the servo will engeage ok but won't disengage.  If I apply the correct pulse the servo will stop - which is correct.  Do i want the servo to disengage?  At least now If it's still engaged but on an incline, it holds it's position when stopped.
Title: Re: problem after converting servo
Post by: Razor Concepts on May 29, 2011, 12:08:44 PM
Because that servo is a digital servo its programming may be different from the analog servo.