I needed to create some fittings to hold some 12V LED lights used for emergency lighting, which was a good excuse to do a bit of 3D design and print them on the 3D printer:
The slot in the middle is for a connector for the lamp, which fits in from the back:
The 12V lamp then plugs into the socket:
Note the gap around the lamp and the triangular holes to help airflow; the first version didn’t have these and the lamp got so hot that it melted the plastic of the base!
And finally, the working fitting. This will be mounted upside down on the ceiling: