Last active
February 9, 2023 00:06
-
-
Save codekansas/7e49fe7c405162564689607e9c19f985 to your computer and use it in GitHub Desktop.
Random camera mount part
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mount for my ESP 32 above my workbench. | |
cam_diam = 7.7 + 1.0; | |
cam_offset = 2.1; | |
other_offset = 1.9; | |
rect_height = 39.6 + 1.0; | |
rect_width = 27.0 + 4.0; | |
cam_from_top = 10.4; | |
leng = 55; | |
union() { | |
linear_extrude(2.0) { | |
difference() { | |
square([rect_height, rect_width]); | |
translate([cam_from_top, rect_width / 2]) | |
circle(d=cam_diam); | |
} | |
} | |
linear_extrude(cam_offset + other_offset) { | |
translate([rect_height - 5, (rect_width - 5) / 2]) { | |
square([5, 5]); | |
} | |
} | |
linear_extrude(2) { | |
translate([rect_height - 5, 0]) { | |
square([leng, rect_width]); | |
} | |
} | |
difference() { | |
linear_extrude(15) { | |
translate([rect_height - 7 + leng, 0]) { | |
square([7 + 2 + 10, rect_width]); | |
} | |
} | |
translate([0, 0, -2]) { | |
linear_extrude(15) { | |
translate([rect_height - 5 + leng, -1]) { | |
square([3, rect_width + 2]); | |
} | |
} | |
} | |
translate([rect_height - 7 + leng + 10 - 3, 2, 2]) { | |
linear_extrude(15) { | |
square([10, rect_width - 4]); | |
} | |
} | |
} | |
translate([leng + rect_height - 7, 0, 2]) | |
rotate([90, 0, 180]) | |
linear_extrude(2) | |
polygon([[0, 0], [leng + rect_height - 7, 0], [0, 13]]); | |
translate([leng + rect_height - 7, rect_width - 2, 2]) | |
rotate([90, 0, 180]) | |
linear_extrude(2) | |
polygon([[0, 0], [leng + rect_height - 7, 0], [0, 13]]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment