DEV Community

Pomeas Vision
Pomeas Vision

Posted on

How to Choose a Motorized Zoom Lens for Machine Vision: Field Notes from the Factory Floor

How to Choose a Motorized Zoom Lens for Machine Vision: Field Notes from the Factory Floor

Choosing an optic for an automated inspection station used to be a one-way decision. You picked a fixed-focal-length lens, locked the working distance, and hoped the part never changed size. When the product mix changed, you changed the lens — or worse, the whole lighting-and-optics assembly.

Motorized zoom lenses changed that equation. Instead of re-engineering the station for every new SKU, the optic itself adapts: focal length, and sometimes aperture and focus, adjust under software control while the camera stays put. After years of supporting integrators who build inspection cells around these lenses, here is the selection logic we walk through with customers, in the order that actually matters.

1. Start with the sensor, not the lens

The first question is never "which zoom lens?" It is "what sensor is on the camera?" A zoom lens projects an image circle; if that circle is smaller than your sensor, the corners go black or soft. If it is much larger, you are paying for coverage you never use.

Practical rule: match the lens's specified sensor format to your camera's format, and stay at or slightly above it. A 2/3" lens on a 1/1.8" sensor is fine. A 1/2" lens on a 1" sensor is not — the edges of your field of view will be unusable.

For high-resolution sensors (20 MP and beyond), also check that the lens is rated for that pixel count, not just the format. Two lenses can both "support 2/3"" while only one resolves 3.45 μm pixels across the whole frame.

2. Fix the working distance envelope, then the magnification range

Working distance (WD) — the gap between the front of the lens and the object — is usually dictated by mechanics: rotary fixtures, robot reach, lighting geometry, safety covers. Write down the minimum and maximum WD your station can physically accept before you look at any datasheet.

Then compute the magnification range you need:

  • Field of view (FOV) = sensor dimension ÷ magnification
  • So magnification range = (smallest sensor dimension ÷ largest FOV) to (largest sensor dimension ÷ smallest FOV)

Example (illustrative): a 1/1.8" sensor is about 7.2 mm wide. If you need to see fields of view from 10 mm to 60 mm wide, your magnification range is roughly 0.12× to 0.72×. A motorized zoom lens that covers 0.1×–0.8× handles it with margin; a fixed 0.5× lens only handles the middle of that range.

This single calculation eliminates most candidates in a catalog. Everything after this is refinement.

3. Zoom ratio is flexibility, but depth of field is the tax

Zoom ratio tells you how much the magnification can vary: a 6.5× zoom covering 0.1×–0.65× gives you a wide envelope. But every optical system pays for zoom range with depth of field (DOF) behavior, especially at higher magnifications.

Two things to check on the datasheet:

  • DOF at your actual magnification, not the headline number at the low end. DOF shrinks roughly with the square of magnification — halving your magnification buys you about four times the depth, which is why the low-magnification end always looks flattering and the high end always looks thin.
  • Whether the lens refocuses motorized or manually. If focus is motorized and repeatable, the controller can re-shift focus when you zoom — this is what makes a motorized zoom lens genuinely programmable rather than just adjustable.

If your station inspects parts with height variation (castings, molded parts, PCBAs with connectors), budget DOF before zoom ratio. A smaller zoom range with generous DOF often outperforms a big zoom range that lives at the edge of focus.

4. Resolution and contrast across the whole zoom travel

Datasheet MTF curves are usually shown at one or two magnification settings. Ask for (or measure) performance at the magnifications you will actually run. Real-world failure mode: the lens looks excellent at 0.2× and noticeably soft at 0.6×, and nobody notices until the vision algorithm's edge-detection thresholds start drifting between recipes.

If you run line-scan or large-area sensors, also confirm the lens is designed for that image circle at full aperture, not just stopped down.

5. Motorization: what is actually under software control

"Motorized" covers three different levels of capability:

  1. Motorized iris only — brightness adapts automatically. Useful when lighting varies, but magnification is still manual.
  2. Motorized zoom + manual focus — you can change FOV remotely, but an operator re-focuses after each change.
  3. Motorized zoom + motorized, repeatable focus — the lens stores position pairs (zoom, focus) per recipe and returns to them.

Level 3 is what makes multi-SKU automation practical. When evaluating, ask two questions: what is the position repeatability of each motor, and how is the lens controlled — RS-232, USB, or Ethernet — and does your vision platform already have a driver for it? A lens that integrates in an afternoon is worth more than a slightly better optic that needs custom firmware work.

6. The hidden parameters that decide uptime

  • Vibration and shock rating: motorized optics contain real mechanics. A lens rated for a lab bench will drift on a press-adjacent line.
  • Zoom/focus travel speed: if your recipes switch 200 times a shift, seconds per switch are throughput.
  • Back-focus adjustment: lets you compensate for mechanical tolerances in the camera mount without shims.
  • C-mount thread quality and flange repeatability: cheap mounts introduce tilt, and tilt shows up as one-sided blur you will chase for weeks.

A compact selection checklist

  1. Sensor format and pixel size → candidate lens families
  2. WD envelope (mechanical) → fixed WD range
  3. FOV range needed → magnification range (divide sensor by FOV)
  4. Part height variation → required DOF at the top magnification
  5. Recipe-switch frequency → motorization level and control interface
  6. Environment → vibration rating and mount quality

Wrapping up

A motorized zoom lens is not a luxury — for factories running mixed products on shared stations, it is usually cheaper than maintaining several fixed-magnification optics or re-fixturing per SKU. The discipline is to let the sensor, WD envelope, and DOF requirements drive the choice, and to treat the motor control interface as an integration decision, not a footnote.

We publish field notes on machine vision optics — lens selection, FOV and depth-of-field math, and inspection-line integration — at the POMEAS knowledge base: https://www.pomeas-vision.com/Knowledge/

Top comments (0)