MOULDLKnowledge Base3D Model DownloadsMembership
中文版Model Store »
HomeModels
Table of contents

General Engineering & Case Studies (60 articles)

Knowledge Base Home

📐 Standard Data

🧮 Calculators

📖 Selection Guides

🏭 Material Grades

❓ Engineer FAQ

🗂 Quick-Reference Categories

❌ Error Case Studies

📚 Technical Articles

Knowledge Base › General calculations and examples › 2026-10-11_09_Vision Positioning System Selection and Calculation_BST

Vision positioning system selection in 5 steps: choose the right setup in one pass with a resolution and focal-length example

Summary

Non-standard automated assembly and lithium battery stations commonly use vision positioning instead of mechanical hard fixturing, and poor selection often leads to positioning drift, unstable mark recognition, and poor repeatability. This article follows five steps — pixel resolution, lens focal length, light source and exposure, accuracy margin, and mark point settings — and gives a complete example for a 5-megapixel area-scan camera, so that after reading you can independently select and review a vision positioning station.

Body

Application Scenario and Problem Background

Vision positioning stations are used for post-alignment positioning of lithium battery stacks, aligning module terminal posts, positioning 3C product assembly, and similar tasks; a camera photographs a reference mark point, an algorithm solves for the workpiece coordinate offset, and this is fed back to the robot or motion stage for compensation. Three mistakes are common in practice: first, selecting by camera pixel count alone without calculating the physical size represented by one pixel, so the accuracy falls short; second, choosing the focal length by experience, so when the working distance changes the field of view does not match expectations and edge distortion is magnified; and third, not verifying the light source and exposure, so the mark point is bright one moment and dim the next on a reflective metal surface and the repeatability drifts.

Selection Calculation

Core Formulas

Parameter description

ParameterMeaningUnit
FOVLength of one side of the field of viewmm
NNumber of camera pixels in that directionpx
pPhysical size represented by one pixelmm/px
δRequired positioning accuracy (±)mm
kAccuracy margin coefficient—
WDWorking distance from the lens to the workpiecemm
HSide length of the sensor in the corresponding directionmm
fLens focal lengthmm
δ_rRepeat positioning accuracymm

Recommended Value Table

ItemRecommended valueNotes
Accuracy margin coefficient kFor stable lighting take 2; for reflective or vibrating conditions take 2.5~3A larger k gives a larger accuracy margin but requires more pixels
Common sensor sizes1/2.5-inch 5.70×4.28mm; 1/1.8-inch 7.20×5.40mm; 1-inch 12.8×9.6mmA larger image sensor gives a larger field of view at the same focal length
Common working distance WDPositioning stations 80~300mmMust leave room for loading/unloading and light source mounting
Standard prime focal lengths8、12、16、25、35、50mmPrefer ≤50mm to reduce edge distortion
Repeat positioning accuracyδ_r ≤ δ/3Overall machine accuracy must leave margin for the mechanism and assembly
Mark point diameter0.3~0.5mm circle or ring, imaged at 15~25 pixelsToo small a mark makes centroid extraction unstable
Exposure gray levelGray-level difference between the mark and the background ≥80 levels, target gray level 120~200Overexposure or underexposure both reduce centroid accuracy

Complete Worked Example

Given:A lithium battery module terminal-post positioning station with a field of view FOV=50mm×37.5mm (4:3), a required positioning accuracy δ=±0.05mm, and a selected working distance WD=150mm.

Step 1, calculate the single-pixel size and the required pixel count.Taking the accuracy margin coefficient k=2.5, the permissible single-pixel size is p ≤ δ/k = 0.05/2.5 = 0.02mm/px. The required horizontal pixels are Nx ≥ FOVx/p = 50/0.02 = 2500px; the required vertical pixels are Ny ≥ 37.5/0.02 = 1875px.

Step 2, select the camera.A 5-megapixel area-scan camera on the market has a resolution of 2592×1944 and a 1/2.5-inch sensor (5.70mm×4.28mm); horizontal 2592≥2500 and vertical 1944≥1875, so it meets the requirement. The actual single-pixel size is p = 50/2592 = 0.0193mm/px, corresponding to an achievable positioning accuracy of p×k = 0.0193×2.5 = 0.048mm, better than the required ±0.05mm.

Step 3, calculate the lens focal length.From similar triangles, f = WD×sensor width/FOV = 150×5.70/50 = 17.1mm, so choose a 16mm prime lens, rounding down to the nearest standard focal length.

Step 4, recheck the field of view and accuracy.After fitting the 16mm lens, the actual field of view is FOVx = WD×5.70/16 = 150×5.70/16 = 53.4mm, about 3.4mm larger than the design field of view, which can accommodate workpiece tolerances. The actual single-pixel size is p = 53.4/2592 = 0.0206mm/px, and the achievable accuracy is 0.0206×2.5 = 0.052mm, still around ±0.05mm, so it meets the requirement.

Step 5, set the mark point and the light source.Use a solid circular mark of diameter 0.5mm, imaged at about 0.5/0.0206 = 24 pixels, giving stable centroid extraction; for the reflective aluminum surface use low-angle ring light with a polarizer, keeping the mark gray level at about 150 and the gray-level difference between the background and the mark ≥100 levels.

Conclusion:Select a 5-megapixel area-scan camera (2592×1944, 1/2.5-inch sensor) with a 16mm prime lens, a working distance of 150mm, a single-pixel size of 0.0206mm/px, a positioning accuracy of about ±0.05mm, and a circular mark point of diameter 0.5mm.

Result Verification and Pitfall Reminders

  1. A higher camera pixel count is not always better. Blindly going to 12 megapixels multiplies the data volume and slows the cycle; first back-calculate the required pixels from the FOV and the accuracy, then step up to one higher standard camera.
  2. After calculating the focal length you must recheck the field of view. Calculating 17.1mm and choosing a 16mm lens makes the field of view larger and the single pixel coarser, so you must recalculate whether the accuracy still holds — you cannot just hand it over once the lens is chosen.
  3. For reflective metal surfaces, do a light source trial before fixing the solution. The same camera can differ 2~3 times in repeatability under different light sources, so try ring light, coaxial light, and bar light once each on the first article and capture a gray-level histogram to confirm the contrast.
  4. Repeatability must be measured online. Photograph 100 frames at a fixed position on a standard part and calculate the standard deviation; the measured δ_r should be ≤δ/3. If it falls short, first check vibration and light source stability before discussing algorithm optimization.

Suggested Illustrations

If you are stuck on structure, browse the full-line 3D models in the 'MOULDL model library (mouldl model library)' (such as flipping machines and assembly machines, with parts lists); for data, double-check with the 'BST Technical Handbook' to be safer.

This article was compiled by Baist Technology (BST) as a reference for mechanical selection.

Related model download:Understood the principle and ready to try?Go to MOULDL to download related 3D models and CAD drawings for free »
MOULDL · Mechanical Engineering Knowledge Base · free self-study reference for machine designers, 3D CAD models at MOULDL