Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Created 2018-2017 by D. Pantazis
- // Used thread library created by Ryan A. Colyer.
- // http://www.thingiverse.com/thing:1686322
- // This work is released with CC0 into the public domain.
- // https://creativecommons.org/publicdomain/zero/1.0/
- //
- // v1.0
- //
- $fn=360;
- // use <threads.scad>
- use <./threads_v2p1.scad>
- // use <knurledFinishLib_v2.scad>
- /*
- * in your OpenSCAD script and call either...
- *
- * knurled_cyl( Knurled cylinder height,
- * Knurled cylinder outer diameter,
- * Knurl polyhedron width,
- * Knurl polyhedron height,
- * Knurl polyhedron depth,
- * Cylinder ends smoothed height,
- * Knurled surface smoothing amount );
- *
- * knurled_cyl(k_cyl_hg, k_cyl_od,
- * knurl_wd, knurl_hg, knurl_dp,
- * e_smooth, s_smooth);
- * }
- */
- // Create a 1.5" nut with 8 tpi.
- diameter_in = 1.5;
- tpi = 8;
- diameter = diameter_in * 25.4;
- pitch = 25.4/tpi;
- // part OD
- OD=52;
- H=20;
- module RHole(height, position=[0,0,0], rotation=[0,0,0], tolerance=0.027*25.4) {
- ScrewHole(diameter, height, position=position, rotation=rotation,
- pitch=pitch, tolerance=tolerance)
- children();
- }
- module LHole(height, position=[0,0,0], rotation=[0,0,0], tolerance=0.027*25.4) {
- mirror([1,0,0])ScrewHole(diameter, height, position=position, rotation=rotation,
- pitch=pitch, tolerance=tolerance)
- children();
- }
- module HermiNut() {
- // translate([0,0,0])knurled_cyl(H, OD+pitch, 4, 4, 2, 3,0);
- translate([0,0,0])cylinder($fn=6, h = H, r1 = (OD)/2, r2 = (OD)/2, center = true);
- }
- module ThreadChamferID() {
- cylinder(h = pitch, r1 = diameter/2, r2 = (diameter-2*pitch)/2, center = false);
- }
- module NutChamfer(){
- difference(){
- cylinder(h = pitch, r1 = (OD+0.50*pitch)/2, r2 = (OD+0.5*pitch)/2, center = false);
- cylinder(h = pitch, r1 = (OD-2*pitch)/2, r2 = (OD+0.125*pitch)/2, center = false);
- }}
- difference() {
- HermiNut();
- union(){
- translate([0,0,-H/2])RHole(H);
- translate([0,0,-H/2])LHole(H);
- }
- translate([0,0,-0.01-H/2])ThreadChamferID();
- translate([0,0,0.01+H/2])rotate([0,180,0])ThreadChamferID();
- translate([0,0,-.01-H/2])NutChamfer();
- translate([0,0,0.01+H/2])rotate([0,180,0])NutChamfer();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement