A case for Waveshare's night-vision camera for Raspberry Pi. To be used together with separate infra-red LEDs.
https://www.youmagine.com/designs/lego-mount-for-infra-red-led
The LEGO mount is optional. Other mounts can easily be attached using a soldering iron.
Legal note: LEGO lost a court case where it was decided that the standard itself cannot be copyrighted because it had mathematical features more suitable for a patent, which would've expired a long time ago if they would've filed for one. According to copyright law, it's okay to print parts compatible with LEGO, but not print a part of a standard design that would violate LEGO's copyright. The LEGO mount does not immitate the design of LEGO in any other way than the dimensions needed for compatibility. Law is always fuzzy and changing, but this part is certainly both legal and ethical to print by promoting fair competition.
Disclaimer: I'm not affiliated with any of the brands mentioned. The brands belong to their respective owners and this contribution is for the sake of added value to those already owning the products.
Technical
Printed in PLA on Wanhao Duplicator I3 with compensation for normal line thickness. You must calibrate your printer before printing the 4x4 LEGO mount, or it won't fit on your LEGO. Then measure to see if your settings need a modification to the inner and outer thickness to the model. Wait for the print to cool off and shrink, then use fine sandpaper until it fits with lego without seams. Smooth out the large hole for the camera using a circular motion with a soldering iron. Make small quick inward strokes to solder the edges and longer strokes along flat surfaces. Add some scrap filament as extra material when attaching the LEGO mount to the bottom while avoiding anything sticking out against LEGO parts.
Attach the flat cable into the camera. The camera is snapped tight inside the top's large hole and the bottom is screwed into place using four M2 screws of length 10mm from the front.