M12 Lenses for Raspberry Pi HQ (IMX477)

The Raspberry Pi High Quality Camera is a CS-mount board and ships with a C-mount adapter in the box. An M12 lens needs one more part: an M12-to-CS adapter, or a third-party M12 camera board.

Raspberry Pi has never sold an M12 version of the HQ camera, so any M12 HQ board you find is a third-party product. The lenses below thread into an M12 holder or an M12-to-CS adapter. Before ordering, see the product page image circle against the IMX477 7.86mm diagonal: a few picks here earn their place through projection rather than full-diagonal coverage. For field of view on this exact sensor, read the IMX477 sensor reference, or browse the full M12 lens catalog.

7.86mm IMX477 Active Diagonal
4056×3040 IMX477 Resolution
CS-Mount Official HQ Camera Thread
Commonlands M12 lens fitted to a Raspberry Pi High Quality Camera through an M12-to-CS adapter

M12 Lenses for the Raspberry Pi HQ Camera

Every product page publishes its own image circle. To fill the IMX477 corner to corner you want that figure at 7.86mm or larger, which is the diagonal of the sensor’s active area. Read it per product rather than assuming it across the grid, because the fisheye in this collection is here for its projection and not for full-diagonal coverage. Sold-out designs are hidden; contact engineering for restock dates.

Basler Dart Camera IP67 M12 Lens

Low Distortion 3.25mm M12 Lens

$39.00

Download .STPView Product
Wide Angle Fisheye Lens for S Mount. Entaniya Raspberry Pi RP-L100

185°@7.8mm Fisheye M12 Lens

$39.00

Download .STPView Product
Low Distortion 4.2mm M12 Lens

Low Distortion 4.2mm M12 Lens

$49.00

Download .STPView Product
6mm M12 Lenses S Mount Lens

Low Distortion 6mm M12 Lens

$49.00

Download .STPView Product
IR Corrected 12mm M12 Lens

IR Corrected 12mm M12 Lens

$59.00

Download .STPView Product
16mm M12 Lens CIL160 global shutter

Telephoto 16mm M12 Lens

$39.00

Download .STPView Product
25mm M12 Lens S Mount Lens

IR Corrected 25mm M12 Lens

$99.00

Download .STPView Product
35mm M12 Lens

Telephoto 35mm M12 Lens

$59.00

Download .STPView Product

Browse Raspberry Pi M12 Lenses

The HQ Camera Is CS-Mount, So M12 Needs an Adapter

The official Raspberry Pi High Quality Camera is a CS-mount board, and it ships with a C-mount adapter in the box. That covers C-mount and CS-mount lenses. It does not cover M12. Raspberry Pi has never sold an M12 version of the HQ camera, so any M12 HQ board you come across is a third-party product.

To run an M12 lens on the official board, add an M12-to-CS adapter. It threads into the CS-mount bore and presents an internal M12x0.5 thread. Ours carries a focus lock ring, which is what holds the lens position once you have focus, with no tape or adhesive in the stack.

The adapter adds optical path length between the lens shoulder and the sensor. Check the lens mechanical back focal length against the combined depth before ordering, or the lens will run out of thread before the image comes into focus.

One part to keep straight: the 5mm C-to-CS spacer that ships with the HQ camera is not an M12 adapter. The spacer only restores C-mount registration on a CS-mount body. Different part, different job.

Three Commonlands M12 lenses mounted on Raspberry Pi High Quality Cameras through M12-to-CS adapters
M12 lenses on HQ camera boards, each through an M12-to-CS adapter. From the Raspberry Pi HQ lens write-up.

Holders, lock rings, and spacers for board cameras live in board lens accessories. If you are building around a third-party M12 HQ board instead, you skip the adapter and thread the lens straight into the holder on that board.

How to Check Image Circle Against the IMX477

The IMX477 is a Sony 1/2.3" rolling shutter sensor: 4056 × 3040 pixels at 1.55µm pitch, active area 6.29mm × 4.71mm. For lens selection the number that matters is the active-area diagonal, 7.86mm. A lens whose image circle falls short of that darkens the corners of a full-resolution frame.

