PDA

View Full Version : Trimming Servo



Meriachee
- 17th April 2009, 00:03
I'm looking for some guidance.

I'm using a servo to control a set of crossing gates on a model railway layout. The servo routine works fine, but the values of the pulse train are hardcoded, mostly because the servo appears to start slow and speed up, then slow down as it gets to the end of it's "rotation". Given that every servo has a slight difference in the pot, there is a slight difference in where the "fully up" and "fully down" numbers are.

I'm looking for ideas on trimming the "up" and "down" positions. The solution would modify the existing numbers by some relatively small amount (+ or - 25) and should probably be single digits.

It seems that a pot is easiest, although the calibration seems to be a pain, and an encoder would work, but can the output become single digits? Or, as I suspect, does somebody have a "been there, done that" really slick idea for me to give you credit for?

Any suggestions appreciated
Cheers
Gary

Acetronics2
- 17th April 2009, 09:10
Hi, Gary

I suppose you have the source level program, so

What I usually do for R/C devices :

One jumper allows a programming sequence when placed before power up; if not, "normal " program starts :

1) program 1 st position ( a couple of pushbuttons for + and - trimming are fine)

2) take jumper off to valid setting and place it back.

2) program 2 nd position

3) take jumper definitly off

The program then stores settings into the EEPROM and enters "its "normal" running.

Alain