cyclone-pcb-factory/Hardware/Development/smooth_rod_fix/smooth_rod_fix.scad

44 lines
1.3 KiB
OpenSCAD

// Cyclone PCB Factory: a 3D printable CNC machine for PCB manufacture
// Created by Carlosgs (http://carlosgs.es)
// License: Attribution - Share Alike - Creative Commons (http://creativecommons.org/licenses/by-sa/3.0/)
use <../libs/obiscad/bcube.scad>
use <../libs/obiscad/bevel.scad>
use <../libs/build_plate.scad>
M8_rod_diam = 8.2;
smooth_rod_margin = 1;
smooth_rod_screw_sep = 8;
smooth_rod_screw_diam = 3+1;
smooth_rod_screw_len = 7;
part_x = smooth_rod_screw_sep*3;
part_y = 8;
part_z = 8;
//for display only, doesn't contribute to final object
translate([frame_width/2,frame_height/2,0]) build_plate(3,110,140);
translate([0,0,part_z/2]) difference() {
// --------- Main frame --------- //
bcube([part_x,part_y,part_z],center=true,cr=2,cres=10);
// --------- Smooth Y rods --------- //
rotate([90,0,0]) translate([0,part_z/2+smooth_rod_margin/2,0]) {
cylinder(r=M8_rod_diam/2,h=part_y*2,center=true,$fn=40);
// Screws
rotate([90,0,0]) translate([0,0,0]) {
translate([-smooth_rod_screw_sep,0,0])
cylinder(r=smooth_rod_screw_diam/2,h=10*part_z,center=true,$fn=30);
translate([smooth_rod_screw_sep,0,0])
cylinder(r=smooth_rod_screw_diam/2,h=10*part_z,center=true,$fn=30);
}
}
} // End of difference() command