Last active
October 6, 2021 18:15
-
-
Save ednisley/2616f5dc2fe854c8b2a4c4097c15a733 to your computer and use it in GitHub Desktop.
OpenSCAD source code: Dirt Devil hand-held vacuum tool adapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dirt Devil nozzle adapter | |
// Ed Nisley KE4ZNU 2021-10 | |
// Tool taper shift | |
Finesse = -0.1; // [-0.5:0.1:0.5] | |
// PVC pipe liner | |
PipeOD = 28.5; | |
/* [Hidden] */ | |
//- Extrusion parameters | |
ThreadThick = 0.25; | |
ThreadWidth = 0.40; | |
HoleWindage = 0.2; | |
function IntegerMultiple(Size,Unit) = Unit * ceil(Size / Unit); | |
Protrusion = 0.1; // make holes end cleanly | |
//---------------------- | |
// Dimensions | |
TAPER_MIN = 0; | |
TAPER_MAX = 1; | |
TAPER_LENGTH = 2; | |
Socket = [36.0,37.0,40.0]; | |
LockringDia = 33.5; | |
LockringWidth = 4.5; | |
LockringOffset = 2.5; | |
Tool = [Finesse,Finesse,0] + [30.0,31.1,30.0]; | |
AdapterOAL = Socket[TAPER_LENGTH] + Tool[TAPER_LENGTH]; | |
NumSides = 36; | |
$fn = NumSides; | |
//---------------------- | |
// Useful routines | |
module PolyCyl(Dia,Height,ForceSides=0) { // based on nophead's polyholes | |
Sides = (ForceSides != 0) ? ForceSides : (ceil(Dia) + 2); | |
FixDia = Dia / cos(180/Sides); | |
cylinder(r=(FixDia + HoleWindage)/2,h=Height,$fn=Sides); | |
} | |
//------------------- | |
// Define it! | |
module Adapter() { | |
difference() { | |
union() { | |
difference() { | |
cylinder(d1=Socket[TAPER_MIN],d2=Socket[TAPER_MAX],h=Socket[TAPER_LENGTH]); | |
translate([0,0,LockringOffset]) | |
cylinder(d=2*Socket[TAPER_MAX],h=LockringWidth); | |
} | |
cylinder(d=LockringDia,h=Socket[TAPER_LENGTH]); | |
translate([0,0,LockringOffset + 0.75*LockringWidth]) | |
cylinder(d1=LockringDia,d2=Socket[TAPER_MIN],h=0.25*LockringWidth); | |
translate([0,0,Socket[TAPER_LENGTH]]) | |
cylinder(d1=Tool[TAPER_MAX],d2=Tool[TAPER_MIN],h=Tool[TAPER_LENGTH]); | |
} | |
translate([0,0,-Protrusion]) | |
PolyCyl(PipeOD,AdapterOAL + 2*Protrusion,NumSides); | |
} | |
} | |
//---------------------- | |
// Build it! | |
Adapter(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More details on my blog at https://wp.me/poZKh-arY