Compare the as-designed image circle, not the maximum. Several M12 designs publish both figures, and the two can straddle 7.86mm. When they do, tell us what corner performance the application needs and we will say which figure applies before you order.

Published Image Circle by Lens in This Collection

Lens Focal Length Published Image Circle Covers 7.86mm
CIL227 185° fisheye 7.8mm as designed No, chosen for its projection
CIL034 Wide angle, figure on the product page 7.8mm as designed, 8.2mm maximum Check the product page figure
CIL042 4.2mm 8.8mm as designed Yes
CIL059 5.9mm 9.0mm as designed Yes
CIL122 12mm, IR corrected 9.3mm Yes
CIL160 16mm telephoto 8.8mm as designed Yes
CIL250 25mm telephoto, IR corrected 9.4mm Yes
CIL350 35mm telephoto 11mm Yes

The CIL227 fisheye and the CIL034 wide-angle are the two rows to read carefully. A fisheye is specified by its projection, so 7.8mm as designed is the intended figure rather than a shortfall, and CIL034 publishes an as-designed circle just under the diagonal with a larger maximum above it. For either one, see the product page image circle against the IMX477 7.86mm diagonal and tell us the corner performance you need.

The grid above is the live collection, and the wider catalog sits in machine vision lenses. For horizontal, vertical, and diagonal field of view calculated on the IMX477 active area, the IMX477 sensor page lists it per lens, so you do not have to run the geometry yourself. To size a lens from scene width and working distance instead, use the FOV calculator.

Focusing an M12 Lens on the HQ Camera

M12 lenses have no focus barrel. You focus by threading the lens in and out of its holder, and the range is typically 50 mm to infinity by threading the rigid body; no internal compensating group. That is why the lock ring earns its place. Once your target distance is sharp, the ring clamps the thread so handling and shipping do not walk it back out.

Max built this rig in 2020 and photographed the field of view from three M12 lenses side by side on an HQ camera. The write-up covers camera placement, the out-of-spec adapter threads he hit buying cheap parts, and the focus procedure: M12 lenses for a Raspberry Pi HQ video conferencing camera.

Frequently Asked Questions About M12 Lenses on the Raspberry Pi HQ Camera

Technical answers from our optical engineering team

Does the Raspberry Pi HQ camera take M12 lenses?

Not on its own. The official HQ camera is a CS-mount board and ships with a C-mount adapter, which covers C-mount and CS-mount lenses only. For M12 you add an M12-to-CS adapter that threads into the CS bore, or you build on a third-party M12 camera board. Raspberry Pi does not sell an M12 version of the HQ camera.

What image circle does an M12 lens need for the IMX477?

At least 7.86mm to fill the frame corner to corner. That is the diagonal of the IMX477 active area, 6.29mm by 4.71mm at 4056 by 3040 pixels. A smaller image circle darkens the corners of a full-resolution frame. Where a product page lists an as-designed circle and a larger maximum, compare the as-designed figure first. One exception is worth knowing: a fisheye is specified by its projection, so it can sit below that diagonal on purpose.

Will an M12 lens reach focus through a CS-mount adapter?

That depends on the lens mechanical back focal length. The adapter adds path length between the lens and the sensor, so a lens with a short back focal length can run out of thread before the image is sharp. Check the published back focal length against the adapter depth, or send us the pair and we will check it for you.

What field of view will I get on the IMX477?

It changes with focal length, so read it off the IMX477 sensor page rather than converting a field of view written for another sensor format. That page lists horizontal, vertical, and diagonal field of view calculated on the 6.29mm by 4.71mm active area for each Commonlands lens.

Do I need the focus lock ring?

If the camera moves, yes. An M12 lens holds focus by thread position alone, so vibration or a knock can walk it out of focus. The Commonlands M12-to-CS adapter includes a lock ring that clamps the thread once your target distance is sharp. No tape, no adhesive.

Tell Us Your Board and Working Distance

Send the camera board you are building on and how far it sits from the subject. US-based optical engineers will confirm image-circle fit on the IMX477 and check the adapter stack depth against the lens back focal length. 100% of lenses MTF-tested on a Trioptics ImageMaster HR2.