マシンビジョン用光学系ガイド

M12レンズとは? Sマウントの定義、M12×0.5ネジ、および選定ガイド

This guide covers the M12 x 0.5 thread, S-mount naming, sensor coverage, and lens holders. It also compares all-glass and hybrid construction to help you choose the right build.

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

Commonlands M12 lenses across focal lengths beside a board-level camera PCB

An M12 lens (also called an S-mount lens or board camera lens) is a compact camera lens with an M12 x 0.5 thread. The "M12" means 12mm nominal thread diameter. The "0.5" means 0.5mm thread pitch. M12 lenses screw directly into a camera holder and have no fixed flange distance. Focus is set by threading the lens in or out, then locking it.

M12 optics show up in cars, QR scanners, surveillance cameras, robots, and medical devices. Comparing M12 vs C-mount: M12 wins for compactness and board-level integration, C-mount for larger sensors and a standardized flange distance.

M12レンズとは何ですか?

M12レンズとは、直径12mm、ねじピッチ0.5mmのネジ式マウントを備えた小型カメラレンズのことです。このマウントは、カメラモジュールやPCB上のレンズホルダーに直接ねじ込みます。M12レンズは、重量が数十グラムではなく数グラム程度であり、より大型の産業用フォーマットよりも低コストであるため、組み込みビジョンシステムの標準的な光学系として採用されています。

M12レンズホルダー組立機:カメラモジュールにレンズをねじ込む
Commonlands M12 lens and holder assembly: the lens threads directly into the holder over the sensor.

The Commonlands M12 lens collection runs from 0.8mm fisheye to 100mm telephoto, covering sensor formats from 1/6" through 1/1.8", select designs to 2/3".

手袋をはめた手が、むき出しのCMOSセンサーの上にあるホルダーにM12レンズを取り付けている
M12レンズは、ホルダーにねじ込みたり、ねじ外したりすることでピントを合わせます。

What Does M12 x 0.5 Mean?

"M12 x 0.5" is the thread specification for the lens mount: M12 means the nominal major diameter of the thread is 12mm, and 0.5 means the thread pitch is 0.5mm, the distance between adjacent thread peaks. The spec follows the ISO metric screw thread standard and defines the mechanical interface only. It says nothing about optical performance, focal length, sensor coverage, or image quality. Those come from the lens design itself.

M12 x 0.5 Sマウントネジ山を示すM12レンズネジ山の形状図
M12 x 0.5 のねじ形状:大径 12mm、ピッチ 0.5mm。
M12レンズネジ径およびネジ公差の参照表
M12(Sマウント)レンズのネジ径および公差の基準。

What Is an M12 Lens Used For?

M12 lenses go into any smart device that needs to see under board-level packaging constraints. Field of view, resolution, and ingress protection vary widely across the Commonlands catalog. The application defines the lens, not the mount.

  • 自律移動ロボットおよび倉庫用AMR(ナビゲーション、障害物検知)
  • 工場用マシンビジョンノード(バーコード読み取り、存在検知、検査)
  • ドローンおよびUAV(重量制限が厳しい場合の搭載カメラ)
  • スマート交通・駐車監視カメラ(コンパクトな屋外用筐体)
  • 医療用および携帯型デバイス(短い光学スタック、コスト重視)
  • 民生用電子機器およびウェブカメラ(コンパクトカメラモジュール)

What Sensor Sizes Work With M12 Lenses?

Most Commonlands M12 lenses support sensor formats from 1/6" through 1/1.8". Select designs extend coverage to 2/3". The lens image circle must be larger than the sensor diagonal. If the image circle is too small, you get vignetting (dark corners) and soft edges.

イメージサークル以外にも、主光線角(CRA)の適合性を確認してください。マイクロレンズを搭載した最新のCMOSセンサーには、CRAに関する要件があります。CRAの不一致は、カラーシェーディングや四隅の応答性の低下を引き起こします。詳細については主光線角と不一致に関するガイド」を参照してください。

M12 Lens vs C-Mount: Which Should You Choose?

M12 is an M12 x 0.5 thread with no standard flange focal distance, while C-mount is 1"-32 UN fixed at 17.526mm and CS-mount is the same thread at 12.526mm. Most M12 lenses run a fixed aperture and weigh 3 to 15 grams; a C-mount lens usually carries an adjustable iris ring and weighs 50 to 200 grams. Pick M12 for embedded cameras, drones, and compact robotics, and C-mount for industrial inspection and larger sensors.

フォーカス機構が異なるだけでなく、サイズも

A C-mount focus ring may move the whole cell, the front cell, or internal groups on a cam, and some C-mount lenses ship fixed-focus; the mount dictates none of this. Near-limit behavior follows the design; the datasheet or Commonlands engineering can confirm it. An M12 lens is rigid: threading it in or out moves the whole lens, so the two behave differently at short working distances.

See the lens mount guide: M12 vs C-mount vs CS-mount, or browse Commonlands C-mount lenses for larger formats.

How Do You Choose an M12 Lens Holder?

The holder provides the M12 x 0.5 threaded bore, screws to the board over the sensor, and sets the starting distance between board and lens. A holder that is too short can leave insufficient thread engagement when a long-back-focus lens is positioned for focus. A holder that is too tall can prevent enough inward travel. Compare the drawing's MBFL datum with the sensor-plane position, engagement length, available adjustment, and rear-element clearance before ordering.

Black PC is fine for prototyping. LCP (liquid crystal polymer) holds its dimensions better across temperature swings, which matters because holder drift becomes focus shift. Aluminum is the choice for sealed assemblies. The IP rating guide covers when IP67 or IP6K9K (industry shorthand IP69K) is required. Avoid 3D-printed holders in production.

Commonlands M12 Lens Holders

All holders below use the M12 x 0.5 thread and are $4.50 each, lens not included. See the product pages for mechanical drawings.

ホルダー 高さ 穴の間隔 素材 こんな方に最適
CLA020 10mm 20mm ブラックのPC 汎用、試作
CLA021 7mm 20mm LCP 薄型設計、熱的安定性
CLA022 8mm 22mm ブラックのPC 薄型、基板間ピッチ22mm
CLA024 12mm 22mm LCP より長いMBFLレンズ

Adapters and Motorized Mounts

To run an M12 lens on a C-mount or CS-mount camera, the M12-to-CS adapter ($12.00) threads into the body and adds an internal M12 thread with a focus lock ring. The adapter holds no optical element, so it adds mechanical axial separation, not optical path length. Check the lens MBFL against the combined depth. The CLA811 M8-to-M12 adapter mounts smaller M8 x 0.5 lenses in an M12 bore.

For remote or closed-loop focus, the CLA322 piezoelectric mount holds position with no power applied, while the CLA321 voice coil mount drives continuous autofocus but needs power to hold. Both take standard M12 x 0.5 lenses. The CLA321 uses 23.5mm hole spacing.

How Do You Focus an M12 Lens?

M12レンズのピント合わせは、ライブビューを見ながらレンズ本体をホルダーにねじ込んで出したり引き出したりし、目的の距離で像が鮮明になったらバレルをロックすることで行います。フォーカスリングはありません。M12のボディは剛性が高く、ネジ山そのものがピント調整機構となっているからです。

ピントの位置は撮影距離によって異なります。無限遠にピントを合わせたレンズは、近距離ではぼやけてしまい、その逆も同様です。詳しい手順については、「カメラのピント合わせ方」をご覧ください。

A focused lens that is not locked will drift under vibration. Lock it with a lock ring against the holder face, which stays re-focusable, with a set screw, which can introduce tilt if overtightened, or with a thread adhesive. Anaerobic thread lockers such as Loctite 222 and 243 are common in production, but they cure only where air is excluded and the surface catalyzes them, so inactive metals and plastic holders need an activator.

Qualify any adhesive against your barrel and holder materials, thread gap, cure schedule, outgassing near the sensor, and whether the joint must come apart later. Some thermoplastics craze under anaerobic chemistry. Confirm focus before it cures.

All-Glass vs Hybrid M12 Lenses: Which Construction Do You Need?

An all-glass M12 lens uses only glass optical elements. A hybrid glass-plastic lens mixes glass with molded polymer elements. Optical glass has lower thermal expansion and a more stable refractive index than optical polymer, so all-glass designs tend to hold focus better across temperature, and hybrid construction costs and weighs less.

Tendency is not a rule. A deliberately athermalized hybrid can beat an all-glass lens in an uncompensated aluminum barrel, because focus drift belongs to the whole assembly. Treat construction as the first filter, then measure the build you plan to ship.

Construction shows up on spec sheets as element notation: "8G" means eight glass elements (all-glass). "2G4P" means two glass and four plastic (hybrid). If a datasheet omits it, ask the supplier, since hybrid is common at low price points. Molded plastic aspheres are not a shortcut. They hit surface shapes that are expensive to grind in glass. The deciding difference is usually thermal behavior, not image quality.

建設 Shortlisting signal for 主な妥協点
全面ガラス、全面金属 屋外、車載、または温度サイクルが繰り返される環境での導入。画素サイズの小さい高解像度センサーで、被写界深度の余裕が限られている場合。設置後の再フォーカス調整ができない場合。 コストが高くなり、数グラム重くなる
ガラス・プラスチック複合材 温度管理された屋内環境;解像度が低い、あるいは画素サイズが大きく、被写界深度の許容範囲が広いセンサー;コストや重量に制約のあるシステム構成 More focus shift with temperature, unless the prescription is athermalized

Validate either construction the same way: fix a resolution target at the working distance, cycle the assembly across the full operating temperature range, and confirm sharpness holds. Focus shift depends on the lens, sensor, and housing together, so do not rely on datasheets alone. Commonlands can run that test on request. For deployments with shock, vibration, or ingress, see the Commonlands ruggedized lens guide.

How Do You Choose the Right Focal Length?

Field of view depends on focal length, the sensor's active area, and the lens projection, and it shifts with focus distance at close conjugates. Hold sensor and projection fixed and a shorter focal length gives a wider view, a longer one a narrower and magnified view. The right focal length follows from sensor width, working distance, and required scene coverage, which is why it is calculated rather than guessed.

EFL = (WD × sensor width) / FOV width A far-conjugate (pinhole) approximation for rectilinear, distortion-free projection; sensor width and FOV width use the same units. It drifts at close conjugates, where Gaussian imaging needs principal-plane distances. For fisheye and strong wide-angle lenses, use a distortion-corrected field of view calculator instead.
  1. センサーデータベースから、お使いのセンサーの幅を確認してください。
  2. 作業距離において、どの程度の範囲のシーンを撮影する必要があるかを明確にしてください。
  3. 焦点距離計算ツールを使用して、必要なEFLを推定してください。
  4. 視野計算ツールを使って結果を確認してください。
  5. 歪みについて考えてみましょう。広角レンズは、低歪みの直線型として特別に設計されていない限り、樽型歪みが生じやすい傾向があります。歪みが気になる場合は、歪みに関するガイドをご確認ください。

Top 4 M12 Lenses for Machine Vision

The best M12 lens for machine vision depends on sensor format and working distance, so no single part number wins every build. For most 1/1.8" to 1/1.7" embedded cameras a 6mm low-distortion lens (CIL059) is the general-purpose starting point, with an 8mm all-glass lens (CIL085) for tighter distortion, an 8mm hybrid (CIL083) where weight and unit cost lead, and a 25mm IR-corrected lens (CIL250) for long standoff. All four are Commonlands M12 lenses in stock in San Diego and ship same day on orders placed before 12 PM PT.

ランク レンズ EFL F# 対応センサーフォーマット こんな方に最適
1 CIL059 5.9mm F/1.7 (F/2.8, F/4.0, F/5.6 variants) 最大 1/1.7インチ General machine vision, barcode reading; IP67 sealed variant available
2 CIL085 8.2mm F/3.0 (F/4.4 variant) 1/1.8インチ(8.9mmのイメージサークル) Low distortion (-0.9% TV at an 8.8mm image circle), 12MP resolution, embedded stereo, all-glass construction
3 CIL250 25mm F/2.0 1/1.7インチ 長い作動距離、昼夜を問わない近赤外(NIR)イメージング
4 CIL083 8.0mm F/2.8 1/1.8インチ(9.0mmのイメージサークル) Lightweight, cost-sensitive indoor builds

