Author Topic: Hold Servo Program  (Read 2404 times)

0 Members and 1 Guest are viewing this topic.

Offline weighatesTopic starter

  • Jr. Member
  • **
  • Posts: 12
  • Helpful? 0
Hold Servo Program
« 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.
« Last Edit: December 18, 2009, 01:58:10 AM by weighates »

Offline z.s.tar.gz

  • Supreme Robot
  • *****
  • Posts: 540
  • Helpful? 5
  • Linux Guru
Re: Hold Servo Program
« Reply #1 on: December 18, 2009, 12:08:11 PM »
Source code would be prefered as well.
Save yourself the typing. Just call me Zach.

Offline Snav

  • Beginner
  • *
  • Posts: 3
  • Helpful? 0
Re: Hold Servo Program
« Reply #2 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

 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?
« Last Edit: July 10, 2010, 07:23:52 AM by Snav »

 


Get Your Ad Here