181 lines
6.7 KiB
OpenSCAD
181 lines
6.7 KiB
OpenSCAD
|
// This file is part of Cyclone PCB Factory: an open-source 3D printable CNC machine for PCB manufacture
|
||
|
// http://reprap.org/wiki/Cyclone_PCB_Factory
|
||
|
// Original author: Carlosgs (http://carlosgs.es)
|
||
|
// License: CC BY-SA 4.0 (Attribution-ShareAlike 4.0 International, http://creativecommons.org/licenses/by-sa/4.0/)
|
||
|
// Designed with http://www.openscad.org/
|
||
|
|
||
|
// Increase the resolution of default shapes
|
||
|
$fa = 5; // Minimum angle for fragments [degrees]
|
||
|
$fs = 0.5; // Minimum fragment size [mm]
|
||
|
|
||
|
|
||
|
dremel_accessory_diam = 20;
|
||
|
dremel_accesory_height = 15-2;
|
||
|
|
||
|
screws_vertical_offset = 1;
|
||
|
|
||
|
aspirator_thickness_thick = 2;
|
||
|
aspirator_thickness_slim = 1;
|
||
|
aspirator_thickness_screw = 4;
|
||
|
|
||
|
aspirator_tube_diam = 16+0.5;
|
||
|
aspirator_tube_holder_height = 15;
|
||
|
|
||
|
aspirator_hole_height = 15-5;
|
||
|
aspirator_hole_diam = 35+15;
|
||
|
aspirator_hole_Yscale = 0.5;
|
||
|
|
||
|
edge_height = 2;
|
||
|
|
||
|
dremel_wrench_diam = 0;
|
||
|
dremel_wrench_hole_offset = 8;
|
||
|
|
||
|
dremel_accessory_screw_separation = dremel_accessory_diam+aspirator_thickness_screw+0.8;
|
||
|
dremel_accessory_angle = 0;
|
||
|
|
||
|
dremel_accessory_tube_offset = dremel_accessory_diam-aspirator_tube_diam;
|
||
|
aspirator_tube_separation = dremel_accessory_diam+aspirator_tube_diam+aspirator_thickness_screw*2+1.5;
|
||
|
dremel_accessory_hole_offset = 0;//dremel_accessory_diam-aspirator_hole_diam;
|
||
|
|
||
|
// Useful MCAD functions reference
|
||
|
|
||
|
//use <MCAD/motors.scad>
|
||
|
//stepper_motor_mount(nema_standard=17, slide_distance=10, $fn=40, mochup=true);
|
||
|
|
||
|
//use <MCAD/boxes.scad>
|
||
|
//roundedBox([10,20,30], radius=2, sidesonly=false, $fn=60);
|
||
|
|
||
|
//include <MCAD/stepper.scad>
|
||
|
//motor(Nema17, size=NemaMedium, dualAxis=false);
|
||
|
|
||
|
|
||
|
//use <MCAD/teardrop.scad>
|
||
|
//teardrop(radius=10, length=20, angle=90);
|
||
|
|
||
|
//use <MCAD/nuts_and_bolts.scad>
|
||
|
//nutHole(size=3, tolerance=0.5, proj=-1);
|
||
|
//boltHole(size=3, length=10, tolerance=0.5, proj=-1, $fn=40);
|
||
|
|
||
|
use <MCAD/teardrop.scad>
|
||
|
use <MCAD/nuts_and_bolts.scad>
|
||
|
|
||
|
module aspirator_accessory_2Dshape() {
|
||
|
hull() {
|
||
|
translate([aspirator_tube_separation/2,-dremel_accessory_tube_offset/2])
|
||
|
circle(r=aspirator_thickness_thick+aspirator_tube_diam/2, h=dremel_accesory_height);
|
||
|
circle(r=aspirator_thickness_thick+dremel_accessory_diam/2, h=dremel_accesory_height);
|
||
|
translate([-aspirator_tube_separation/2,-dremel_accessory_tube_offset/2])
|
||
|
circle(r=aspirator_thickness_thick+aspirator_tube_diam/2, h=dremel_accesory_height);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module aspirator_accessory_filledshape() {
|
||
|
linear_extrude(height=dremel_accesory_height,center=true)
|
||
|
aspirator_accessory_2Dshape();
|
||
|
hull() {
|
||
|
translate([0,0,-dremel_accesory_height/2])
|
||
|
linear_extrude(height=0.001,center=true)
|
||
|
aspirator_accessory_2Dshape();
|
||
|
translate([0,dremel_accessory_hole_offset/2,-dremel_accesory_height/2-aspirator_hole_height])
|
||
|
linear_extrude(height=0.001,center=true)
|
||
|
scale([1,aspirator_hole_Yscale,1]) circle(r=aspirator_thickness_slim+aspirator_hole_diam/2);
|
||
|
}
|
||
|
hull() {
|
||
|
translate([0,dremel_accessory_hole_offset/2,-dremel_accesory_height/2-aspirator_hole_height])
|
||
|
linear_extrude(height=0.001,center=true)
|
||
|
scale([1,aspirator_hole_Yscale,1]) circle(r=aspirator_thickness_slim+aspirator_hole_diam/2);
|
||
|
translate([0,dremel_accessory_hole_offset/2,-dremel_accesory_height/2-aspirator_hole_height-edge_height])
|
||
|
linear_extrude(height=0.001,center=true)
|
||
|
scale([1,aspirator_hole_Yscale,1]) circle(r=aspirator_thickness_slim+aspirator_hole_diam/2+edge_height/2);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module aspirator_accessory_2Dholes() {
|
||
|
translate([aspirator_tube_separation/2,-dremel_accessory_tube_offset/2])
|
||
|
circle(r=aspirator_tube_diam/2);
|
||
|
circle(r=dremel_accessory_diam/2);
|
||
|
translate([-aspirator_tube_separation/2,-dremel_accessory_tube_offset/2])
|
||
|
circle(r=aspirator_tube_diam/2);
|
||
|
}
|
||
|
|
||
|
module screwHole() {
|
||
|
translate([0,-7,0])
|
||
|
rotate([90,0,0])
|
||
|
hull() {
|
||
|
translate([0,0,20])
|
||
|
nutHole(size=3, tolerance=0.5, proj=-1);
|
||
|
nutHole(size=3, tolerance=0.5, proj=-1);
|
||
|
}
|
||
|
translate([0,aspirator_tube_diam/2,0])
|
||
|
rotate([90,0,0])
|
||
|
boltHole(size=3, length=30, tolerance=0.4, proj=-1);
|
||
|
}
|
||
|
|
||
|
module aspirator_accessory_holes() {
|
||
|
linear_extrude(height=dremel_accesory_height+0.01,center=true)
|
||
|
aspirator_accessory_2Dholes();
|
||
|
hull() {
|
||
|
translate([0,0,-dremel_accesory_height/2+0.01])
|
||
|
linear_extrude(height=0.001,center=true)
|
||
|
aspirator_accessory_2Dholes();
|
||
|
translate([0,dremel_accessory_hole_offset/2,-dremel_accesory_height/2-aspirator_hole_height+1-0.01])
|
||
|
linear_extrude(height=0.001,center=true)
|
||
|
scale([1,aspirator_hole_Yscale,1]) circle(r=aspirator_hole_diam/2);
|
||
|
}
|
||
|
translate([0,dremel_accessory_hole_offset/2,-dremel_accesory_height/2-aspirator_hole_height-1])
|
||
|
linear_extrude(height=2+edge_height+0.1,center=true)
|
||
|
scale([1,aspirator_hole_Yscale,1]) circle(r=aspirator_hole_diam/2);
|
||
|
// Hole for the tightener
|
||
|
translate([0,-dremel_accessory_tube_offset/4,0])
|
||
|
cube([aspirator_tube_separation,2.5,dremel_accesory_height+0.01],center=true);
|
||
|
// Frontal hole for the wrench
|
||
|
translate([0,(dremel_accessory_diam+aspirator_thickness_thick)/2,-(dremel_accesory_height+aspirator_hole_height)/2-dremel_wrench_hole_offset])
|
||
|
cube([dremel_wrench_diam,10,aspirator_hole_height+0.01],center=true);
|
||
|
// Holes for the nut/screws
|
||
|
#translate([dremel_accessory_screw_separation/2,0,screws_vertical_offset])
|
||
|
rotate([0,0,-dremel_accessory_angle])
|
||
|
screwHole();
|
||
|
#translate([-dremel_accessory_screw_separation/2,0,screws_vertical_offset])
|
||
|
rotate([0,0,dremel_accessory_angle])
|
||
|
screwHole();
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
module aspirator_accessory_extender() {
|
||
|
extender_length = 15;
|
||
|
extender_thickness = 2;
|
||
|
extender_bottom_reduction = 5;
|
||
|
difference() {
|
||
|
translate([0,dremel_accessory_hole_offset/2,-dremel_accesory_height/2-aspirator_hole_height+edge_height-2])
|
||
|
hull() {
|
||
|
scale([1,aspirator_hole_Yscale,1]) cylinder(r=aspirator_hole_diam/2+2+extender_thickness, h=0.01);
|
||
|
translate([0,0,-extender_length])
|
||
|
scale([1,aspirator_hole_Yscale+0.05,1]) cylinder(r=aspirator_hole_diam/2+2+extender_thickness-extender_bottom_reduction, h=0.01);
|
||
|
}
|
||
|
translate([0,dremel_accessory_hole_offset/2,-dremel_accesory_height/2-aspirator_hole_height+edge_height-4])
|
||
|
hull() {
|
||
|
scale([1,aspirator_hole_Yscale,1]) cylinder(r=aspirator_hole_diam/2+2, h=0.01);
|
||
|
translate([0,0,-extender_length+1])
|
||
|
scale([1,aspirator_hole_Yscale,1]) cylinder(r=aspirator_hole_diam/2+2-extender_bottom_reduction, h=0.01);
|
||
|
}
|
||
|
translate([0,0,-0.01])
|
||
|
aspirator_accessory_filledshape();
|
||
|
translate([0,dremel_accessory_hole_offset/2-50,-dremel_accesory_height/2-aspirator_hole_height+edge_height])
|
||
|
rotate([180,0,0]) cylinder(r=100/2, h=4.5);
|
||
|
translate([0,-aspirator_hole_Yscale*aspirator_hole_diam/2,-dremel_accesory_height/2-aspirator_hole_height+edge_height])
|
||
|
rotate([180,0,0]) cylinder(r=30/2-2, h=extender_length+5);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Render the dremel part
|
||
|
difference() {
|
||
|
aspirator_accessory_filledshape();
|
||
|
aspirator_accessory_holes();
|
||
|
}
|
||
|
|
||
|
// Render the detachable extender
|
||
|
!aspirator_accessory_extender();
|
||
|
|