use <x-end.scad>
offs_adjuster_y = 5.5;
-adj_block_x = 12;
+adj_block_x = 9;
adj_block_y = 10;
adj_block_z = 32;
motor_offs_z = 0;
+motor_y_offset = 7;
+
module adjustomatic() {
translate ([0, 0, 6.5])
difference() {
- translate(v=[-(15+17/2+adj_block_x/2),offs_adjuster_y,58-adj_block_z/2])
+ translate(v=[-(15+17/2+adj_block_x/2),offs_adjuster_y,58.5-adj_block_z/2])
cube(size=[adj_block_x,adj_block_y,adj_block_z],center=true);
translate(v=[-(15+17/2+adj_block_x/2)-5,offs_adjuster_y,58-adj_block_z/2-8])
translate(v=[-(15+17/2+adj_block_x/2),offs_adjuster_y,58-adj_block_z/2+14])
{
- rotate([0,0,30]) #cylinder(h = 4, r = 7.5/2 , $fn = 6);
- translate([0,0,-20]) #cylinder(h=30,r=2,$fn=16);
+ rotate([0,0,30]) #cylinder(h = 4, r = 7.0/2 , $fn = 6);
+ translate([0,0,-20]) #cylinder(h=30,r=1.6,$fn=16);
}
}
translate([-1.5,endstop_sw_offs_adjust,0]) cube(size=[9,20.5,22]);
translate([-2,endstop_sw_offs_adjust,1]) cube(size=[7,21,22]);
- #translate([0,15.5,8]) cube(size=[10,5,20]);
+ translate([0,15.5,8]) cube(size=[10,5,20]);
// screw holes for endstop switch
translate([-2,7+endstop_sw_offs_adjust,1.5+5.5]) rotate([0,90,0]) cylinder(r=1.5,h=15);
module x_end_motor_sr() {
// TODO: use x_box_height
difference() {
- cube(size=[8,12,10]);
- #translate([4,11.5,9]) rotate([0,90,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([9,10.6,10]) rotate([0,45,90]) cube(size=[2,11,2]);
+ cube(size=[8,14+motor_y_offset,12]);
+ #translate([4,13.5+motor_y_offset,11]) rotate([0,90,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([9,12.6+motor_y_offset,12]) rotate([0,45,90]) cube(size=[2,11,2]);
}
}
module x_end_motor_base(){
x_end_base();
// motor arm
- translate(v=[-15,31,26.5+motor_offs_z]) cube(size = [17,44,53], center = true);
+ translate(v=[-15,31,26.5+motor_offs_z]) cube(size = [17,44+motor_y_offset*2,53], center = true);
// z stop adjuster
adjustomatic();
// x endstop holder
translate(v=[-1,32,30.25+motor_offs_z]){
// Belt hole
translate(v=[-14,1,0]) cube(size = [10,46,22], center = true);
+ translate ([0, motor_y_offset, 0]) {
// Motor mounting holes
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 = 12, r=screw_head_r, $fn=30);
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);
x_end_motor_base();
x_end_motor_holes();
}
- // strain relief (zip tie point) below the motor
- translate([-23.5,9,53]) x_end_motor_sr();
+ // strain relief (zip tie point) below the motor
+ translate([-23.5,9,53]) x_end_motor_sr();
}
rotate([0,0,180])