Merge in 9 months of work on capper branch #71

Merged
mattmcw merged 95 commits from capper into main 2023-02-19 05:28:46 +00:00
2 changed files with 52 additions and 1 deletions
Showing only changes of commit 9d3bf24627 - Show all commits

48
scad/capper.scad Normal file
View File

@ -0,0 +1,48 @@
include <common.scad>;
// Using a Tower Pro SG-5010 servo
// https://www.thingiverse.com/thing:83806 - Lego mount (has dimensions of servo body)
// https://www.thingiverse.com/thing:5241574 - Robot arm (just cool)
LensVoidDiameter = 40; //mm
LensZ = 80;
LensY = 20;
CapOffsetX = -50;
CapOffsetY = -11;
module Mount () {
$fn = 200;
difference(){
union(){
difference(){
cylinder(r=R(LensVoidDiameter)+15, h=LensY, center=true);
cylinder(r=R(LensVoidDiameter)+5, h=LensY+1, center=true);
}
translate([0,0,-(LensY/4)-(5/4)]) difference(){
cylinder(r=R(LensVoidDiameter)+5, h=R(LensY)-R(5), center=true);
cylinder(r=R(LensVoidDiameter), h=LensY+1, center=true);
}
}
translate([0,R(LensVoidDiameter),0])cube([LensVoidDiameter*2, LensVoidDiameter, 5], center=true);
}
}
module Cap () {
$fn = 200;
difference(){
union(){
translate([CapOffsetX,CapOffsetY,0]){
cylinder(r=R(LensVoidDiameter) + 4, h=4, center = true);
translate([35,(LensVoidDiameter/4)+1,0]) cube([50,R(LensVoidDiameter),4], center=true);
}
cylinder(r=5,h=10,center=true);
}
cylinder(r=2,h=10+1,center=true);
}
}
Mount();
translate([-CapOffsetX,-CapOffsetY,0]) rotate([0,0,-60]) Cap();

View File

@ -29,4 +29,7 @@ module trap_cube(height = 19, top_x = 30, top_y = 34, bottom_x = 45, bottom_y =
cube([bottom_x - wall_thickness, bottom_y - wall_thickness, 0.1], center=true);
}
}
}
}
echo("common.scad - R()");
function R (diameter) = diameter / 2.0;