Drone and UAV Optics Guide

Lenses for Drones: M12 Lens Selection for UAV Mapping, Inspection, and FPV Cameras

Weight, vibration, distortion, and ground sampling distance drive every lens decision on a UAV. Here is how to work through the tradeoffs.

By Max Henkart, Commonlands · Updated July 2026 · 10 min read

A quadcopter drone in flight carrying a gimbal camera with an M12 lens over farmland

M12 lenses are the standard optic for drone and UAV cameras because weight is usually the binding payload constraint: Commonlands M12 lenses weigh 3-15g versus 50-200g for a comparable C-mount lens. The right lens then depends on the mission: low-distortion optics for mapping, wide field of view for FPV and obstacle avoidance, and sealed, thermally qualified construction where vibration and temperature swings matter.

Why M12 lenses are standard for drone cameras

M12 (S-mount) lenses dominate small drone and UAV cameras because flight time drops steeply as takeoff weight rises.

Weight, integration, and cost

On a 250g drone, swapping a 100g C-mount lens for a 5g M12 is the difference between flying and not. On larger platforms, the saved mass becomes battery or compute payload.

M12 lenses thread directly into a holder on the camera PCB, with no adapter or flange-distance requirement; the camera board and connector still need whatever enclosure the environment demands. Threading the lens in or out takes up the axial defocus from sensor stack thickness, though a thicker or higher-index cover glass also adds spherical and chromatic aberration and steepens ray angles at the pixel, which refocusing cannot remove.

Commonlands M12 lens versus a C-mount industrial lens on the parameters that decide a drone build.
ParameterM12 (S-mount)C-mount industrial
Typical weight3-15g50-200g
Mount standardM12x0.5mm thread1"-32 UN thread, 17.526mm flange
Typical price range$6-$99 (qty-dependent)$200-$500+
Max sensor coverageMost models up to 1/1.8" (select models 1/1.7" to 1/1.6")Up to 1" and beyond
Iris controlFixed aperture (typically no adjustable iris)Manual or motorized iris available
IP-rated optionsIP67/IP6K9K on select variantsSelect ruggedized models only

C-mount makes sense on a drone in narrow cases: large fixed-wing platforms with multi-kilogram payload budgets, or sensor formats larger than M12 can cover. See the M12 vs C-mount vs CS-mount guide for the full comparison.

M8 versus M12 for the smallest airframes

M8 lenses use an 8mm thread (commonly M8x0.5) for platforms where M12's front aperture and barrel volume are still too large. Otherwise M12 stays the better default for its wider sensor coverage and larger parts ecosystem. The M8 vs M12 section of the mount guide covers thread adapters.

A lightweight drone camera board with an M12 lens resting beside a jeweler's scale
A Commonlands M12 lens runs 3-15g.

Ground sampling distance and focal length selection

Ground sampling distance (GSD) is the ground distance covered by one pixel at a given altitude. For a mapping or survey drone, choosing focal length is an exercise in hitting a GSD target.

GSD = (pixel_pitch × altitude) / focal_length All values in consistent units: convert pixel pitch from µm to meters before computing. Assumes the pinhole model: nadir view, flat terrain, zero distortion, altitude as object distance from the object-side principal plane.

Flying twice as high doubles GSD; doubling focal length halves it.

For example, take the Sony IMX577 (1.55µm pixel pitch) at 50m altitude: to hit 1cm GSD, focal length = (0.00000155 × 50) / 0.01 = 7.75mm. Use the field of view calculator or EFL calculator for your sensor.

Ground sampling distance targets and EFL ranges by drone mapping mission, assuming a 3-4µm pixel sensor. Halve the EFL for a fine-pixel 1.55µm sensor such as the IMX577.
ApplicationTarget GSDAltitude rangeRecommended EFLNotes
Wide-area mapping3-5cm50-80m4-6mmMaximum area per pass, regulatory ceiling permitting
Precision mapping / survey1-3cm30-80m6-12mmConstruction, survey, agriculture. Use a low-distortion lens
Close inspection0.5-1cm10-30m8-16mmTower, bridge, blade, and solar panel inspection
Long-range inspection0.5-2cm30-80m16-25mmStandoff distance, telephoto tradeoff
FPV / obstacle avoidanceNot GSD-drivenAny1.9-4mm wide/fisheyeField of view and reaction time matter more than resolution

