Compare commits

...

2 commits

Author SHA1 Message Date
Kaan Barmore-Genç 9970074bd7
added pi bed 2023-12-25 15:55:30 -06:00
Kaan Barmore-Genç 521eebca77
Finish arm base 2023-12-24 13:37:46 -06:00
2 changed files with 380 additions and 298 deletions

View file

@ -1,17 +1,18 @@
/** Parameters */
$camera_mount = true;
$base = true;
$screen_mount = true;
$arm_base = true;
$arm_pieces = 1;
$screws = 1;
$nuts = 1;
/** Scale nuts up slightly for easier fit and less friction. */
$nut_scale = 1.05;
$nut_bumps = false;
/** Code */
module __no_more_parameters() {};
/** Scale nuts up slightly for easier fit and less friction. */
$nut_scale = 1.05;
$triangle_width = 65;
$triangle_height = 40;
$triangle_thickness = 5.87;
@ -28,14 +29,60 @@ $steps_per_turn = $preview ? 8 : 128;
use <Thread_Library.scad>
if ($camera_mount) {
translate([0, -60, 0])
translate([-90, -40, 0])
camera_mount();
}
if ($base) {
translate([10, 0, 0]) attachment_point();
screen_and_attachment();
pi_bed();
}
if ($screen_mount) {
translate([0, 40, 0]) screen_mount();
module pi_bed() {
$slat_count = 10;
$slat_gap = 10.4;
$slat_width = 4;
$side_width = 6;
$bed_depth = 6;
$bed_width = 70;
// slats
for (i = [0:1:$slat_count - 1]) {
translate([$slat_gap * i, -70, -$bed_depth])
cube([4, $bed_width, 4]);
}
// sides
for (i = [0:1:1]) {
color("blue")
translate([0, -$bed_width * i - $side_width, -$bed_depth])
cube([97.6, $side_width, $bed_depth]);
}
// railings
color("orange")
translate([0, -$side_width - $bed_width, -$bed_depth])
cube([$slat_width / 2, $bed_width, $bed_depth]);
color("orange")
translate([97.6, -$side_width - $bed_width, -$bed_depth])
cube([$slat_width / 2, $bed_width + $side_width, $bed_depth]);
}
module screen_and_attachment() {
color("green")
translate([-15, 0, 0])
rotate([90, 0, 0])
attachment_point();
color("blue")
translate([-0.5, 0, 4.5])
rotate([45, 0, -90])
screen_mount();
$screen_mount_support_width = 6;
difference() {
color("red")
translate([44.5, -$screen_mount_support_width, 27.4])
rotate([0, -45, 0])
cube([12, $screen_mount_support_width, 18]);
translate([50, -$screen_mount_support_width * 1.5, 0])
cube([20, $screen_mount_support_width * 2, 60]);
};
}
$camera_mount_thickness = 1;
@ -93,7 +140,7 @@ module attachment_point() {
translate([$rounded_nose, 4.234, -0.2])
rotate([0, 0, 120])
nose_rounding();
translate([0, $triangle_height - $triangle_y_offset * 1.5, -0.1])
translate([0, $triangle_height - $triangle_y_offset * 1.2, -0.1])
cube([100, 100, $triangle_thickness * 3]);
translate([45, 12, -0.1])
cylinder(h=100, r=10);
@ -178,13 +225,17 @@ module nut_bumps() {
}
}
module screw() {
union() {
translate([0, 0, $screw_head_thickness - 4])
thread();
nut_head();
};
}
for (i = [0:1:$screws - 1]) {
translate([-$screw_head_diameter, i * ($screw_head_diameter + 5), 0])
union() {
translate([0, 0, $screw_head_thickness - 4])
thread();
nut_head();
};
screw();
}
for (i = [0:1:$nuts - 1]) {
@ -232,3 +283,34 @@ module thread_hole_punch(height=50) {
translate([0, 0, -0.1])
cylinder(d=13, h=height);
}
module arm_base() {
$width = 20;
$thickness = 3;
$screw_top = 24.46175;
$hole_height = $screw_top + $width / 2 + 1;
difference() {
union() {
translate([0, $thickness / 2, $hole_height])
rotate([90, 0, 0])
cylinder(d=$width, h=$thickness);
color("gray")
translate([-$width / 2, -$thickness / 2, $screw_top])
cube([$width, $thickness, $width / 2 + 1]);
};
translate([0, 2, $hole_height])
rotate([90, 0, 0])
thread_hole_punch();
}
color("brown")
translate([0, 0, $screw_top])
rotate([-180, 0, 0])
screw();
}
if ($arm_base) {
translate([-30, -40, 0])
arm_base();
}