33 lines
1.2 KiB
OpenSCAD
33 lines
1.2 KiB
OpenSCAD
// This file is part of Cyclone PCB Factory: a 3D printable CNC machine for PCB manufacture
|
|
// http://reprap.org/wiki/Cyclone_PCB_Factory
|
|
// Author: Carlosgs (http://carlosgs.es)
|
|
// License: Attribution - Share Alike - Creative Commons (http://creativecommons.org/licenses/by-sa/3.0/)
|
|
|
|
include <MCAD/nuts_and_bolts.scad>
|
|
|
|
module hole_for_screw(size=3,length=20,nutDepth=5,nutAddedLen=0,captiveLen=0,tolerance=0.5) {
|
|
*translate([0,-length/2+nutDepth,0])
|
|
rotate([90,0,0])
|
|
hull() {
|
|
translate([0,0,nutDepth])
|
|
scale([1,1,0.01])
|
|
nutHole(size=size, tolerance=tolerance, proj=-1);
|
|
scale([1,1,0.01]) nutHole(size=size, tolerance=tolerance, proj=-1);
|
|
}
|
|
radius = METRIC_NUT_AC_WIDTHS[size]/2+tolerance;
|
|
height = METRIC_NUT_THICKNESS[size]+tolerance;
|
|
translate([0,-length/2+height+nutAddedLen+nutDepth-0.01,0])
|
|
scale([1,(height+nutAddedLen)/height,1])
|
|
rotate([90,0,0])
|
|
hull() {
|
|
nutHole(size=size, tolerance=tolerance, proj=-1);
|
|
translate([0,captiveLen,0])
|
|
nutHole(size=size, tolerance=tolerance, proj=-1);
|
|
}
|
|
translate([0,length/2-2.6,0])
|
|
rotate([90,0,0])
|
|
render() boltHole(size=size, length=length-2.6+0.5, tolerance=tolerance-0.1, proj=-1, $fn=40);
|
|
}
|
|
|
|
hole_for_screw(size=3,length=20,nutDepth=0,nutAddedLen=0,captiveLen=10);
|