Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
MG995-type metal-gear hobby servo

Measure Hobby Servo Positioning: Accuracy, Repeatability and Settling Under Load

Commanding a hobby servo to 90° does not prove that its shaft is physically at 90°. The command may be converted into a pulse width using library defaults, while the actual servo has its own centre, travel range, gear clearance and response to load.

For an animated model, a small difference may be harmless. For a camera fixture, instrument pointer or sorting mechanism, it may matter. A simple positioning test helps establish whether the assembled system meets its task before you spend time refining the control software.

Define the result the mechanism needs

Separate accuracy, repeatability and settling. Accuracy describes closeness to a chosen reference angle. Repeatability describes how consistently the same command produces the same result. Settling describes how long the output takes to reach and remain within an acceptable band.

Write an application requirement using measurable terms. For example, a display pointer might need to return within 2° of its marked position after each movement and settle within one second. Those are illustrative requirements; choose values from the mechanism's purpose and measurement capability.

PMD Way's servo collection includes an MG995-type metal-gear servo. Confirm the supplied variant's voltage, control signal, travel and current requirements. A family name or headline torque figure does not establish a precision specification or a continuous working load.

Understand what the control signal reports

In a conventional positional hobby servo, pulse width requests a position. The servo's internal controller attempts to reach that position using its own feedback. The ordinary external control lead does not return the measured shaft angle to your Arduino.

The official Arduino Servo API makes this distinction explicit: read() returns the requested setpoint, not the physical orientation. Printing that value is useful for recording the command, but it is not a position measurement.

Pololu's detailed servo-interface guide explains that pulse width does not have a universal correspondence to absolute angle. Centre, direction and usable endpoints can vary. Record pulse widths during calibration rather than assuming a library's degree labels are already calibrated to your hardware.

Build a fixture that measures the servo

Secure the servo case to a rigid base and fit a light pointer to a correctly matched horn. Place an angular scale around the shaft, with the scale centre aligned to the rotation axis. A pointer close to the scale reduces parallax; read it from the same direction each time.

Alternatively, use a suitable angle sensor or an overhead camera aligned to the shaft axis. Check the resolution and mounting stability of the measurement method. A scale readable only to about one degree cannot support a confident claim of tenth-degree repeatability.

Remove the working linkage for the first test. This isolates the servo and fixture before adding friction, compliance and external loads. Keep the pointer light and clear of obstructions throughout the intended range.

Make the power arrangement part of the test record

Use a regulated source within the verified servo supply range and capable of its transient current demand. Route servo current through appropriate wiring rather than through a microcontroller I/O pin or an underspecified board supply path.

Arduino's servo-motor guidance describes external servo power. For a conventional non-isolated control connection, provide the intended common signal reference between the controller and servo supply. Verify the connector pinout and logic compatibility; wire colours alone are not sufficient evidence.

Measure supply voltage near the servo during movement. If it drops substantially, a positioning problem may actually be a power-distribution problem. Record controller type, signal settings, supply voltage and cable arrangement with every test series.

Establish a conservative test range

Begin with the documented reference command and small movements around it. Increase the tested range only within the servo's verified operating limits and the fixture's clear travel. Do not search for endpoints by repeatedly driving into a mechanical stop.

The Arduino Servo documentation warns that attempts beyond a servo's travel can create a high-current condition. Stop and investigate unexpected buzzing, stalled motion or heating. A published “180°” range is not permission to use any arbitrary minimum and maximum pulse widths.

Select several test commands within the established range. Keep the values and pause duration fixed during the initial comparison. A changing test sequence makes it harder to distinguish a real effect from a procedural difference.

Approach each point from both directions

First approach the target from a lower commanded position, wait for the chosen settling interval and record the angle. Move away and repeat several times. Then approach the same target from a higher position and repeat the measurements.

Illustrative measurements at one target position
Approach Measured positions Observation
From lower position 89°, 90°, 89°, 90° About 1° spread within this small sample
From higher position 92°, 91°, 92°, 91° Similar spread but a different average

These invented values demonstrate the analysis, not expected MG995 performance. The two groups suggest a direction-dependent difference that a single one-way sweep would miss. Possible contributors include gear clearance, internal control behaviour and fixture compliance.

Keep the individual observations. Reporting only one average can hide both the spread and the direction effect. Repeat at other positions because behaviour may change across the travel.

Measure settling with an explicit acceptance band

Command a defined movement and observe when the pointer first enters the allowed band, then whether it stays there. A video recording can help distinguish travel time from overshoot or repeated corrections.

For example, reaching the target region after 0.3 seconds but oscillating outside it until 0.8 seconds gives a different result from settling at 0.3 seconds. State the band and observation method whenever you report a settling time.

Keep command-generation timing stable during the test. If the signal itself jitters or other firmware work changes its timing, investigate that before attributing all movement to the servo. An oscilloscope or logic analyser can help verify the delivered pulses.

Repeat with the real mechanism

Reconnect the intended linkage and repeat the same targets, approach directions and timing checks. Include the most demanding orientation and representative payload while staying within verified operating limits. Compare the results with the unloaded fixture.

If the error appears only under load, inspect supply sag, bracket flex, linkage binding and excessive mechanical demand. Calibration can correct a repeatable mapping error, but it cannot reliably remove changing flex or an overloaded drive. A command lookup table should describe measured behaviour, not conceal an unsuitable mechanism.

Save the measured range, raw results and test conditions. Recheck after replacing a servo or changing the linkage. That record turns a nominal angle command into a positioning system whose practical limits are understood.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat