Commit 73193d5c authored by Torbjørn Ludvigsen's avatar Torbjørn Ludvigsen 👷

Stiffens up motor brackets

parent a4a40658
......@@ -11,28 +11,13 @@ module motor_bracket(){
flerp = Motor_bracket_flerp;
flerp_h = cw;
flerp_r = Motor_bracket_flerp_r;
//crossed_cube([cd, bd-1, wall_th]);
module crossed_cube(v){
cross_w = 2;
cube(v);
intersection(){
for(i=[0,1])
translate([i*v[0],0,0])
mirror([i,0,0])
rotate([0,0,atan(v[1]/v[0])])
translate([0,-cross_w/2,0])
cube([sqrt(v[0]*v[0]+v[1]*v[1]), cross_w, v[2]+cross_w]);
translate([0,0,-1])
cube([v[0], v[1], v[2]+cross_w+2]);
}
}
max_m3_screw_head_d = 7.0;
difference(){
union(){
difference(){
translate([-cd/2, -wall_th, -cw/2])
cube([cd, wall_th, cw+2]);
translate([-cd/2, -bd,-cw/2])
cube([cd, bd, cw]);
for(k=[0,1])
mirror([k,0,0])
translate([cw/2,0, -cw])
......@@ -40,10 +25,10 @@ module motor_bracket(){
inner_round_corner(r=3, h=2*cw, $fn=8*4);
translate([0,0,1.5])
rotate([90,0,0]){
translate([0,0,-1]){
cylinder(d=Nema17_ring_diameter+2, h=wall_th+2);
Nema17_screw_holes(3.5, wall_th+2, $fs=1);
}
translate([0,0,-1])
Nema17_screw_holes(3.5, bd+2, $fs=1);
translate([0,0,wall_th])
Nema17_screw_holes(max_m3_screw_head_d, bd+2, teardrop=true, $fs=1);
}
}
......@@ -59,63 +44,35 @@ module motor_bracket(){
translate([flerp_h-2*flerp/2,0,0])
cylinder(d=Mounting_screw_d+0.5, h=wall_th+2);
}
translate([0,flerp_h,-1])
mirror([0,1,0])
inner_round_corner(r=1, h=wall_th+2, $fn=4*8);
}
translate([-(-cd/2),-bd,-cw/2+0.3])
rotate([0,-90,0])
crossed_cube([cd-0.3, bd-3, wall_th]);
}
translate([-cd/2, -bd, -cw/2])
crossed_cube([cd, bd-3, wall_th]);
for(k=[0,1])
mirror([k,0,0])
translate([cw/2,-bd+wall_th,-cw/2])
inner_round_corner(r=1, h=cw, $fn=4*8);
}
// Round corners
translate([0,0,-cw/2])
linear_extrude(height=wall_th)
translate([0,-2])
rotate([0,0,90])
translate([0,-cd/2])
rounded_2corner([2, cd], 3, $fn=4*8);
for(k=[0,1]){
mirror([k,0,0]){
translate([-cw/2+wall_th,-wall_th,-cw/2])
rotate([0,0,-90])
inner_round_corner(r=1, h=cw, $fn=8*4);
translate([-cd/2+wall_th,-bd,-cw/2+wall_th])
rotate([-90,0,0])
rotate([0,0,-90])
inner_round_corner(r=1, h=bd-1.1, $fn=8*4);
}
// Allow at least a 10 mm screw in for Nema17 fastening
setscrew_opening_h = max(max_m3_screw_head_d+4, 10);
setscrew_opening_d = Nema17_screw_hole_width;
translate([0,0,1.5])
rotate([90,0,0]){
translate([0,0,-1])
cylinder(d=Nema17_ring_diameter+5, h=bd+2);
translate([0,0,wall_th])
cylinder(d=setscrew_opening_d, h = setscrew_opening_h, $fn = 50);
}
translate([0,-wall_th,-cw/2+wall_th])
rotate([0,90,0])
rotate([0,0,180])
translate([0,0,-(cd-1)/2])
inner_round_corner(r=1, h=cd-1, $fn=8*4);
}
rotate([0,Motor_bracket_att_ang,0])
translate([-(Spool_pitch+Motor_pitch),0,0])
rotate([-90,0,0])
cylinder(r=Spool_outer_radius+1.5, h = 200, center=true, $fn = 50);
translate([-20+7,-wall_th-1,0])
cube(20);
rotate([-90,0,0]){
cylinder(r=Spool_outer_radius+1.5, h = 200, center=true, $fn = 50);
}
translate([0,0,50+cw/2])
cube(100, center=true);
// Cut overhanging tip
translate([-20+7,-bd-1,0])
cube([20,bd+2,20]);
screw_head_extra_h = 12;
screw_head_extra_r = 2;
......
......@@ -224,12 +224,19 @@ module rounded_2corner(v, r){
module Nema17_screw_translate(corners){
for (i=[0:90:90*corners - 1]){
rotate([0,0,i+45]) translate([Nema17_screw_hole_width/2,0,0]) children();
rotate([0,0,i+45])
translate([Nema17_screw_hole_width/2,0,0])
rotate([0,0,-i-45])
children();
}
}
module Nema17_screw_holes(d, h, corners=4){
Nema17_screw_translate(corners) cylinder(r=d/2,h=h);
module Nema17_screw_holes(d, h, corners=4, teardrop=false){
Nema17_screw_translate(corners)
if(teardrop)
teardrop(r=d/2,h=h);
else
cylinder(r=d/2,h=h);
}
module centered_u_groove_bearing(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment