- // Material saving cutout
- translate(v=[-10,40,-30]) rotate(a=[45,0,0]) cube(size = [60,42,42], center = true);
- // Motor shaft cutout
- translate(v=[0,0,0]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 70, r=17, $fn=6);
-}
- // zip tie retainer for securing end stop wiring
- #translate([-5,-63,14]) difference() { cylinder(r=4.5,h=4,$fn=16);
- translate([0,0,-1]) cylinder(r=2.5,h=7,$fn=16);
- }
- #translate([-5,-48,x_box_height-30.5]) rotate([90,0,0]) difference() { cylinder(r=4.5,h=4,$fn=16,center=true);
- translate([0,0,-1]) cylinder(r=2.5,h=7,$fn=16,center=true);
- }
- }
+ translate(v=[20,15.5,15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 70, r=1.8, $fn=30);
+ translate(v=[1,15.5,15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = motor_screwhead_depth, r=screw_head_r, $fn=30);
+
+ // Material saving cutout
+ translate(v=[-10,12+motor_y_offset/2,10]) cube(size = [60,42 + motor_y_offset,42], center = true);
+
+ // Material saving cutout
+ // todo (maybe...): if motor_y_offset is above 10 edge
+ // becomes very sharp, but this is a pretty unrealistic
+ // situation so might not be worth caring about.
+ translate(v=[-10,40,-30]) rotate(a=[45,0,0]) cube(size = [60,43,42], center = true);
+ // Motor shaft cutout
+ translate(v=[0,0,0]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 70, r=17, $fn=6);
+ }
+ }
+ // zip tie retainer for securing end stop wiring
+ #translate([x_base_back() + x_box_width,x_base_inside() + 4.5/2,x_box_height - 8 - bushing_xy[0]*2]) difference() { cylinder(r=4.5,h=4,$fn=16);
+ translate([0,0,-1]) cylinder(r=2.5,h=7,$fn=16);
+ }
+ #translate([x_base_back() + x_box_width,-bushing_z[2]/2 - 1,x_box_height]) rotate([90,0,0]) difference() { cylinder(r=4.5,h=4,$fn=16,center=true);
+ translate([0,0,-1]) cylinder(r=2.5,h=7,$fn=16,center=true);
+ }