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=96;
- use <./threads_v2p1.scad>
- translate([-15,-15,-H/2])import("NutShell.stl", convexity=3);
- // Create a thread
- diameter = 18; // OD
- pitch = 2.5; // pitch
- // part OD
- OD=21.5;
- H=15.5;
- module RHole(height, position=[0,0,0], rotation=[0,0,0], tolerance=0.6) {
- ScrewHole(diameter, 1.5*H, position=position, rotation=rotation,
- pitch=pitch, tolerance=tolerance)
- children();
- }
- module LHole(height, position=[0,0,0], rotation=[0,0,0], tolerance=0.6) {
- mirror([1,0,0])ScrewHole(diameter, 1.5*H, position=position, rotation=rotation,
- pitch=pitch, tolerance=tolerance)
- children();
- }
- module HermiNut() {
- difference () {
- translate([0,0,0])cylinder($fn=96, h = H, r1 = (OD)/2, r2 = (OD)/2, center = true);
- # translate([0,0,H])RHole(2*H);
- # translate([0,0,H])LHole(2*H);
- }
- }
- module ThreadChamferID() {
- cylinder(h = pitch, r1 = (diameter+0.75*pitch)/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();
- translate([0,0,-H/2-0.01])ThreadChamferID();
- translate([0,0,H/2+0.01])rotate([0,180,0])ThreadChamferID();
- // translate([0,0,-.001-H/2])NutChamfer();
- translate([0,0,0.001+H/2])rotate([0,180,0])NutChamfer();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement