3
1
Back

PI=3.14159265*1; KnobMajorRadius = KnobDiameter/2; KnobMinorRadius = KnobDiameter/2 * (1 - TaperPercentage/100); KnobRadius = KnobMinorRadius + (KnobMajorRadius-KnobMinorRadius)/2; Divot=CapType; TaperAngle=asin(KnobHeight / (sqrt(pow(KnobHeight, 2) pow(KnobMajorRadius-KnobMinorRadius,2)))) - 90; DivotRadius = KnobMinorRadius*.4; // Primary knob cylinder for (i=[0 : RingMarkings-1] rotate([0, 0, i * (360/Knurls)] rotate([0, TaperAngle, 0]) rotate([0, 0, i * (360/RingMarkings)] cube([RingWidth*.5, MarkingWidth, 2], center=true); cube([8, 3, KnobHeight], center=true); // Pointer1: Offset hemispherical divot // Divot1: Centered cylynrical divot // Hole for setscrew // Make sure bottom ends at z=0 © 2012 Steve Cooley http://sc-fa.com http://beatseqr.com http://hapticsynapses.com parametric potentiometer knob generator by steve cooley is licensed under a Creative Commons Public Domain, CopperTop, Small, Symbol, CC-PublicDomain, SilkScreen Top, Type 2, Gauge Massstab 10mm CopperTop Type 1 Gauge, Massstab, 10mm, SilkScreenTop, Type 2, Big, Symbol, Attention, Copper Top, Big, Symbol, Creative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EXPRESS OR IMPLIED INCLUDING.

New Pull Request