Skip to content

Instantly share code, notes, and snippets.

@michalpelka
Created January 4, 2026 00:57
Show Gist options
  • Select an option

  • Save michalpelka/986e9c6a5d77f5de0a3b96f13281bc7e to your computer and use it in GitHub Desktop.

Select an option

Save michalpelka/986e9c6a5d77f5de0a3b96f13281bc7e to your computer and use it in GitHub Desktop.
camera_dim_width = 30;
camera_dim_height = 50;
camera_hole_width = 20;
camera_hole_height = 20;
camera_hole_dim = 2.5;
camera_hole_nipple_h = 2;
camera_hole_nipple_d = camera_hole_dim + 2;
mount_hegiht = 12;
UNC_Insert_D = 8.1;
difference() {
// box + nipples
union()
{
translate([0,0,mount_hegiht/2])
cube([camera_dim_width, camera_dim_height, mount_hegiht], center=true);
translate([0,-camera_dim_height/2+camera_hole_height/2+camera_hole_nipple_d,0])
{
translate([camera_hole_width/2, camera_hole_height/2, mount_hegiht])
cylinder(h = camera_hole_nipple_h, d = camera_hole_nipple_d, $fn=20);
translate([camera_hole_width/2, -camera_hole_height/2, mount_hegiht])
cylinder(h = camera_hole_nipple_h, d = camera_hole_nipple_d, $fn=20);
translate([-camera_hole_width/2, camera_hole_height/2, mount_hegiht])
cylinder(h = camera_hole_nipple_h, d = camera_hole_nipple_d, $fn=20);
translate([-camera_hole_width/2, -camera_hole_height/2, mount_hegiht])
cylinder(h = camera_hole_nipple_h, d = camera_hole_nipple_d, $fn=20);
}
}
// mount Holes for camera
translate([0,-camera_dim_height/2+camera_hole_height/2+camera_hole_nipple_d,,0])
{
translate([camera_hole_width/2, camera_hole_height/2, -0.001])
cylinder(h = 100, d = camera_hole_dim, $fn=20);
translate([camera_hole_width/2, -camera_hole_height/2,-0.001])
cylinder(h = 100, d = camera_hole_dim, $fn=20);
translate([-camera_hole_width/2, camera_hole_height/2,-0.001])
cylinder(h = 100, d = camera_hole_dim, $fn=20);
translate([-camera_hole_width/2, -camera_hole_height/2,-0.001])
cylinder(h = 100, d = camera_hole_dim, $fn=20);
}
// bottom for UNC
translate([0,camera_dim_height/2+0.001,UNC_Insert_D/2+2])
rotate([90,0,0])
cylinder(h = 15, d = UNC_Insert_D, $fn=20);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment