Skip to main content
Sandbox Physics

Optics 037 · Imaging, instruments, and visual systems

Smartphone Camera Module

What do folding, autofocus and stabilization each do in a thin phone camera, and what can none of them fix? Folding the light path lets a long lens fit inside a thin phone. Autofocus slides the lens to the right distance, and lens-shift stabilization moves it sideways to cancel small hand shake. None of them can remove diffraction blur or the detail limit set by pixel size.

Build a wide, periscope or macro camera module with a fixed sensor. Autofocus moves the lens itself, and lateral OIS works together with an opaque folding mirror, a computed Airy exposure image, exact integration over pixels and signed motion transfer before sampling.

Interactive modelSmartphone Camera Module
Field / focused spacing / magnification θh,v,∣m∣\theta_h,v,|m|0.500.50
Airy diameter / optical cutoff / Nyquist dA,νc,νNd_A,\nu_c,\nu_N50%50\%
Lens shift / residual pixels / thickness δpk,Ares/p,T\delta_{\mathrm{pk}},A_{\mathrm{res}}/p,T0.00π0.00\pi
Model regimevalid model regime\text{valid model regime}

Physics tutorial

Audit the physics of Smartphone Camera Module

BackgroundThe sensor stays fixed and receives a real, inverted image. Autofocus moves the lens to change its distance from the sensor, following v=fss−fv=\frac{fs}{s-f}. The periscope turns the incoming light with one opaque mirror. The fold does not shorten the optical distance, and no light passes through the mirror.

Why it mattersWhat do folding, autofocus and stabilization each do in a thin phone camera, and what can none of them fix?

Start with the essentials

Focus question
What do folding, autofocus and stabilization each do in a thin phone camera, and what can none of them fix?
One-sentence intuition
For small angular shake, shifting an ideal lens sideways cancels the image motion, leaving a residual of Ares=vαpk(1−g)A_{\mathrm{res}}=v\alpha_{\mathrm{pk}}(1-g). It cannot undo diffraction or recover information that coarse pixels have aliased. The image cards integrate over one complete shake cycle; the apparatus shows a snapshot at the peak.

Core mathematical model

Focus at a finite distance and the field of view

v=fss−f,m=−vs,θh=2arctan⁡w2vv=\frac{fs}{s-f},\quad m=-\frac{v}{s},\quad \theta_h=2\arctan\frac{w}{2v}

For an object at a finite distance, the chief-ray estimate of the field of view uses the image distance, not the focal length. The lens moves while the 6.4 by 4.8 mm sensor stays fixed. Changing the aperture changes the real opening, not the curvature of the glass.

Folding the light path with a mirror

dr=di−2(di⋅n^)n^\mathbf d_r=\mathbf d_i-2(\mathbf d_i\cdot\hat{\mathbf n})\hat{\mathbf n}

The circular mirror has a finite size and turns the axial ray through 90 degrees. A ray that misses the mirror, is blocked by the lens aperture or falls outside the sensor stops where it is first rejected. The open wireframe marks the 8 mm thickness allowance; it is not an opaque phone case. The thickness reading includes the mounts.

Diffraction with the effective f-number

Neff=v2a=N(1+∣m∣),dA≃2.44λNeff,νc=1λNeffN_{\mathrm{eff}}=\frac{v}{2a}=N(1+|m|),\quad d_A\simeq2.44\lambda N_{\mathrm{eff}},\quad \nu_c=\frac{1}{\lambda N_{\mathrm{eff}}}

At 550 nm, the point image of a circular pupil, normalized to unit total flux, grows wider as the effective f-number rises. The diameter quoted is that of the first dark ring, not the pixel resolution. One fixed physical window and a square-root display gain keep the cards comparable; the card does not measure photon throughput.

Contrast transfer of a circular pupil

Hopt(t)=2π(arccos⁡t−t1−t2),t=∣ν∣νc≤1H_{\mathrm{opt}}(t)=\frac{2}{\pi}\left(\arccos t-t\sqrt{1-t^2}\right),\quad t=\frac{|\nu|}{\nu_c}\le1

In ideal incoherent imaging, the autocorrelation of the pupil gives this optical transfer, which is zero beyond the cutoff. The cyan MTF leaves out pixels and shake. The green curve includes them and plots the magnitude of their signed transfer.

Each pixel integrates light before it is sampled

Hpix(ν)=sin⁡(πνp)πνp,νN=12pH_{\mathrm{pix}}(\nu)=\frac{\sin(\pi\nu p)}{\pi\nu p},\quad \nu_N=\frac{1}{2p}

Each square pixel integrates the intensity over its area, and the result is sampled at the pixel center. Four independent test patterns, each an infinite sinusoid, use fixed frequencies and a fixed window. Above Nyquist a stripe pattern can pass for a lower frequency, so contrast that survives there is not recovered detail.

Lens-shift stabilization over one full shake cycle

δ(t)=gfαpksin⁡ωt,H(ν)=HoptHpixJ0(2πνAres)\delta(t)=gf\alpha_{\mathrm{pk}}\sin\omega t,\quad H(\nu)=H_{\mathrm{opt}}H_{\mathrm{pix}}J_0(2\pi\nu A_{\mathrm{res}})

The residual image motion follows from how a shifted thin lens bends rays when the object is at a finite distance. Averaging the sinusoidal displacement over one full cycle gives the Bessel factor, and the images keep its sign. This is an ideal gain model, not a commercial actuator or an implementation of DeepOIS.

Common difficulties

More pixels or perfect stabilization always means more detail

Typical misconceptionShrink the pixels or turn the compensation up to full gain, and all the lost information comes back.

Better mental modelStabilization removes only the angular motion in the model. The optical cutoff stays, and sampling has its own limit. Real aberrations, Bayer processing, noise, rolling shutter and controller bandwidth are left out of this ideal model on purpose.

Run the experiment

  1. 01

    Scene 1: Compact wide module

    Compare the wide and periscope modules. Find the opaque fold mirror and follow the gold ray to the same fixed sensor. Change the focal length and watch both the geometry and the thickness.

    What to observe: All the hardware is drawn on one millimetre scale; only the incoming ray segment is shortened. The enlarged cards show tests at the center of the field, not photos of the whole sensor.
  2. 02

    Scene 2: Opaque periscope fold

    Choose macro and change the object distance. Watch the lens carriage move and the effective diffraction scale change.

    What to observe: In the central test windows the circular pupil is not vignetted. Off-axis rays drawn for illustration may miss the finite fold mirror, and the wave cards do not claim accurate aberrations or vignetting over the full field.
  3. 03

    Scene 3: Macro autofocus and OIS

    Keep the same shake and set the OIS gain to zero, then to one. Next change the aperture and the pixel pitch one at a time. Compare the point image, the held pixels and the Nyquist line.

    What to observe: The sampled tiles keep their mean intensity and the sign of the transfer. Exposure is not normalized automatically, so faint or aliased stripes are not boosted into what looks like resolved detail.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy