M12 Camera Case

Simple case for M12-type camera, that is compatible with Raspberry Pi. Not the official R-Pi camera, this board is larger and takes M12 lenses.


Creative Commons Attribution Share Alike

Commercial use is allowed, you must attribute the creator, you may remix this work and the remixed work should be made available under this license.

Learn more or download attribution tags


This is a simple 2-piece clamshell case that fits around the M12 type board camera on ebay which is sold as compatible with the Raspberry Pi (search for "raspberry camera board M12x0.5 lens"). It is different from and larger than the official R-Pi camera board, but it works in the same way and connects with the same 15-way flex cable. There is also a U-shaped bracket to allow pan and tilt motions.  You will probably want to ream out the holes with a 3 mm drill bit to make them round and ID = 3 mm.

All screws and nuts are M3, choose a suitable length. Four screws pass through the board and both top & bottom of the case. The screws going out either side of the case to the U-bracket have captive nuts on the outside, so the head is on the inside. This can work loose easily, so some locktite / superglue might help. SCAD file provided for modifications. The SCAD assembly also includes a model of the camera board itself + an example M12 lens.

Updated to v1.1: made the U about 2 mm deeper so the camera case can swivel through without hitting the top of the pan-axis screw.

Materials and methods

M3 hardware (7x screws, 9x nuts)



Issues are used to track todos, bugs or requests. To get started, you could create an issue.


912c33b8b84deed91b3d9e72163a0ac3?default=blank&size=40alindefy added this to the Tools Photo Video collection ago
F3e299b4757f371e74336e0e39e4cf25?default=blank&size=40ron like added this to the to print collection ago
5cb79ce400ad54e38c4d31c9030dbbc4?default=blank&size=40Remigiusz Glaza added this to the cam collection ago
3e69fd76bf27e21b5c0c2ee2f250cc81?default=blank&size=40Oğuz Kapan added this to the box collection ago
5b9cca6b28bbe3d6f1ff9772daca78d5?default=blank&size=40lordsamourai added this to the project collection ago
7f2a95dd13c1395f85d5364a23028fd1?default=blank&size=40eortiz added this to the Electronics collection ago
C9e6d0a60debac3d1c87d755b3f11ad4?default=blank&size=40T Martin added this to the Pi collection ago
B21da4db0cf3410d41103e3338b481fd?default=blank&size=40ProjectCentral added this to the UTILITY collection ago
Mini jb computerjbeale published this design ago