Active Alignment for Camera Modules: Sensor Tilt, the 6-DOF Error Budget, and UV-Cure Assembly
This guide explains what active alignment is, why thread-and-lock assembly runs out of adjustment at high resolution, how to build the 6-DOF error budget, and how the UV-cure process fixes lens-to-sensor position at the micrometer scale.
Active alignment (AA) is a camera module assembly process that positions the lens relative to the powered image sensor in up to six degrees of freedom while measuring MTF (the contrast the lens preserves at a given spatial frequency) from live video, then locks the position with UV-cure adhesive. It replaces thread-and-lock assembly when corner focus at high resolution must survive tilt, decenter, and defocus tolerances that a threaded interface cannot control.
Sensor alignment is the underlying requirement: the sensor must sit perpendicular to the lens optical axis, centered on it, and at the designed axial distance. This guide covers both, plus the diagnostics that separate real misalignment from field curvature.
What is active alignment?
The word "active" distinguishes the process from passive assembly, which relies on dimensional tolerances: machine the parts accurately, stack them, and accept whatever optical result the stack-up produces. Active alignment closes the loop on the measured image instead. Because the sensor is powered and streaming during assembly, the machine aligns each lens to the true position of that specific die, absorbing every upstream mechanical tolerance in one step.
A rigid-body move cannot make the corners and center peak at the same distance when the lens retains field curvature or astigmatism, so the station balances the field instead. The MTF curve guide explains the measurement. Active alignment runs it inside the assembly loop, on the module's own sensor, for every unit built.
Camera module manufacturers call it active alignment or AA; optics labs call it active lens-to-sensor alignment. Commonlands runs it for board-level camera module assembly in San Diego.
What is sensor alignment?
Alignment errors accumulate from ordinary manufacturing variation: die placement, solder height after reflow, PCB flatness, holder molding, and thread engagement. Each source is small. Combined, they can move the sensor outside the lens design's focus tolerance, and no lens swap or software calibration recovers the loss. Commonlands matches each lens image circle and back focal distance to the sensor so the aligned stack keeps focus margin.
Tilt
Tilt means the sensor plane is not orthogonal to the optical axis, so one region sits closer to the in-focus image surface than the opposite region. The result is a focus gradient: one side sharp, the opposite side soft. Only tilt produces a clean linear gradient, which makes it the most diagnosable error. A tilted lens element can mimic it; the lens-rotation test in the FAQ below separates the two.
Decenter
Decenter is lateral displacement of the sensor from the optical axis. The lens's best-corrected field region shifts relative to the pixel array, so sharpness becomes asymmetric: the side nearer the displaced axis performs better than the far side. Decenter also skews relative illumination, pushing the falloff pattern off-center relative to what the lens datasheet predicts.
Rotation
Rotation is a spin of the sensor about the optical axis. For a rotationally symmetric lens on a rectangular sensor, it rarely changes image quality. It matters for geometry: measurement coordinates rotate, stereo rig baselines drift, and pixel-to-physical mapping shifts. Metrology cameras and multi-camera rigs check rotational alignment alongside tilt and decenter.
Z-height error
Z-height error places the sensor at the wrong axial distance, shifting the focus conjugate away from the intended working distance. Unlike tilt, it produces symmetric defocus, indistinguishable from being out of focus. Refocusing resolves it; the giveaway is that sharp focus lands at a working distance other than spec. Back focal length tolerances are the usual cause, covered in the back focal length guide.
Why is thread-and-lock assembly not enough at high resolution?
A threaded M12 lens controls one degree of freedom: axial position, set by rotating the lens in its holder. Tilt, decenter, and rotation remain wherever the mechanical tolerances put them. Whether that matters depends on the depth of focus, which the working f-number and the allowed blur circle set together. Near 1.5µm pixels and below, that budget can shrink until thread clearance and board-level stack-up alone consume the entire corner focus allowance.
Rotation and axial position are coupled on a thread: the M12 x 0.5 pitch moves the lens 500µm per full turn, so the thread sets axial focus with micrometer-scale sensitivity. The clearance a thread needs to turn, set by the ISO metric tolerance classes, lets the locked lens sit slightly off-axis and tilted, and thread adhesive freezes whatever pose that clearance allowed.
The thread is one contributor among several: die placement, solder height, PCB flatness and warp, holder squareness, thread clearance, and lens cell concentricity all stack into the lens-to-pixel position. The image-side tolerance for that stack is the depth of focus (distinct from object-side depth of field, covered in the depth of focus section of the DOF guide):
Stopping down increases depth of focus in proportion to N and hides residual misalignment. That is a legitimate design lever when illumination allows it, but it trades light. For object-side planning, use the depth of field calculator.
What is the 6-DOF error budget?
A camera module has six rigid-body degrees of freedom between lens and sensor: three translations (X, Y, Z) and three rotations (θx and θy tip and tilt, θz rotation). Z sets focus, X and Y set decenter, tip and tilt set the corner focus gradient, and θz sets geometric registration. An error budget assigns each axis a tolerance whose combined image-side effect stays inside the depth of focus at every field point.
Building the budget starts from the allowed blur circle c, set by pixel pitch and the detection task. Compute the depth of focus, then allocate it: Z placement error, tilt-induced corner shift, and the lens's own field curvature residual must sum within δ at every field point. Independent random sources, such as die placement and holder squareness, combine by root-sum-square. The field curvature residual is systematic, so it adds directly rather than in quadrature.
The budget is verified with a through-focus MTF sweep at the center and four corners: on a threaded build it qualifies the design's passive tolerances, and on an actively aligned line the same measurement runs on every unit as the alignment criterion. Commonlands builds to this budget on both lines.
When does a camera need active alignment instead of a threaded M12 build?
Prototype with a threaded M12 build first. It proves the sensor, field of view, illumination, and processing chain with catalog parts and no assembly tooling. Move to active alignment for production when corner MTF at small pixel pitch, unit-to-unit consistency, or a tilt-sensitive wide-angle design pushes yield below target with passive tolerances.
The threaded workflow is fast: select a stock lens from the M12 lens collection, thread it into a holder, focus on a live image, and lock it. Modules with pixel pitches around 2µm and larger, center-weighted detection tasks, or refocusable service procedures routinely ship threaded and hold spec.
C-mount systems mostly sit outside this decision: the 17.526mm flange is standardized, the lens refocuses with its own cam mechanism, and a user can correct focus in the field. Active alignment is a board-level module process.
| Factor | Threaded and locked M12 | Active alignment |
|---|---|---|
| Degrees of freedom controlled | Z only, via thread rotation | Up to all six |
| Corner focus consistency | Limited by passive stack-up tolerances | Set per unit on measured MTF |
| Equipment | Focus target and hand tools | AA station, adhesive dispense, UV cure |
| Unit cost and cycle time | Lowest | Higher, amortized at volume |
| Rework | Refocusable until threadlocker cures | Permanent after adhesive cure |
| Typical fit | Prototypes, pixels ~2µm and up, moderate corner specs | Small-pixel production, wide-angle corner specs, stereo registration |
The two paths share parts. A module prototyped with a stock M12 lens can move to actively aligned production with the same optics, so the lens qualification work carries over. Commonlands has run this progression at scale, including a 20,000-unit MIPI camera module program pairing Sony IMX577 sensors with the CIL227 2.7mm fisheye, built with per-unit focus scoring.
How does the UV-cure active alignment process work?
- Dispense. Adhesive beads go on the holder bond surface or the lens barrel skirt. The glue gap replaces the thread, so it must be thick enough to absorb the full Z tolerance range being corrected.
- Grip and coarse-position. A multi-axis gripper places the lens near nominal position. The sensor powers on and streams live video to the alignment software.
- Sweep through focus. The station sweeps the lens through Z, computing MTF or a sharpness score at the center and four corner regions of interest on each frame.
- Optimize the pose. Tip, tilt, X, Y, and Z move until center and corner scores peak inside a common window. The merit function balances the field rather than maximizing the center alone.
- Cure and verify. UV LEDs gel the joint within seconds while the gripper holds the optimized pose, with the target pre-offset by the characterized cure shrinkage. A thermal post-cure completes cross-linking where the chemistry requires it, followed by end-of-line through-focus verification.
Adhesive selection drives the process window. UV acrylates cure fastest. Modified epoxies, often dual-cure UV plus thermal, reach higher stability and handle joints the UV light cannot reach directly. All shrink slightly during cure, so production measures the post-cure shift on qualification builds and aims off by that amount.
A cured AA joint has no refocus. Early in development, working distance is a design variable. A cured module fixes it for the life of the unit. Confirm the final working distance and focus target before committing a production cure.
Find lenses for your camera project
Many Commonlands lenses publish MTF and distortion specs, so asymmetric corner degradation stands out against a known baseline during diagnosis. When a datasheet is not enough, a measured MTF report on a single lens sample is available through the Trioptics HR2 test report.
Commonlands also customizes lens mechanics. A stock barrel can be respecified with an active alignment flange, a flat bonding shoulder that replaces the M12 thread so an AA station can grip the lens, position it in six axes, and bond it to the holder. Send the sensor, holder geometry, and volume, and engineering will quote the change against the existing optical design.
Camera module assembly
Commonlands assembles camera modules in a Class 1000 (ISO 6) cleanroom in San Diego, from consigned-sensor builds at 100 to 100,000 units per year through custom MIPI CSI-2, DVP, and USB development. Active alignment is available where passive tolerances cannot meet the optical specification.
Frequently asked questions
Commonlands runs active alignment during camera module assembly in its San Diego cleanroom. These answers reflect that production process.
What is active alignment in camera module manufacturing?
Active alignment is an assembly process that positions the lens relative to the powered image sensor in up to six degrees of freedom while measuring MTF from live video, then fixes the position with UV-cure adhesive. Each module is aligned to its own measured image, absorbing mechanical tolerances that threaded assembly leaves uncorrected.
What is sensor alignment in a camera module?
Sensor alignment is the mechanical relationship between the image sensor plane and the lens optical axis and image plane. An aligned sensor sits perpendicular to the optical axis, centered on it, and at the designed axial distance. Violating any of these conditions degrades optical performance in ways software cannot recover.
How do I tell if my sensor is tilted?
Capture a flat resolution target and measure sharpness at the center and four corners. Sensor tilt produces an asymmetric focus gradient, with one corner sharp and the diagonally opposite corner soft. Rotate the lens 90 degrees and refocus: if the pattern rotates with the lens, the tilt is in the lens assembly rather than the sensor mounting.
When is active alignment necessary?
Active alignment is typically necessary when corner performance requirements exceed what passive assembly tolerances deliver: sensors with pixels near 1.5 microns and below, wide-angle fixed-focus modules, stereo rigs needing registration, and volume production where unit-to-unit consistency sets yield. Prototype with a threaded M12 build first, then move to active alignment when pilot corner MTF falls short.
Can software correct sensor tilt?
No. Sharpening and deconvolution can raise apparent contrast at moderate spatial frequencies, but they cannot recover spatial frequency content the optics never delivered to the sensor. Focus information lost to tilt-induced defocus is gone at capture. The correction is mechanical: rework the lens-sensor stack-up or actively align the module during assembly.
Planning a camera module build?
Commonlands manufactures M12, C-mount, and CS-mount lenses, many with published MTF and distortion specifications. It also assembles camera modules in a Class 1000 (ISO 6) cleanroom in San Diego. ISO 9001:2015 certified. Send your sensor model, resolution target, and volume to engineering@commonlands.com. Orders for stocked lenses placed before 12 PM PST ship the same day.