GSD is a theoretical maximum for a nadir view over flat terrain. Off-nadir tilt and terrain relief change sampling across the frame, and vibration, haze, motion blur, and lens MTF all degrade useful resolution below it.

Distortion, mapping, and FPV lenses

Barrel distortion is the primary optical error that undermines aerial measurement accuracy. A few percent is tolerable in ground-based machine vision. In aerial photogrammetry, uncorrected distortion corrupts the geometry of orthomosaic maps and 3D reconstructions, so it has to be modeled out or kept low by design. Match the lens type to the mission, not the airframe.

For mapping and survey, prioritize low distortion

Photogrammetry software (Pix4D, Agisoft Metashape, OpenCV) estimates distortion as part of its camera model, so stable, calibrated distortion is modeled rather than fatal; residual error tracks the quality of that solve. A standard wide-angle M12 lens often shows 10% or more optical distortion at the corners, which is a lot to ask of any calibration.

For a rectilinear mapping lens, we target under 1% optical distortion as a starting point, so calibration carries less of the load. Commonlands low-distortion lenses such as the CIL052 (5.2mm, <0.2% optical distortion) and CIL034 (IP67, under 1%) meet that bar.

For FPV and navigation, prioritize field of view

Obstacle avoidance and situational-awareness cameras benefit from wide or fisheye lenses (up to 230° field of view in the Commonlands catalog), because a larger visible scene gives more reaction time. Measurement accuracy is not the goal, so heavy barrel distortion is acceptable. Against a rectilinear reference, that distortion runs to tens of percent and approaches -100% at the edge of a 180° field, though datasheets often quote a smaller f-theta or TV figure, so check which reference a spec uses.

Reusing a fisheye lens for mapping

A fisheye lens can be reused for mapping after calibration and dewarping: the fisheye models in OpenCV, Pix4D, and Agisoft Metashape fit and rectify its projection. Dewarping resamples and stretches the edges, lowering effective edge resolution, so a low-distortion rectilinear lens still gives cleaner survey-grade measurements. See wide-angle and fisheye lens distortion and what is a low-distortion lens for the background.

Vibration and rolling-shutter interaction

Motor and frame vibration reaches the camera through the airframe, and how badly it shows depends on whether the sensor is global or rolling shutter.

Why rolling shutter makes vibration worse

A rolling-shutter sensor exposes rows sequentially, so a vibrating camera captures each row from a slightly different position during readout. The result is skew, wobble, or jello rather than simple blur. Skew scales with angular rate times readout time, so shorter readout, a global shutter, or better isolation all reduce it. See image sensor selection for machine vision for the full tradeoff.

What the lens can and cannot fix

Lens construction cannot eliminate vibration, but it changes how much reaches the elements. Rigid, all-metal barrels, including the Commonlands M12 line, are stiffer than plastic housings and help the lens and sensor hold alignment. Vibration-damping mounts between camera and frame are the first-line fix.

Thermal stability and sealed construction

Drone cameras face diurnal cycles plus rapid altitude-driven temperature swings and landing shock, and the lens must hold focus.

Thermal defocus at altitude

The atmospheric lapse rate at mapping altitudes accounts for a fraction of a degree; the larger effect is convective, as a sun-soaked housing sheds heat into faster airflow after takeoff.

A lens with plastic elements can drift focus with temperature; the margin is thin: depth of focus is near 8-15µm at F/2 on a 1/2" sensor. Construction is a screening clue, not a number: drift depends on the prescription, glass and polymer dn/dT, barrel expansion, and athermalization, not on material class alone. Qualify it with a measured focus and MTF run over the flight temperature range; Commonlands can run that test on request.

A common starting point is to set fixed-focus cameras near the middle of the operating range and verify at both extremes, since drift is not always linear or symmetric. Bias that set point toward whichever end the mission spends most time at, or where the MTF budget is tighter.

Sealed construction for outdoor durability

A sealed lens barrel reduces moisture exchange during altitude cycling: an unsealed lens cooling at altitude can draw in humid air that condenses on internal glass and rarely clears without disassembly. IP67 (IEC 60529) covers dust and temporary immersion on the tested lens variant as mounted, not thermal cycling, condensation, or the rest of the camera. IP6K9K (ISO 20653; industry shorthand IP69K) covers high-pressure jet washing, a separate test, not a higher grade, so a lens must be marked for both to claim both. Details in ruggedized machine vision lenses.

IR filters, NDVI, and multispectral imaging

The filter configuration of an M12 lens has to match the application, or images come out color-shifted or missing the needed spectral band.

The standard 650nm IR cut filter

The default for visible-light drone cameras, it blocks wavelengths above roughly 650nm, including the near-infrared that shifts color balance, particularly in foliage. Use it wherever color accuracy matters.

No-filter (NIR pass) lenses for NDVI and crop monitoring

Vegetation-health metrics need near-infrared reflectance: NDVI = (NIR − Red) / (NIR + Red). Healthy vegetation reflects NIR strongly while absorbing red, and a standard IR cut filter attenuates NIR too heavily to measure it. For agriculture and forestry work, specify an M12ANIR (no IR cut) variant and pair it with a filter that separates the red and NIR bands.

Even then, a single uncalibrated camera yields a vegetation-index proxy, not quantitative NDVI. That name takes the whole chain: defined red and NIR band responses, radiometric linearization, co-registered frames, irradiance normalization against a reference panel, conversion to reflectance, and validation against ground truth. Without the band separation, an unfiltered Bayer sensor mixes NIR into the red channel and the ratio loses its meaning.

850nm and 940nm bandpass filters for active IR

Night surveillance drones with an onboard 850nm or 940nm LED array benefit from a bandpass filter matched to the illuminator, rejecting ambient daylight and improving contrast. 850nm gives more sensor sensitivity; 940nm is invisible to the eye for covert work.

Multispectral note

Calibrated multispectral imaging (RGB, red-edge, NIR) typically uses dedicated multi-sensor systems, not a single M12 lens. M12 lenses suit single-band NIR, NDVI-proxy setups, and active-IR night surveillance. Browse optical filters for bandpass options and bandpass filter selection for pairing guidance.

Top M12 lenses for drones by mission

The best M12 lens depends on the mission: a low-distortion lens for mapping and photogrammetry, wide field of view for FPV and obstacle avoidance, a telephoto for standoff inspection, and a no-IR-cut (NIR) variant for NDVI. Each figure is a published product-page spec; size your choice against your sensor with the field of view calculator.

Commonlands M12 lens picks for drones by mission, every model under 15g.
MissionLensEFLDistortionWeightWhy this pick
Precision mapping / photogrammetryCIL0525.2mm<0.2% optical<15gLowest distortion keeps orthomosaic geometry true, so lens calibration carries less of the load.
High-resolution mappingCIL0393.9mm<0.2% TV<15gResolves fine detail on 8MP and larger sensors at survey altitude.
Wide-area, weather-exposed mappingCIL0343.25mm<1% optical5.7g102° covers more ground per pass, with IP67 sealing (IEC 60529 dust and immersion). Construction is hybrid 4G2P, so check its measured thermal focus shift against the flight temperature range.
FPV / obstacle avoidanceCIL3373.6mmWide-angle, uncorrected~5g133° FoV at F/1.6 gives the most reaction time before an obstacle enters frame. IP6K9K sealed.
Forward navigation / general imagingCIL3555.5mmStandard wide-angle~5.1g89° balances coverage and detail for a forward flight camera. IP6K9K sealed.
Standoff inspectionCIL25025mmTelephoto, IR corrected<15g20° diagonal at its 8.8mm image circle, narrower on a smaller sensor, holds working distance from towers, bridges, and wind blades.
NDVI / crop monitoringCIL052 or CIL034 (M12ANIR)5.2mm / 3.25mm<0.2% / <1% optical<15gThe no-IR-cut variant passes the near-infrared band NDVI needs, and low distortion keeps canopy-area measurements accurate at the edges.

Weights shown with ~ are measured. Entries marked <15g are all-glass models under the 15g set ceiling (confirm exact mass on the product page). Optical and TV distortion are measured against different references and are not directly comparable.

