View Single Post
  #8   Spotlight this post!  
Unread 24-12-2002, 23:22
kmcclary's Avatar
kmcclary kmcclary is offline
Founder 830/1015;Mentor 66/470/1502
FRC #0470 (Alpha Omega Robotics)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 1994
Location: Ann Arbor, MI
Posts: 491
kmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond reputekmcclary has a reputation beyond repute
Re: Calabrating the servos

Quote:
Originally posted by rust710
I have a servo that will not go to it's full range. ie 0 should be all the way to the left but it will only go to a forth of the way there from center but it goes all the way on the other side. Is there a way to calibrate a servo?
You can't calibrate the old fashioned PWM style RC servo. The very expensive "DIGITAL" servos you can calibrate, but they're still fairly new devices.

To work, standard PWM RC servos require a 5V positive going pulse, with a pulse width of roughly 1.0ms - 2.0ms, repeated at about 50 Hz. The pulsewidth encodes the "target" position. 1.0ms = full one way, 1.5ms = the "center" position, and 2.0ms = full the other way. The circuit board inside the servo compares the incoming pulse against one it generates itself based on its feedback pot. If they're different, the difference is stretched out and drives the motor the right way, creating a little "jerk" toward the target position. That's why you need to keep refreshing the servo with pulses, to "walk it" to where you wish it to be, and KEEP it in position against any backdrive forces.

There's nothing to calibrate in this system. Electrical parts COULD go bad, but that's rare. Most of the time either your mechanics fail, the driver transistors burn out, or the pot gets munged up, but I've yet to see the timing circuit screw up from a bad capacitor. The timer is a single IC.

The pot inside the servo CAN go bad, which COULD cause your symptoms, but it is MORE likely a problem with your transmitter CONTROL'S calibration, and not the servo itself.

Try this: Disconnect anything attached to your servo (to eliminate any "mechanical stops" from the thing you're driving). Now if your servo doesn't run the full travel, check your transmitter. They often have trim pots either beside the sticks, or under a cover somewhere (often on the back, or under a label plate) for setting a servo's "travel range" and "offset".

If you wish to test beyond that, here's Ahmet Onat's page on how servos work, including a cute little 555 based tester box you can build to check out servos:
- http://www.geocities.com/BourbonStre...rvobasics.html

[edit]
BTW... BE CAREFUL with Onat's wiring of the servo! The RED is the +5v, the BLACK is the Ground, and the OTHER COLOR (typically white or orange) is the PWM Signal lead that connects to the transistor, as is shown in the schematic.

However, in OUR servos, the white is on one EDGE, and is NOT the middle conductor! The wire ORDER for OUR servos is normally Orange/White(Signal), THEN Red(+5v), THEN Black(Ground), which is DIFFERENT than that schematic!

For more information, see this thread, called "Pwm":
http://www.chiefdelphi.com/forums/sh...ighlight=servo
[/edit]

Good luck, and Happy Holidays!

- Keith
__________________
Keith McClary - Organizer/Mentor/Sponsor - Ann Arbor MI area FIRST teams
ACTI - Automation Computer Technologies, Inc. (Sponsoring FIRST teams since 2001!)
MI Robot Club (Trainer) / GO-Tech Maker's Club / RepRap-Michigan) / SEMI CNC Club
"Certifiably Insane": Started FIVE FRC teams & many robot clubs (so far)!
2002: 830 "Rat Pack" | 2003-5;14: 1015;1076 "Pi Hi Samurai" | 2005-6: 1549 "Washtenuts"/"Fire Traxx"
2005-(on): 1502 "Technical Difficulties" | 2006-(on): FIRST Volunteer!
2009-(on): 470 "Alpha Omega" | WAFL | Sponsor & "Floating Engineer" for MI Dist 13 (Washtenaw Cnty)
2011: 3638 "Tigertrons" | 2013-(on): 4395 "ViBots" | 2014-(on) 66 "Grizzlies"
"Home" Teams: 66, 470, 1076, 1502, 4395
Local FIRST alumni at or coming to Ann Arbor (UM/EMU/WCC/Cleary)?
...We Want YOU as a Mentor! Please email me for info!
Support CDF Reputation - If a posting helped, thank 'em with rep points!
"It must be FRC build season when your spouse and children become 'Action Items 8 & 9'..."

Last edited by kmcclary : 24-12-2002 at 23:38.