Society of Robots - Robot Forum

Software => Software => Topic started by: weighates on December 18, 2009, 01:55:16 AM

Title: Hold Servo Program
Post by: weighates on December 18, 2009, 01:55:16 AM
Hi all.   Love this site so I thought I would contribute.  The current hold servo program is written for the atmega8.  Alot of people are now using the atmega 168 or atmega 328 so here is a hold servo program for you folks.   Its already in hex so just uphold it to your mc and it should center your servo's.   If there are any problems please contact me so I can work them out.   Tested using a atmega 168p.  

Chris

PS- only for use on hitech servo's.   If there are requests I can modify it to any servo you just need to provide the manu and model.
Title: Re: Hold Servo Program
Post by: z.s.tar.gz on December 18, 2009, 12:08:11 PM
Source code would be prefered as well.
Title: Re: Hold Servo Program
Post by: Snav on July 10, 2010, 03:54:26 AM
Hi, i've been trying to center my hs-311 servo on my 168 using your hex file but no matter how sensitively i turn the pot it will not stop and just keeps spinning without signs of slowing. Any suggestions?


Edit:: After reading http://www.societyofrobots.com/robotforum/index.php?topic=2724.0 (http://www.societyofrobots.com/robotforum/index.php?topic=2724.0)

 if i set

         servo_left(35);
         servo_right(35);

and then move the pot on the servo until it stops moving, would this be the same as centering it ? As it supplies enough time to place the servo in the middle position?

or have i just completely misunderstood?