Commit cd92cbf0 authored by Torbjørn Ludvigsen's avatar Torbjørn Ludvigsen 👷

Changes ambigous variable names

parent 5cda22a3
......@@ -3,7 +3,7 @@ use <util.scad>
//spool_center();
module spool_center(){
bearing_wall_th = 5;
bearing_wall_th = Spool_center_bearing_wall_th;
center_h = Spool_height+Torx_depth-4;
ek_w = 8;
eang = 12; // just for placement of inner round corners
......
......@@ -5,7 +5,7 @@ use <util.scad>
module screws_space(){
flerp0 = 6;
flerp1 = 6;
l = Depth_of_lineroller_base + 2*Bearing_r + 2*Bearing_wall + flerp0 + flerp1;
l = Depth_of_lineroller_base + 2*b623_vgroove_big_r + 2*Bearing_wall + flerp0 + flerp1;
translate([Depth_of_lineroller_base/2-2,0,0])
for(a=[0:90:359])
rotate([0,0,a])
......@@ -20,7 +20,7 @@ module base(base_th = Base_th,
center=false,
twod=false,
openings=[false, false, false, false]){
l = Depth_of_lineroller_base + 2*Bearing_r + 2*Bearing_wall + flerp0 + flerp1;
l = Depth_of_lineroller_base + 2*b623_vgroove_big_r + 2*Bearing_wall + flerp0 + flerp1;
for(k=[0,1])
translate([+k*(l/2+Depth_of_lineroller_base/2),-k*(l/2-Depth_of_lineroller_base/2),0])
translate([center ? -l/2 : -Depth_of_lineroller_base/2-flerp0, -Depth_of_lineroller_base/2, 0])
......@@ -63,23 +63,23 @@ function foot_shape(r, e, f, w) = concat([
function wall_shape(a, w, extr) = 1 - (sin(a*90))*extr/((w/2)+extr); // a 0 -> 1
lineroller_ABC_winch(edge_start=0, edge_stop = 180, with_base=true);
module lineroller_ABC_winch(base_th = Base_th, edge_start=0, edge_stop=180, tower_h = Tower_h, bearing_width=Bearing_width, shoulder=0.4, with_base=false, twod = false, big_y_r = 190, big_z_r=94){
module lineroller_ABC_winch(base_th = Base_th, edge_start=0, edge_stop=180, tower_h = Tower_h, bearing_width=b623_width, shoulder=0.4, with_base=false, twod = false, big_y_r = 190, big_z_r=94){
module wall(){
// Foot parameters
c = 10;
e = 5.52;
//f = 2.5; // extra x-length for swung wall
w = Bearing_r*2+2*Bearing_wall;
w = b623_vgroove_big_r*2+2*Bearing_wall;
q = 3.9;
round_part = 0.65;
// Main block
r2 = Bearing_bore_r+1.3;
r2 = b623_bore_r+1.3;
foot_shape_r = 1.0;
f = Depth_of_lineroller_base-w-2*foot_shape_r; // extra x-length for swung wall
b_th = Lineroller_wall_th+e;
top_off_r = -foot_shape_r+Bearing_r;
top_off_r = -foot_shape_r+b623_vgroove_big_r;
translate([0, -(bearing_width + 2*Wall_th)/2, 0])
rotate([-90,-90,0]){
......@@ -87,9 +87,9 @@ module lineroller_ABC_winch(base_th = Base_th, edge_start=0, edge_stop=180, towe
union(){
// Foot with a swing
translate([0,0,Lineroller_wall_th])
translate([tower_h-Bearing_r,w/2,0])
translate([tower_h-b623_vgroove_big_r,w/2,0])
difference(){
translate([-tower_h+Bearing_r, -(w+f+2*foot_shape_r)/2, -b_th])
translate([-tower_h+b623_vgroove_big_r, -(w+f+2*foot_shape_r)/2, -b_th])
cube([tower_h-foot_shape_r, w+f+2*foot_shape_r, b_th]);
translate([0,-big_y_r-w/2,-15])
cylinder(r=big_y_r, h=30, $fn=250);
......@@ -104,10 +104,10 @@ module lineroller_ABC_winch(base_th = Base_th, edge_start=0, edge_stop=180, towe
translate([0,0,-big_z_r-Wall_th])
rotate([90,0,0])
cylinder(r=big_z_r, h=30, center=true, $fn=250);
translate([-0.1-tower_h+Bearing_r,-(w+f+2*foot_shape_r+20)/2,-15])
translate([-0.1-tower_h+b623_vgroove_big_r,-(w+f+2*foot_shape_r+20)/2,-15])
cube([base_th, w+f+2*foot_shape_r+20, 30]);
}
translate([tower_h-Bearing_r,Bearing_r+Bearing_wall,0]){
translate([tower_h-b623_vgroove_big_r,b623_vgroove_big_r+Bearing_wall,0]){
cylinder(r=r2, h=Lineroller_wall_th+shoulder, $fs=1);
dpth = 1.5;
translate([0,0,-dpth])
......@@ -115,16 +115,16 @@ module lineroller_ABC_winch(base_th = Base_th, edge_start=0, edge_stop=180, towe
}
}
translate([tower_h-Bearing_r,Bearing_r+Bearing_wall,-1])
cylinder(d=Bearing_bore_r*2+0.3, h=Lineroller_wall_th+0.5+2, $fs=1);
translate([tower_h-b623_vgroove_big_r,b623_vgroove_big_r+Bearing_wall,-1])
cylinder(d=b623_bore_r*2+0.3, h=Lineroller_wall_th+0.5+2, $fs=1);
}
}
// Edge to prevent line from falling of...
a = 1.75;
b= 0.8;
rot_r = Bearing_r+b;
rot_r = b623_vgroove_big_r+b;
difference(){
translate([Bearing_r+Bearing_wall, -bearing_width/2-0.8, tower_h - Bearing_r])
translate([b623_vgroove_big_r+Bearing_wall, -bearing_width/2-0.8, tower_h - b623_vgroove_big_r])
rotate([-90,0,0])
difference(){
rotate_extrude(angle=180, convexity=10, $fn=60)
......@@ -145,7 +145,7 @@ module lineroller_ABC_winch(base_th = Base_th, edge_start=0, edge_stop=180, towe
}
translate([-10,-10,0])
cube([10,10,tower_h]);
translate([2*Bearing_r+2*Bearing_wall,-10,0])
translate([2*b623_vgroove_big_r+2*Bearing_wall,-10,0])
cube([10,10,tower_h]);
}
}
......
......@@ -7,28 +7,28 @@ foot_shape_r = 1.0;
base_th = Base_th;
shoulder=0.4;
extra_bearing_width = shoulder+0.3;
bearing_width = Bearing_width + extra_bearing_width; // Give extra space for bearing in this part
bearing_width = b623_width + extra_bearing_width; // Give extra space for bearing in this part
module topping(){
difference(){
tx = Depth_of_lineroller_base/2+2.25; // Nothing magic about 2.25. Just for looks
ty = Bearing_width+extra_bearing_width+2*Lineroller_wall_th + extra_bearing_width;
translate([Bearing_r+Bearing_wall+1,0,0])
ty = b623_width+extra_bearing_width+2*Lineroller_wall_th + extra_bearing_width;
translate([b623_vgroove_big_r+Bearing_wall+1,0,0])
linear_extrude(height = height, slices=1, scale=[0.8646,1]) // Nothing magic about 0.8646
translate([-tx,-ty/2])
rounded_square([tx, ty], foot_shape_r,$fn=4*6);
bearing_bore_z = Tower_h-Bearing_r;
bearing_bore_z = Tower_h-b623_vgroove_big_r;
translate([-0.001,-(bearing_width+extra_bearing_width)/2,-1])
cube([100, bearing_width+extra_bearing_width, bearing_bore_z+1]);
translate([Bearing_wall+Bearing_r,0, bearing_bore_z]){
translate([Bearing_wall+b623_vgroove_big_r,0, bearing_bore_z]){
rounded_cube([30,3,3], center=true, 0.6);
rotate([90,0,0]){
cylinder(r=Bearing_r+2, h=bearing_width+extra_bearing_width, center=true);
cylinder(r=b623_vgroove_big_r+2, h=bearing_width+extra_bearing_width, center=true);
cylinder(d=4.5, h=20, center=true);
}
}
translate([Bearing_wall + Bearing_r - Bearing_small_r,0,Tower_h-Bearing_r-Bearing_wall])
translate([Bearing_wall + b623_vgroove_big_r - b623_vgroove_small_r,0,Tower_h-b623_vgroove_big_r-Bearing_wall])
cylinder(r=Ptfe_r, h=100, $fs=0.2);
}
......
......@@ -4,11 +4,11 @@ use <util.scad>
use <lineroller_ABC_winch.scad>
base_th = 6;
l = Depth_of_lineroller_base + 2*Bearing_r + 2*Bearing_wall;
l = Depth_of_lineroller_base + 2*b623_vgroove_big_r + 2*Bearing_wall;
track_l = l;
head_r = 3.5;
screw_r = 1.5;
tower_h = 17 + Bearing_r;
tower_h = 17 + b623_vgroove_big_r;
x_len = Depth_of_lineroller_base-4; // For the two "wings" with tracks for screws
y_extra = -2.0; // For the two "wings" with tracks for screws
......@@ -22,7 +22,7 @@ module lineroller_anchor(){
lineroller_ABC_winch(edge_start=0, edge_stop=120,
base_th = base_th,
tower_h = tower_h,
bearing_width=Bearing_width+0.2,
bearing_width=b623_width+0.2,
big_y_r=40,
big_z_r=29);
......@@ -89,7 +89,7 @@ module lineroller_anchor(){
ptfe_guide();
module ptfe_guide(){
line_z = tower_h-Bearing_r-Bearing_small_r;
line_z = tower_h-b623_vgroove_big_r-b623_vgroove_small_r;
length = 9;
width = (Ptfe_r+2)*2;
difference(){
......
// Parameters shared between modules
Base_th = 2.8;
Beam_width = 15;
Wiggle = 0.25;
Fat_beam_width = Beam_width + Wiggle;
Beam_length = 400;
Wall_th = 2.5;
Min_beam_width = 12.5;
Max_beam_width = 17.5;
Zip_th = 2;
Zip_h = Zip_th + Max_beam_width - Min_beam_width;
Zip_w = 5.0;
Nema17_cube_width = 42.43;
Nema17_screw_hole_width = 43.74; // Opposite corner screws
Nema17_ring_diameter = 22;
......@@ -20,20 +17,15 @@ Nema17_cube_height = 39.36;
Nema17_shaft_height = 63.65;
Nema17_ring_height = 2;
Nema17_shaft_radius = 5/2;
b608_outer_dia = 22.2;
b608_width = 7.05;
Gap_between_sandwich_and_plate = 1.5 + Base_th; // 1.5 mm for wiggle
Motor_bracket_flerp_r = 6;
Motor_bracket_flerp = 14;
Motor_bracket_cw = Nema17_cube_width + 6;
Motor_bracket_att_ang = 50;
Mounting_screw_d = 4.5;
Mounting_screw_head_d = 14;
Spool_outer_wall_th = 4;
// Corner clamp parameters
......@@ -69,21 +61,21 @@ Motor_bracket_depth = Gear_height+1+7+Nema17_ring_height+1+Gap_between_sandwich_
Spool_core_flerp0 = 16+3;
/////// Lineroller parameters ////////////
Bearing_width = 4;
Bearing_r = 12/2;
Bearing_small_r = 10/2;
Bearing_bore_r = 3/2;
b623_width = 4;
b623_bore_r = 3/2;
b623_vgroove_big_r = 12/2;
b623_vgroove_small_r = 10/2;
Lineroller_wall_th = 2.3;
// The height that lineroller_ABC_winch will have if we include the bearing
Tower_h = Gap_between_sandwich_and_plate+Gear_height + Spool_height/2 + Bearing_small_r + Bearing_r;
Tower_h = Gap_between_sandwich_and_plate+Gear_height
+ Spool_height/2
+ b623_vgroove_small_r
+ b623_vgroove_big_r;
Bearing_wall = 1;
Depth_of_lineroller_tower = Bearing_width + 2*Wall_th; // 9
Depth_of_lineroller_tower = b623_width + 2*Wall_th; // 9
Depth_of_lineroller_base = Depth_of_lineroller_tower + 9; // 18
Ptfe_r = 2.1;
Lineroller_base_r = Depth_of_lineroller_base/2-1*(Ptfe_r+2);
Screw_h = 2;
Screw_head_h = 2;
Spool_center_bearing_wall_th = 5;
......@@ -38,8 +38,10 @@ module spool_gear_outer(){
module spool_gear_center(){
difference(){
spool_center();
screw_head_dist_from_origin = Bearing_r + Bearing_wall + Spool_core_flerp0/2 + 6/2 + 2;
screw_head_dist_from_origin = b608_outer_dia/2
+ Spool_center_bearing_wall_th
+ Mounting_screw_head_d/2
- 1.6;
screw_head_h = 2.5;
translate([0,0,(screw_head_h+1)/2-1])
rotate_extrude()
......
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