System designGuide

PCB visual inspection camera setup for handheld boards

Build a PCB visual inspection camera station with useful screen magnification, clear component detail, hand clearance and responsive live video.

LumaSpec Vision11 min read Share on LinkedIn

On this page 11 sections
  1. 011. Define the inspection task before choosing parts
  2. 022. Convert screen magnification into field of view
  3. 033. Check whether the image contains enough detail
  4. 044. Choose optical magnification and working distance together
  5. 055. Measure the usable handling envelope
  6. 066. Expect tilted boards to leave the focus zone
  7. 077. Make lighting adjustable rather than merely brighter
  8. 088. Treat responsiveness as an end-to-end requirement
  9. 099. Commission the station with representative boards
  10. 1010. Know when a single live camera is the wrong answer
  11. 11Questions

A live-view station can make small PCB features easier to inspect while leaving both hands free to hold and tilt the board. The difficult part is not obtaining a large picture. It is preserving useful detail, keeping the image responsive, and maintaining enough space beneath the optics. This guide turns a screen-magnification request into measurable requirements, then connects those requirements to camera sampling, lens geometry, mounting and lighting. Treat the station as a visual inspection aid, not an automatic acceptance system.

1. Define the inspection task before choosing parts

Start with the smallest feature you must judge, rather than the overall component size. Finding a missing component requires less detail than evaluating a narrow solder bridge or a partially visible joint. Use dimensions from the component drawing rather than relying on an ambiguous package size code.

Write down four acceptance requirements:

  • Detail: the smallest feature that must remain distinguishable under realistic lighting.
  • Coverage: how much board must fit in the inspection view without repositioning.
  • Clearance: the space needed for fingers, underside components and board tilt.
  • Response: how much image delay is acceptable while moving the board.

For a planning example, suppose you want a 32 mm-wide view, a 0.05 mm feature visible across several pixels, and at least 150 mm of usable vertical clearance. These are application requirements, not specifications for the candidate products below.

Inspect unpowered boards unless the task specifically requires an approved powered-test procedure. Provide suitable ESD handling and a safe resting place so neither hand has to support the board continuously.

2. Convert screen magnification into field of view

Screen magnification is the displayed feature size divided by its physical size. It depends on the monitor, application window and image scaling, not just the lens.

Displayed magnification = displayed image width / object field width Object field width = displayed image width / displayed magnification

Suppose the actual rendered image occupies 480 mm across the screen. To obtain a displayed magnification of 15x:

Object field width = 480 mm / 15 = 32 mm

A 1 mm feature would then appear 15 mm wide on that display. This does not mean the lens needs 15x optical magnification. Optical magnification describes the relationship between the object and its image on the sensor.

Measure the displayed image itself, excluding toolbars, borders and unused screen area. If the application fits the image into a smaller window, the displayed magnification changes. The guide to display window size and screen position covers keeping that presentation consistent.

Do not stretch the image differently in each direction. Preserve its aspect ratio, and document whether inspection uses the complete frame or a cropped detail view.

How sensor width, working distance and field of view set the focal length Rays from the edges of the sensor pass through the lens and spread to the edges of the field of view. The ratio of sensor width to field of view is the magnification m.CameraField of view (FOV)Working distance (WD)≈ fsensor width slensm = s / FOVf = WD × m / (1 + m)
How sensor width, working distance and field of view set the focal length. Rays from the edges of the sensor pass through the lens and spread to the edges of the field of view. The ratio of sensor width to field of view is the magnification m.

3. Check whether the image contains enough detail

Enlarging a picture cannot recover detail that the camera and lens did not capture. Calculate object sampling before deciding how large to display it.

Object sampling = horizontal field width / horizontal pixel count Pixels across a feature = feature width / object sampling

Using the planning example with a hypothetical image width of 4000 pixels:

Object sampling = 32 mm / 4000 = 0.008 mm/pixel Pixels across a 0.05 mm feature = 0.05 / 0.008 = 6.25 pixels

