Submitted by
Admin
on
My pal asked me if I can make some details for his JS Mill drill machine.
It should be a cap for calibration unit and an additional support for drill itself.
Since I'm not good in 3d editors at all Openscad sounds good for me where I can do everything with functions.
First one a cap is simple:
- draw big cylinder
- and differ with smaler one.
// Js Mill cap
diameter = 18.15;
radius = diameter / 2;
height = 20;
height_top = 1;
diameter_inner = 16;
radius_inner = diameter_inner / 2;
module main_model() {
cylinder(height,radius,radius,true);
}
difference(){
main_model();
translate([0, 0, height_top]) {
cylinder(height,radius_inner,radius_inner,true);
}
}
The next one a bit complicated.
- Create main cylinder.
- create bottom cylinder
- differ with the internal cylinder
- differ with a block to make it more flexible
// Js MILL drill support
diameter = 18;
radius = diameter / 2;
height = 23;
diameter_inner = 14.6; // 13.8 ?
radius_inner = diameter_inner / 2;
diameter_outer = 21.97;
radius_outer = diameter_outer / 2;
height_bottom = 1.8;
line_size = 0.8;
module main_model() {
cylinder(height,radius,radius,true);
translate([0, 0, - height / 2 + 0.9]) {
cylinder(height_bottom,radius_outer,radius_outer,true);
}
}
difference(){
main_model();
cylinder(height * 2,radius_inner,radius_inner,true);
translate([-radius, 0, 0]) {
cube([height, line_size, height * 2], true);
}
}
I know these lines of code are simple. But changing the sizes without touching anything else is quite good when printed model was tested and sizes should be adjusted. As far as I remember I spent about half an hour for both models. And had a lot of fun from these simple projects!