75mm M12 Lens

75mm M12 Lens IR Corrected

$129.00

Download .STPView Product
Advanced Driver Assistance System Camera Lens 6mm M12 Lens S-Mount lens

Automotive 5.9mm M12 Lens

$39.00

Download .STPView Product
Rectilinear 6mm M12 Lens

Rectilinear 6mm M12 Lens

$19.00

Download .STPView Product
IR Corrected 12mm M12 Lens

IR Corrected 12mm M12 Lens

$59.00

Download .STPView Product
190°@5.7mm Fisheye M12 Lens

190°@5.7mm Fisheye M12 Lens

$29.00

Download .STPView Product
IR Corrected Day Night Fisheye Lens S-Mount

186°@5.2mm IR Corrected Fisheye M12 Lens

$59.00

Download .STPView Product
M8x0.35 Lenses for IMX415

Small 2.8mm Lens

$29.00

Download .STPView Product
Doorbell Camera Miniature M8 Fisheye Lens D

195°@5.2mm Fisheye Lens

$29.00

Download .STPView Product

Browse Lenses for Drones

When an integrated camera or another vendor fits better

For hobby FPV, an all-in-one like a GoPro or an M12 lens bundled with an Arducam or Sunex module is often the faster path. Optics, sensor, and tuning ship matched, and absolute distortion accuracy does not matter when the footage is only watched.

Spec-controlled lenses earn their place when the output is measured: orthomosaics, point clouds, GIS layers, or NDVI maps. These need a known focal length, a published distortion figure, and consistent unit-to-unit optics. Even then, calibrate each camera, or validate that one calibration transfers within your error budget: focal length, distortion, and principal point vary with assembly, and shift again on refocus or temperature change.

A mapping drone over crop rows with a downward-facing M12 survey camera
Focal length, altitude, and pixel pitch set ground sampling distance.

Frequently asked questions

What focal length M12 lens is best for drone mapping?

For general aerial mapping at 30-120m altitude, a 4-6mm focal length covers most sensors with 3-4µm pixel pitch, and the 5.2mm CIL052 (<0.2% optical distortion) is the default pick, since orthomosaics and point clouds are measured products. The 3.6mm CIL337 gives 133° of coverage for wide-area FPV and situational awareness, where reaction time matters more than geometry. Photogrammetry software solves a camera model either way; low distortion makes that solve less load-bearing.

What is the lightest M12 lens for a drone camera?

The CIL337 (3.6mm) and CIL355 (5.5mm), both IP6K9K, weigh approximately 5g, against 50-200g for a comparable C-mount lens. On a 100-200g payload budget, that frees mass for battery, compute, or extra sensors.

Should I use an IR filter on my drone camera lens?

It depends on the application. For visible-light mapping, inspection, and photography, use a standard 650nm IR cut filter to keep color balance accurate. For NDVI and vegetation monitoring, specify a no-filter or NIR-pass variant. For active IR surveillance at night, match an 850nm or 940nm bandpass lens to your illuminator.

What M12 lens works for drone-based NDVI and crop monitoring?

Use a low-distortion M12 lens without an IR cut filter (the M12ANIR variants of the CIL052 and CIL034 are good starting points), paired with a filter that separates the red and NIR bands. NDVI = (NIR − Red) / (NIR + Red). Even then, a single uncalibrated camera yields a vegetation-index proxy for relative comparisons; quantitative NDVI adds defined bands, radiometric linearization, co-registration, irradiance normalization, reflectance conversion, and validation. Without the band separation, an unfiltered Bayer sensor mixes NIR into the red channel and the ratio loses its meaning.

Do M12 lenses work with Raspberry Pi and Jetson cameras on drones?

Yes. Most small-format embedded camera modules use M12 (S-mount) lens holders: Raspberry Pi sells the official HQ Camera in both native M12-mount and C/CS-mount versions (the C/CS version includes a C-mount adapter), and Jetson-compatible MIPI modules and custom PCB cameras use M12×0.5mm thread as well. With no fixed flange distance, you set back focus with the lens thread.

Need help selecting a drone camera lens?

Contact Commonlands engineering for focal length, filter, and mounting recommendations based on your sensor, airframe, and flight profile.