Between the two 8mm options, construction is one screening input, not a verdict: qualify either with a measured focus and MTF run over your temperature range, a test Commonlands can run on request. The all-glass vs hybrid comparison above covers that tradeoff.

M12 Lens Suppliers Compared: Manufacturers vs Resellers

サプライヤー 拠点を置く 役割 彼らの得意分野
コモンランズ 米国(サンディエゴ) 米国でのカスタム設計・組み立て。また、カタログ掲載レンズの販売も行っています。 0.8mm~100mmのM12カタログ(MTFおよび歪みデータ掲載)、SKUごとのデータシートおよびCADデータ、米国在庫による当日発送、およびエンジニアリング部門による直接サポート
エドマンド・オプティクス アメリカ 製造・販売業者 詳細な技術資料を掲載した、幅広いマウントに対応したカタログ
Lensation ドイツ デザインサービスを提供する販売代理店。製造は行わない。 取締役会レベルでのレンズ調達およびOEMプログラム向け特注M12光学系
Arducam 中国 カメラモジュールメーカー。M12レンズを再販している。 Raspberry Piおよび組み込みプロトタイピング向けの、M12レンズとセンサーボードを組み合わせたカメラモジュールおよび開発キット
トウィン 中国 販売代理店;製造は行っていません 低単価かつ大量生産が可能な標準M12ボードレンズ
M12x0.5ネジ山のバレルと、素のカメラセンサーを並べて撮影した超接写写真
M12×0.5というねじ規格は、ねじ径が12mm、ねじピッチが0.5mmであることを示しています。

よくある質問

Commonlands stocks M12 lenses from 0.8mm fisheye to 100mm telephoto, with same-day shipping on orders before 12 PM PT. These answers cover the standard itself.

M12レンズとCマウント:どちらを選べばいい?

サイズ、重量、コストが優先されるコンパクトな組み込みシステムには、M12をお選びください。約1/1.8"を超えるセンサー、絞り調整機能が必要な用途、または17.526mmの固定された標準フランジ距離を必要とするシステムには、Cマウントをお選びください。詳細な比較については、レンズマウントの比較表をご覧ください。

M12レンズのピントはどのように合わせればよいですか?

M12レンズには固定のフランジ距離がありません。ライブ画像を確認しながら、ホルダーにレンズをねじ込みたり引き出したりしてピントを合わせてください。作業距離で画像が鮮明になったら、止めネジ、ロックリング、またはネジロック剤を使用してレンズを固定してください。ピント合わせの手順については、「カメラのピント合わせ方法」をご覧ください。

自分のカメラにぴったりのM12レンズホルダーをどのように選べばよいですか?

3つのパラメータを一致させる必要があります。それは、穴間隔(基板の取り付け穴間の中心間距離。通常は18mm、20mm、または22mm)、ホルダーの高さ(レンズの機械的後焦点距離がネジ調整範囲内にあること)、およびネジの種類(M1.6、M1.7、またはM1.8)です。形状が適合していれば、材質(PC、LCP、またはアルミニウム)は二次的な要素となります。

全ガラス製のM12レンズと、ガラスとプラスチックのハイブリッド製のM12レンズの違いは何ですか?

An all-glass M12 lens uses only glass optical elements. A hybrid glass-plastic lens mixes glass with molded polymer elements. Construction is a first-pass filter: polymer changes index and shape with temperature faster than glass, and hybrids cost and weigh less. Thermal suitability comes from measured focus and MTF over temperature on the full lens, holder, and sensor assembly, a test Commonlands can run on request, so qualify the build you ship, not the label.

CSマウントのカメラにM12レンズは取り付けられますか?

Yes, with an M12-to-CS adapter that threads into the CS-mount body and provides an internal M12 thread with a focus lock ring. The adapter holds no optical element, so it adds mechanical axial separation rather than optical path length. Verify the lens mechanical back focal length against the combined depth of adapter and camera register before ordering.

Need Help Choosing an M12 Lens?

Commonlands manufactures M12, C-mount, and M8 lenses for machine vision and embedded vision. Send our San Diego engineering team your sensor model and application at engineering@commonlands.com or call +1 (858) 333-7325. Orders placed before 12 PM PT ship same day. Comparing options? See the best M12 lenses for machine vision, ranked.