2023-03-05 01:20:16 +00:00
|
|
|
LIBRARY=false;
|
|
|
|
|
2017-12-28 03:22:21 +00:00
|
|
|
module cmount_male(len = 4) {
|
|
|
|
inner_d = 23;
|
|
|
|
outer_d = 24.7;
|
|
|
|
f_inner_d = 25.4;
|
|
|
|
f_outer_d = 28.6;
|
|
|
|
translate ([0, 0, len / 2 ]) {
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
cylinder(r = outer_d / 2, h = len, center = true);
|
|
|
|
}
|
|
|
|
cylinder(r = inner_d / 2, h = len + 1, center = true);
|
|
|
|
}
|
2017-12-21 05:19:29 +00:00
|
|
|
|
2017-12-28 03:22:21 +00:00
|
|
|
difference () {
|
|
|
|
translate([0, 0, -(len / 2) - 1]) cylinder(r = f_outer_d / 2, h = 2, center = true);
|
|
|
|
translate([0, 0, -(len / 2) - 1]) cylinder(r1 = f_inner_d / 2, r2 = inner_d / 2, h = 3, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-12-21 05:19:29 +00:00
|
|
|
|
|
|
|
module bellows_camera_board () {
|
|
|
|
H = 6;
|
2023-01-02 18:53:41 +00:00
|
|
|
INNER_D = 39;
|
2017-12-21 05:19:29 +00:00
|
|
|
difference () {
|
|
|
|
cube([60, 60, H], center = true);
|
|
|
|
//center
|
2023-01-02 18:53:41 +00:00
|
|
|
cylinder(r = INNER_D / 2, h = H + 1, center = true, $fn = 360);
|
2017-12-21 05:19:29 +00:00
|
|
|
//center bevels
|
2023-01-02 18:53:41 +00:00
|
|
|
translate([0, 0, 2.25]) cylinder(r1 = (INNER_D - 2) / 2, r2 = (INNER_D + 2) / 2, h = 1.5, center = true, $fn = 360);
|
|
|
|
translate([0, 0, -2.25]) cylinder(r1 = (INNER_D + 2) / 2, r2 = (INNER_D - 2) / 2, h = 1.5, center = true, $fn = 360);
|
2017-12-21 05:19:29 +00:00
|
|
|
//corners
|
|
|
|
for (i = [0 : 3]) {
|
|
|
|
rotate([0, 0, i * (360 / 4) + 45 ]) translate([43.5, 0, 0]) cube([11, 11, H + 1], center = true);
|
|
|
|
}
|
2017-12-28 03:22:21 +00:00
|
|
|
//bolt
|
2023-01-02 22:11:44 +00:00
|
|
|
translate([0, 30, 0]) rotate([90, 0, 0]) cylinder(r = (4 / 2), h = 30, center = true, $fn = 30);
|
2017-12-21 05:19:29 +00:00
|
|
|
}
|
2017-12-28 03:22:21 +00:00
|
|
|
}
|
2017-12-21 05:19:29 +00:00
|
|
|
|
2023-04-12 02:39:44 +00:00
|
|
|
module bellows_camera_board () {
|
|
|
|
H = 6;
|
|
|
|
PROTRUSION_D = 37.25;
|
|
|
|
PROTRUSION_H = 7;
|
|
|
|
INNER_D = 34.5;
|
|
|
|
difference () {
|
|
|
|
union () {
|
|
|
|
cube([60, 60, H], center = true);
|
|
|
|
translate([0, 0, (H/2) + (PROTRUSION_H/2)]) cylinder(r = PROTRUSION_D / 2, h = PROTRUSION_H, center = true, $fn = 360);
|
|
|
|
}
|
|
|
|
//center
|
|
|
|
cylinder(r = INNER_D / 2, h = H + PROTRUSION_H + 10, center = true, $fn = 360);
|
|
|
|
|
|
|
|
//corners
|
|
|
|
for (i = [0 : 3]) {
|
|
|
|
rotate([0, 0, i * (360 / 4) + 45 ]) translate([43.5, 0, 0]) cube([11, 11, H + 1], center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-28 03:22:21 +00:00
|
|
|
module camera_mount () {
|
|
|
|
$fn = 360;
|
|
|
|
cmount_male(5);
|
|
|
|
translate([0, 0, -4]) {
|
|
|
|
difference() {
|
|
|
|
cylinder(r = 42 / 2, h = 4, center = true);
|
|
|
|
cylinder(r = 26 / 2, h = 4 + 1, center = true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
translate([0, 0, -4 - 5]) {
|
|
|
|
difference() {
|
|
|
|
cylinder(r = 37.9 / 2, h = 7, center = true);
|
|
|
|
cylinder(r = 30 / 2, h = 7 + 1, center = true);
|
|
|
|
}
|
|
|
|
}
|
2017-12-21 05:19:29 +00:00
|
|
|
}
|
|
|
|
|
2023-01-02 18:53:30 +00:00
|
|
|
PART = "bellows_camera_board";
|
2022-12-24 04:01:37 +00:00
|
|
|
|
2023-03-05 01:20:16 +00:00
|
|
|
if (!LIBRARY && PART == "bellows_camera_board") {
|
2022-12-24 04:01:37 +00:00
|
|
|
bellows_camera_board();
|
2023-03-05 01:20:16 +00:00
|
|
|
} else if (!LIBRARY && PART == "camera_mount") {
|
2022-12-24 04:01:37 +00:00
|
|
|
camera_mount();
|
2023-04-12 02:39:44 +00:00
|
|
|
} else if (!LIBRARY && PART == "bellows_lens_board") {
|
|
|
|
bellows_lens_board();
|
2022-12-24 04:01:37 +00:00
|
|
|
}
|