That is a useful starting point for a trial, not a guarantee of defect visibility. Glare, focus, noise and lens contrast can hide a feature even when its nominal pixel coverage looks adequate. A feature represented by only two pixels is particularly sensitive to its position relative to the sampling grid.

The object-space sampling calculation explains the relationship to optical magnification. For a more demanding edge-based task, use the distinctions in camera resolution for dimensional inspection, without treating manual visual inspection as calibrated measurement.

Camera resolution for the smallest feature
Units
Pixels needed
–
Sensor size
– MP
Smallest sensor that fits
–
Pixel on the part
– mm
Pixels across the feature, that sensor
–

Pixels needed = field / feature × pixels per feature on each axis (field incl. margin). The lens must resolve the pixels too: Nyquist = 1000 / (2 × pixel µm) lp/mm.

Find cameras with enough pixels Open the full calculator

The LS-CMR-0166 lists 4000 × 3000 resolution, 30 fps, a USB3 interface and a rolling shutter. It is a camera candidate to evaluate, not a confirmed match to the lenses below. Confirm its mount, acquisition software and available operating modes before combining parts.

Area scan cameras12 MP USB3 area scan camera, IMX226, 1/1.7" rolling shutter, 30 fps, 4000 × 3000 resolution (LS-CMR-0166)LS-CMR-0166
Sensor format
1/1.7"
Interface
USB3
Resolution
12 MP
Shutter
Rolling
$560.00View partBuild a system with it

Compare other area scan cameras through the camera finder if your sampling or motion requirements differ. More pixels are useful only if the optics resolve them and the viewing application presents them appropriately.

4. Choose optical magnification and working distance together

For a fixed-magnification lens, the approximate object field follows directly from the active sensor dimensions:

Optical magnification = active sensor width / object field width Object field width = active sensor width / optical magnification

As a separate planning calculation, a 9.6 mm-wide active sensor would need 0.3x optical magnification to cover 32 mm. These sensor dimensions are assumed for the calculation; they are not a specification for the camera above.

Obtain actual active sensor dimensions from the camera documentation. An optical-format label is not the sensor width in millimetres. Cropping the acquisition region also changes the captured field, even though the lens magnification stays the same.

The LS-FFL-0914 lists 0.3x magnification, WD 168 mm and a C-mount. The LS-TCL-0574 lists 0.4x magnification, 227 mm WD and a C-mount. Compare their documented geometry rather than assuming either is a complete station solution.

Specification LS-FFL-0914 LS-TCL-0574
Price $189.00 $2,269.00

All 2 share: Mount C-mount. Values as printed in each product's data sheet; open a part for its drawing and full specifications.

At the same active sensor width, higher optical magnification produces a smaller field. A longer working distance can provide more handling space, but it does not automatically provide the desired coverage or depth of field.

Use the machine vision lens selection guide to check image coverage, mount compatibility and focus requirements. The machine vision lenses category and lens finder help compare alternatives once those requirements are known.

5. Measure the usable handling envelope

Working distance and usable hand clearance are different quantities. Confirm the reference surface used for the lens working-distance specification. Then account for anything that projects below or beside the lens, including lighting, brackets and cable loops.

Double-sided boards need clearance beneath them as well. Avoid resting underside components on an unsuitable surface. A suitable edge support or cradle can reduce hand fatigue while keeping the board easy to turn over.

Tilting can consume vertical space surprisingly quickly. Consider a flat board tilted about an axis through its centre. The approximate rise of an edge is:

Edge rise = half the board dimension perpendicular to the tilt axis × sin(tilt angle) Edge rise = 50 mm × sin(20°) ≈ 17 mm

Add component height and finger clearance to that geometric rise. Check the complete swept volume with a representative board before fixing the camera position.

The LS-MNT-0040 is a camera stand candidate for a bench layout. Confirm mounting interfaces, adjustment travel, load limits and resistance to overturning with the actual camera, lens and lighting assembly.

Camera standsMachine vision camera stand, professional slide-table type, height 700 mm, 400 x 450 mm base (LS-MNT-0040)LS-MNT-0040
Type
Camera stands
$629.00View partBuild a system with it

Compare camera stands in the accessories finder. Route cables so they neither pull the camera out of position nor enter the board-handling area.

6. Expect tilted boards to leave the focus zone

A single camera has a limited depth of field. Increasing working distance alone does not establish how much board height will appear acceptably sharp. Optical magnification, aperture, acceptable blur and the required feature detail all matter.

For a tilted flat inspection region, the depth span is approximately:

Depth span = region dimension along the tilt direction × sin(tilt angle) Depth span = 32 mm × sin(20°) ≈ 11 mm

Component heights add further depth variation. A joint near the middle may remain sharp while another near the edge becomes difficult to judge. That can be acceptable when the task is to inspect one local feature at a time, but not when the complete tilted field must be sharp simultaneously.

Depth of field around the focus plane Light from the lens converges on the focus plane. In front of and behind it, each point spreads into a blur circle; the zone where that blur stays below about a pixel or two is the depth of field. A smaller aperture gives a narrower cone and a deeper zone.depth of fieldfocus planeapertureoutside it, pointsblur into circleswide aperture: steep cone, shallow zonesmall aperture (high F#): deeper zone
Depth of field around the focus plane. Light from the lens converges on the focus plane. In front of and behind it, each point spreads into a blur circle; the zone where that blur stays below about a pixel or two is the depth of field. A smaller aperture gives a narrower cone and a deeper zone.

Where the lens provides aperture adjustment, stopping down can increase depth of field. The trade-offs are reduced light and, eventually, diffraction that softens fine detail. Do not close the aperture until the image is dim and compensate entirely with gain.

Test focus using the actual target feature at the centre and edges of the permitted inspection region. If the whole tilted region cannot remain useful, reduce the region, limit tilt, or provide a repeatable focus adjustment. A stable local viewing zone is often more practical than attempting to keep an entire populated board sharp.

7. Make lighting adjustable rather than merely brighter

Solder, metal terminations, silkscreen and solder mask respond differently to illumination. One fixed lighting direction can make a joint look clear from one angle and disappear into a reflection from another.

Start by testing two independently adjustable illumination conditions:

Lighting approach Useful starting point Main limitation
Broad, diffuse illumination Component identity, placement and general surface appearance Can flatten shape cues on reflective joints
Oblique directional illumination Joint contours, raised features and surface texture Creates shadows and angle-dependent highlights

Keep lights outside the handling envelope. Change their direction and intensity separately so you can identify which change improves visibility. A bright clipped highlight contains little useful surface information, even when the surrounding picture looks sharp.

For a comparison trial, lock exposure and gain while changing lighting. Otherwise automatic brightness control may obscure the effect you are trying to evaluate. After selecting a useful arrangement, establish repeatable light positions and capture representative good and unacceptable examples.

Tilting helps reveal surfaces, but excessive movement also changes focus and reflections. Teach a short, consistent viewing sequence rather than leaving every judgement dependent on an arbitrary board angle.

8. Treat responsiveness as an end-to-end requirement

Camera frame rate does not equal display latency. Exposure, sensor readout, transfer, processing, application queues and display refresh all contribute to the time between board movement and the visible response.

At 30 fps, the frame interval is approximately:

Frame interval = 1000 ms / 30 ≈ 33 ms

That interval is only one part of the delay. A viewer that accumulates old frames can feel sluggish even when its reported frame rate is steady. For interactive viewing, prefer a documented acquisition mode that presents recent frames rather than preserving a growing queue.

Evaluate responsiveness by moving a board edge back and forth, then stopping it abruptly. Check whether the displayed motion trails noticeably or continues after the board stops. Repeat while saving images or running any overlays that will be enabled during inspection.

Motion blur needs a separate check:

Object-space blur = object speed × exposure time Object-space blur = 20 mm/s × 0.005 s = 0.1 mm

That blur exceeds the example feature width. Pause the board before judging fine details, shorten exposure where lighting allows, and test rolling-shutter distortion during tilt. A global-shutter camera may be preferable when inspection must continue during movement.

Also inspect the display scaling. A full-resolution capture may be reduced substantially in the viewer. The guide to downscaling captured images explains why capture resolution and displayed detail must be checked separately.

9. Commission the station with representative boards

Use a documented setup sequence so a successful demonstration becomes a repeatable workstation:

  1. Confirm the interfaces. Check camera mount, lens coverage, focus range, cables and software compatibility before assembly.
  2. Measure the field. Place a ruler or suitable target at the inspection plane and record the visible width and height.
  3. Set the display view. Measure the rendered image width and calculate the actual displayed magnification.
  4. Test the smallest feature. Use representative features under both lighting conditions, not only a printed test pattern.
  5. Exercise the handling envelope. Turn over and tilt the largest board without contacting the optics, light or support.
  6. Check focus throughout the viewing zone. Include tall components and features near the field edges.
  7. Evaluate delay and motion artefacts. Repeat with the normal software workload and image-saving settings.
  8. Save the configuration. Record exposure, gain, aperture where adjustable, focus position, light positions and viewer scaling.

Keep reference images with their capture settings. Compare the same feature after restarting the workstation and after moving between inspection views. Record defects missed or ambiguously presented during the trial; a pleasing image alone is not an acceptance criterion.

The listed parts are candidates for this verification process. They are not a prevalidated camera, lens and stand bundle.

10. Know when a single live camera is the wrong answer

A monocular screen view does not provide binocular depth perception. Shadows, reflections and board movement supply useful shape cues, but they cannot reveal hidden joints beneath components or establish electrical continuity.

Consider another inspection approach when the task requires simultaneous sharpness across a strongly tilted assembly, frequent refocusing becomes tiring, or the required feature remains ambiguous under all practical lighting angles. Also reconsider the workflow if extended handheld inspection causes fatigue or repetitive repositioning errors.

Before ordering, your short checklist should contain:

  • A measured field of view and displayed image size.
  • A demonstrated smallest visible feature.
  • Verified camera, lens and mounting compatibility.
  • A collision-free handling envelope on both board sides.
  • Acceptable focus, reflections and response during normal use.
  • A repeatable setup record and clear limits on what the station can judge.

Start the lens configuration process with those requirements, or send the board dimensions, feature size, handling clearance and viewing examples through technical support. Those details support a much better component choice than a screen-magnification target alone.

Questions

Does 15x screen magnification require a 15x lens?

No. Displayed magnification includes the enlargement from the captured image to the physical screen. Divide the rendered image width by the object field width to calculate it. Optical magnification instead relates sensor image size to object size, so choose the lens from sensor dimensions and required coverage.

Is 150 mm of working distance enough for handheld boards?

It may be, but the useful gap depends on the lens reference surface, lighting position, board dimensions and component heights. Tilting raises part of the board toward the optics. Check the complete movement with both hands and both board sides before accepting a nominal working-distance specification.

Will a higher-resolution camera always make solder joints clearer?

Higher pixel count can improve sampling, but only when lens contrast, focus, exposure and illumination preserve the feature. The display may also discard that extra detail when fitting the complete frame into a small window. Evaluate representative defects at the actual viewing scale before selecting more resolution.

What lighting should be tested for reflective solder joints?

A broader illumination source and a change in viewing or lighting angle can reduce troublesome highlights. Oblique illumination may reveal contours that diffuse light hides. Keep brightness adjustments separate from exposure changes during trials, and avoid judging surface detail inside saturated white reflections.

Can a live-view camera replace automatic or electrical inspection?

Not by itself. A live camera supports manual visual decisions about accessible surfaces. It does not verify hidden connections, electrical performance or consistent defect detection across every assembly. Define its inspection scope and validate the viewing method against representative acceptable and unacceptable boards.