Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Patch to fix bearing diameter #61

Open
wants to merge 1 commit into
base: MK3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions Printed-Parts/scad/bearing.scad
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ module horizontal_bearing_base(bearings=1){
}

module horizontal_bearing_holes(bearings=1){
cutter_lenght = 10+bearings*25;
one_holder_lenght = 8+25;
holder_lenght = 8+bearings*25;
cutter_length = 10+bearings*25;
one_holder_length = 8+25;
holder_length = 8+bearings*25;

// Main bearing cut
difference(){
translate(v=[0,0,12]) rotate(a=[90,0,0]) translate(v=[0,0,-cutter_lenght/2]) cylinder(h = cutter_lenght, r=(bearing_diameter/2)+0.2, $fn=50);
translate(v=[0,0,12]) rotate(a=[90,0,0]) translate(v=[0,0,-cutter_length/2]) cylinder(h = cutter_length, r=(bearing_diameter/2)+0.2, $fn=50);
// Bearing retainers
translate(v=[0,1-holder_lenght/2,3]) cube(size = [24,6,8], center = true);
translate(v=[0,-1+holder_lenght/2,3]) cube(size = [24,6,8], center = true);
translate(v=[0,1-holder_length/2,3]) cube(size = [24,6,8], center = true);
translate(v=[0,-1+holder_length/2,3]) cube(size = [24,6,8], center = true);
}

// Ziptie cutouts
ziptie_cut_ofset = 0;
for ( i = [0 : bearings-1] ){
// For easier positioning I move them by half of one
// bearing holder then add each bearign lenght and then center again
translate(v=[0,-holder_lenght/2,0]) translate(v=[0,one_holder_lenght/2+i*25,0]) difference(){
// bearing holder then add each bearign length and then center again
translate(v=[0,-holder_length/2,0]) translate(v=[0,one_holder_length/2+i*25,0]) difference(){
union(){
translate(v=[0,2-8.5,12]) rotate(a=[90,0,0]) translate(v=[0,0,0]) cylinder(h = 4, r=11.5, $fn=50);
translate(v=[0,2+8.5,12]) rotate(a=[90,0,0]) translate(v=[0,0,0]) cylinder(h = 4, r=11.5, $fn=50);
Expand All @@ -43,16 +43,16 @@ module horizontal_bearing_holes(bearings=1){
}

module horizontal_bearing_holes_nozip(bearings=1){
cutter_lenght = 10+bearings*25;
one_holder_lenght = 8+25;
holder_lenght = 8+bearings*25;
cutter_length = 10+bearings*25;
one_holder_length = 8+25;
holder_length = 8+bearings*25;

// Main bearing cut
difference(){
translate(v=[0,0,12]) rotate(a=[90,0,0]) translate(v=[0,0,-cutter_lenght/2]) cylinder(h = cutter_lenght, r=(bearing_diameter/2)+0.2, $fn=50);
translate(v=[0,0,12]) rotate(a=[90,0,0]) translate(v=[0,0,-cutter_length/2]) cylinder(h = cutter_length, r=(bearing_diameter/2)+0.2, $fn=50);
// Bearing retainers
translate(v=[0,1-holder_lenght/2,3]) cube(size = [24,6,8], center = true);
translate(v=[0,-1+holder_lenght/2,3]) cube(size = [24,6,8], center = true);
translate(v=[0,1-holder_length/2,3]) cube(size = [24,6,8], center = true);
translate(v=[0,-1+holder_length/2,3]) cube(size = [24,6,8], center = true);
}

}
Expand All @@ -67,7 +67,7 @@ module vertical_bearing_base(){
}

module vertical_bearing_holes(){
translate(v=[0,0,-1]) poly_cylinder(h = 62, r=(14.80/2));
translate(v=[0,0,-1]) poly_cylinder(h = 62, r=((bearing_diameter-0.15)/2));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the important part of this change

translate(v=[0,0,-0.1]) cylinder(r1=(bearing_diameter/2)+0.7,r2=(bearing_diameter/2), h=0.5);
rotate(a=[0,0,-40]) translate(v=[bearing_diameter/2-2.9,-0.5,0.5]) cube(size = [thinwall*2,1,62]);

Expand All @@ -80,4 +80,4 @@ vertical_bearing_holes();
//horizontal_bearing_test();
//horizontal_bearing_base(1);
//horizontal_bearing_holes(1);
//horizontal_bearing_holes_nozip(1);
//horizontal_bearing_holes_nozip(1);