uccwiki

The control trimming and centering presents a number of problems for the LURC, as the serial control allows us to push the servos past soft-limits imposed by standard remote control transmitters. This means we need to do sanity checking on values sent, both in the car (on the avr) and on the desktop. The in-car sanity checking should only check if the value is outside the physical capabilities of the servo, while the desktop software should check the values are within 'useful' ranges. As such, the in-car checking does not need to be varied and can be hard-coded in, while the desktop ranges need to be adjustable so that the controls can be trimmed and centered.

How servos work

A servo of the type used in small remote control vehicles wants a square wave signal with a period of 20ms. The amount of time the signal is "on" determines the rotation of the servo. Typically, an "on time" of 1.5ms will be center, 1ms will be extreme left, and 2ms will be extreme right. This varies slightly from servo to servo of course, which is why most things involving servos have some sort of trim setting.

The physical capability boundaries for each servo in the LURC are as follows, given in hex values. Even though the servos are very similar or identical, the values differ due to different timer modes:

The 'useful' values for each servo are subject to change because of adjustments to the car and parts. Here are some one-off values to give an idea of what they should be close to:

uccwiki: LURC/Trimming (last edited 2010-07-12 19:31:02 by BobAdamson)