Here is a simple camera case for the Raspberry Pi version 2 camera. The extra gasket (gasket.stl) is to enable the fitment of a metal shim with a pinhole drilled into it. Anything larger than 0.60uM will work. Please remove the existing lens before attempting to use a pinhole. This does "destroy" the lens, however, careful removal using sharp wire cutters on the corners of each of the camera can result in the lens being removed intact. I know, I've done it numerous times.
I won't be held responsible for destroying your PiCam if you install a pinhole lens.
I have used these extensively for my PhD thesis works.
If you find that the ball joint is too loose, try increasing your printer tolerances or, optionally, insert a grub screw into the flat portion of the ball. Such a grub screw includes a cone point that can be found at https://www.bolt.com.au/m3-10mm-grub-screw-cone-point-p-28353.html. This can then be adjusted out until a firm grip is reached.
Finally, an optional 5mm LED can be installed in the lower hole of the camera to allow increased Infrared illumination for night vision applications or just for fun to show when the camera is active. I suggest using an LED from the Kingbright range such as
Threeding.com is a marketplace for free and paid 3D printing models and files.
On our online platform individuals and businesses can buy, sell or just exchange freely 3D model suitable for 3D printing.