The Smell of Molten Projects in the Morning

Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.

Category: Software

General-purpose computers doing something specific

  • WS-5000 Anemometer Bird Spike Ring

    WS-5000 Anemometer Bird Spike Ring

    A critter made off with our battered plastic rain gauge, so I set up an Ambient Weather WS-5000 station to tell Mary how much rain her garden was getting. I added the Official Bird Spike Ring around the rain gauge to keep birds off, but robins began perching atop the anemometer while surveying the yard and crapping on the insolation photocell.

    After a few false starts, the anemometer now has its own spikes:

    Weather station with additional spikes
    Weather station with additional spikes

    It’s a snugly fitting TPU ring:

    Weather Station Spikes - build test piece
    Weather Station Spikes – build test piece

    The spikes are Chromel A themocouple wire, because a spool of the stuff didn’t scamper out of the way when I opened the Big Box o’ Specialty Wire. As you can tell from the picture, it’s very stiff (which is good for spikes) and hard to straighten (which is bad for looking cool).

    The shape in the middle is a hole diameter test piece. Next time around, I’ll use thicker 14 AWG copper wire:

    Weather station spikes - test piece
    Weather station spikes – test piece

    The test piece showed I lack good control over the TPU extrusion parameters on the Makergear M2, as holes smaller than about 2 mm vanish, even though the block’s outside dimensions are spot on. This application wasn’t too critical, so I sharpened the wire ends and stabbed them into the middle of the perimeter threads encircling the hole.

    Now we’ll discover how TPU survives weather.

    The OpenSCAD source code as a GitHub Gist:

    // Ambient Weather – Ambient Weather WS-5000 anemometer bird spike ring
    // Ed Nisley – KE4ZNU
    // 2025-06-09
    include <BOSL2/std.scad>
    Layout = "Show"; // [Show,Build,Slice]
    /* [Hidden] */
    HoleWindage = 0.2;
    Protrusion = 0.1;
    ID = 0;
    OD = 1;
    LENGTH = 2;
    SpikeOC = 30.0; // straight-line distance between spikes, OEM = 35
    WallThick = 4.0;
    BandID = 3.5*INCH – 0.5; // = OD of weather station
    BandOD = BandID + 2*WallThick;
    BandHeight = 8.0;
    SpikeOD = 1.7 + HoleWindage; // wire diameter
    SpikeWall = 2.0; // around wires
    SpikeBCD = BandOD;
    MountOD = SpikeOD + 2*SpikeWall;
    NumSpikes = ceil(PI*BandOD/SpikeOC); // need integral number of spikes
    SpikeAngle = 360/NumSpikes;
    NumSides = 3*NumSpikes;
    echo(SpikeAngle=SpikeAngle);
    echo(NumSpikes=NumSpikes);
    //———-
    // Define Shapes
    module Slice() {
    difference() {
    hull() {
    pie_slice(h=BandHeight,d=BandOD,$fn=NumSides,ang=SpikeAngle,spin=-SpikeAngle/2,anchor=BOTTOM);
    right(SpikeBCD/2 – MountOD/2)
    cyl(h=BandHeight,d=MountOD,realign=true,anchor=LEFT+BOTTOM,$fn=2*6);
    }
    down(Protrusion) {
    cyl(h=BandHeight + 2*Protrusion,d=BandID,$fn=NumSides,circum=true,realign=true,anchor=BOTTOM);
    right(SpikeBCD/2)
    cyl(h=BandHeight + 2*Protrusion,d=SpikeOD,$fn=6,circum=true,realign=true,anchor=BOTTOM);
    }
    }
    }
    module SpikeRing() {
    for (i=[0:NumSpikes-1])
    zrot(i*SpikeAngle)
    Slice();
    }
    //———-
    // Build things
    if (Layout == "Slice") {
    Slice();
    }
    if (Layout == "Show") {
    left(SpikeBCD/2)
    Slice();
    SpikeRing();
    }
    if (Layout == "Build") {
    SpikeRing();
    }

  • HQ Sixteen: Nose Ring Lights

    HQ Sixteen: Nose Ring Lights

    We don’t know what the proper term might be for this part of the machine, but it looks sorta like a nose and the lights form most of a ring around it, so I’m going with “Nose Ring Lights”:

    HQ Sixteen Nose Ring lights - front view
    HQ Sixteen Nose Ring lights – front view

    The general idea is to put more light on the quilt than the Chin Light, which looked pretty good until the COB LED strip started flickering as the LEDs failed.

    Handi-Quilter sells a ring light for machines manufactured a decade later than ours, but it uses a built-in USB jack this machine lacks.

    One of two (apparently) unused M4 holes on the left side of the machine frame suggested a mounting point for a 3D printed bracket:

    HQ Sixteen Nose Ring Lights - solid model
    HQ Sixteen Nose Ring Lights – solid model

    The ramp matches the 3° (-ish) mold draft of the machine frame, which I initially ignored by angling the tab, but a tilted frame looked awful; it’s now aligned with local horizontal..

    A few iterations got all the pieces & holes in their proper places:

    HQ Sixteen Nose Ring lights - iterations
    HQ Sixteen Nose Ring lights – iterations

    The smaller (rampless) bracket has three LED strips, but a quick test showed more light would be better:

    HQ Sixteen Nose Ring lights - bottom view
    HQ Sixteen Nose Ring lights – bottom view

    The lack of a transparent-ish cover is obviously unsuitable for a commercial product, but the key design goal is to not interfere with spreading as much light as possible across as much of the quilt as possible. The black JB Weld Plastic Bonder blobs keep the 24 VDC supply out of harm’s way, which is as good as it needs to be for now.

    The bracket has three sides, because the right side of the machine has all the thread guide hardware. Putting anything over there seemed likely to interfere with either thread movement or fingers making adjustments.

    Fortunately, the wider bracket doesn’t stick out too far beyond the machine frame and the doubled LED strips create a much smoother light pool:

    HQ Sixteen Nose Ring lights - left front view
    HQ Sixteen Nose Ring lights – left front view

    Yes, the quilt is focused and the LED frame is blurred.

    The larger light-emitting area reduces the shadow under the left rod (supporting the ruler foot) enough to be unobjectionable.

    A 0.2 mm layer thickness transforms the smooth ramp into stair steps:

    HQ Sixteen Nose Ring Lights - PrusaSlicer
    HQ Sixteen Nose Ring Lights – PrusaSlicer

    They’re inconspicuous after the bracket is installed.

    The Chin Light ran on 12 V and these strips require 24 V, so the OpenSCAD code creates a pair of endcaps for the new supply, which is of course completely different than the old supply. Setting that up must await quilt completion.

    The OpenSCAD source code as a GitHub Gist:

    // HQ Sixteen Nose Ring Lights
    // Ed Nisley – KE4ZNU
    // 2025-05-23
    include <BOSL2/std.scad>
    Layout = "Show"; // [Show,Build,NosePlan,PowerCap]
    // Number of side-by-side LED strips
    Strips = 2;
    /* [Hidden] */
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 3*3*4;
    $fn=NumSides;
    ID = 0;
    OD = 1;
    LENGTH = 2;
    Gap = 5.0;
    WallThick = 5.0; // default thickness for things
    NoseRadius = 6.0; // corner roundoff
    NoseOA = [44.0,36.5]; // overall nose size
    NoseAngles = [87,87]; // front & rear inward angles wrt left side
    NoseCenters = [ // centers of circles defining the nose corners
    [NoseRadius, NoseOA.y/2 – NoseRadius],
    [NoseRadius,-(NoseOA.y/2 – NoseRadius)],
    [NoseOA.x – NoseRadius, NoseOA.y/2 – NoseRadius – (NoseOA.x – 2*NoseRadius)*tan(90 – NoseAngles[0])],
    [NoseOA.x – NoseRadius,-(NoseOA.y/2 – NoseRadius – (NoseOA.x – 2*NoseRadius)*tan(90 – NoseAngles[1]))],
    ];
    LEDMargin = 1.0;
    LEDStrip = [41.5 + LEDMargin,8.0 + LEDMargin,1.8 + 0.2]; // 24 V COB LED strip unit + windage
    LEDBaseOA = [LEDStrip.x + Strips*LEDStrip.y,NoseOA.y + 2*Strips*LEDStrip.y,WallThick]; // LED mount
    DraftAngle = 3.0; // angle of frame wrt horizontal at right end of nose
    DraftWedge = [NoseOA.x,NoseOA.y + 2*LEDStrip.y,NoseOA.x*tan(DraftAngle)];
    HoleOffset = [-10.0,5.5,DraftWedge.z + 10.0]; // from left front corner of nose
    HolePosition = HoleOffset + [0,-NoseOA.y/2,WallThick]; // absolute coordinates from origin
    Screw = [4.0 + HoleWindage,9.0,2.0]; // LENGTH=button head
    Bracket = [WallThick,Screw[OD] + 4.0,HoleOffset.z + Screw[OD/2] + 2.0 + WallThick];
    Supply = [46.0,30.0,21.0]; // 24 VDC power supply
    SupplyScrewOffset = 5.0; // … M4 screw hole from end of supply case
    CapWall = 3.0;
    CapRadius = CapWall – 1.0;
    CapInset = 1.0;
    CapOA = [20.0,Supply.y + 2*CapWall,Supply.z + CapWall]; // x & y to cover existing holes
    //———-
    // Define Shapes
    //—– 2D outline of nose piece just under frame casting
    module NosePlan() {
    hull()
    for (p = NoseCenters)
    translate(p) circle(r=NoseRadius);
    }
    //—– LED mounting plate
    module Mount() {
    union() {
    difference() {
    union() {
    right(LEDBaseOA.x/2 – Strips*LEDStrip.y)
    cuboid(LEDBaseOA,rounding=WallThick/2,except=BOTTOM,anchor=BOTTOM);
    up(LEDBaseOA.z) left(-HoleOffset.x/2)
    yrot(DraftAngle)
    cuboid(DraftWedge,rounding=WallThick/2,edges="Z",anchor=LEFT+BOTTOM);
    }
    down(Protrusion)
    linear_extrude(LEDBaseOA.z + DraftWedge.z + Protrusion)
    NosePlan();
    if (Strips > 1)
    translate([HolePosition.x – Bracket.x/2,HolePosition.y – Bracket.y,-Protrusion])
    cyl(LEDBaseOA.z + 2*Protrusion,d=4.0,anchor=BOTTOM);
    }
    difference() {
    union() {
    translate([HolePosition.x,HolePosition.y,(Bracket.x/2)*sin(DraftAngle)])
    left(Bracket.x)
    cuboid(Bracket,rounding=WallThick/2,edges=LEFT,anchor=BOTTOM+LEFT);
    translate([HolePosition.x – Bracket.x/2,HolePosition.y,0]) // rounding filler
    cuboid([LEDStrip.y,Bracket.y,WallThick],anchor=BOTTOM+LEFT);
    }
    translate(HolePosition)
    xrot(180/6) xcyl(l=NoseOA.x,d=Screw[ID],$fn=6);
    }
    }
    }
    //—– Endcap for power supply
    module EndCap() {
    difference() {
    cuboid(CapOA,rounding=CapRadius,except=BOTTOM,anchor=LEFT+BOTTOM);
    right(CapOA.x – CapWall) down(Protrusion)
    cuboid(Supply + [0,0,Protrusion],anchor=RIGHT+BOTTOM);
    right(CapInset + SupplyScrewOffset)
    zcyl(l=2*CapOA.z,d=Screw[ID],$fn=6,anchor=BOTTOM);
    }
    }
    //———-
    // Build things
    if (Layout == "NosePlan") {
    NosePlan();
    }
    if (Layout == "PowerCap") {
    EndCap();
    }
    if (Layout == "Show") {
    Mount();
    ctr = 80;
    ofs = Supply.x/2 – CapInset;
    left(ctr – ofs)
    EndCap();
    left(ctr + ofs)
    xflip()
    EndCap();
    color("Silver",0.6)
    left (ctr)
    cuboid(Supply,anchor=BOTTOM);
    }
    if (Layout == "Build") {
    Mount();
    back((LEDBaseOA.y + CapOA.y)/2 + Gap) right(Gap) up(CapOA.z) zflip()
    EndCap();
    back((LEDBaseOA.y + CapOA.y)/2 + Gap) left(Gap) zrot(180) up(CapOA.z) zflip()
    EndCap();
    }

  • 3D Printer Filament Spool Washers

    3D Printer Filament Spool Washers

    The auto-rewind spindles for PolyDryer boxes fit a variety of spools, but recessed hubs like this require a pair of washers to center the spindles:

    Filament spool washers - recessed hub
    Filament spool washers – recessed hub

    They’re laser-cut, although you could print them easily enough:

    Filament spool washers - recessed hub - installed
    Filament spool washers – recessed hub – installed

    The size for that particular spool:

    • OD = 80 mm
    • Flange side ID = 51 mm
    • Nut side ID = 43
    • Thickness = ¼ inch, near enough

    Other spools required a 3 mm shim on the flange side to sit centered in the PolyDryer boxes. Those are basically identical what you see above, with a 72 mm OD matching the flange.

    The PETG-CF filament arrived on cardboard spools, which are apparently the new hotness:

    Filament spool washers - printed
    Filament spool washers – printed

    The 56 mm spool ID requires adapters on both sides, with the flange side getting a 4 mm shim:

    Filament spool washers - printed shim - flange side
    Filament spool washers – printed shim – flange side

    That skootches the spool over against the 1 mm shim on the nut side:

    Filament spool washers - printed - nut side
    Filament spool washers – printed – nut side

    It would be possible to modify the auto-rewind spindle diameters to suit, if you were a dab hand with Fusion360, but the variety of hubs around here tells me a set of cheap adapters & shims makes more sense.

    You should not assume anything will fit the spools you have, no matter how much they resemble what you see above.

    The OpenSCAD source code as a GitHub Gist:

    // Polymaker PolyDryer auto-rewind spool washers
    // Ed Nisley – KE4ZNU
    // 2025-05-20
    include <BOSL2/std.scad>
    Layout = "Show"; // [Show,Build]
    /* [Hidden] */
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 3*3*4;
    $fn=NumSides;
    ID = 0;
    OD = 1;
    LENGTH = 2;
    Gap = 5.0; // Build separation
    SpoolWidth = 20.0; // Show separation
    FlangeOD = 72.0; // auto-rewind spindle
    FlangeHubOD = 50.5 + 1.0;
    NutOD = 77.0;
    NutHubOD = 42.0 + 1.0;
    //———-
    // Define Shapes
    module EryOneCF(Side = "Flange") {
    SpoolID = 56.0 – 1.0;
    SpoolSideThick = 3.0;
    if (Side == "Flange")
    tube(4.0,od=FlangeOD,id=FlangeHubOD,anchor=BOTTOM) // flange side
    position(TOP)
    tube(SpoolSideThick,od=SpoolID,id=FlangeHubOD,anchor=BOTTOM);
    if (Side == "Nut")
    tube(1.0,od=NutOD,id=43.0,anchor=BOTTOM) // nut side
    position(TOP)
    tube(SpoolSideThick,od=SpoolID,id=NutHubOD,anchor=BOTTOM);
    }
    //———-
    // Build things
    if (Layout == "Show") {
    left(SpoolWidth/2) yrot(90) EryOneCF("Flange");
    right(SpoolWidth/2) yrot(-90) EryOneCF("Nut");
    }
    if (Layout == "Build") {
    left((FlangeOD + Gap)/2) EryOneCF("Flange");
    right((NutOD + Gap)/2) EryOneCF("Nut");
    }
  • 3D Printed 20×102mm Cartridge

    3D Printed 20×102mm Cartridge

    Having accumulated a box of empty 12 gram CO₂ capsules and having already done Too Many bomb fins:

    20x102mm cartridges
    20x102mm cartridges

    The capsule is obviously the wrong shape, too short, and only 19 mm diameter, but it’s the thought that counts.

    Apply the contour gauge to a genuine slightly battered 20×102mm cartridge:

    20x102mm cartridge tracing
    20x102mm cartridge tracing

    Scan the sketch, import into Inkscape, rotate the image to correct the case taper angle vs. the page, lay lines & curves around the perimeter, align half of it at the page origin to work with OpenSCAD, export as SVG:

    Cartridge - 20x102mm outline - Inkscape layout
    Cartridge – 20x102mm outline – Inkscape layout

    Import into OpenSCAD, let rotate_extrude do the heavy lifting, and remove some pieces:

    Cartridge Case - build view solid model
    Cartridge Case – build view solid model

    The little disk represents a fired primer you’d print separately in a different color and glue into the pocket shown in this cutaway view:

    Cartridge Case - cutaway solid model
    Cartridge Case – cutaway solid model

    The interior void could hold sand for additional heft, as the whole thing is obviously nose-heavy; that’s certainly in the nature of fine tuning. Obviously, we are not dealing with anything that could go bang.

    It builds just like you’d expect:

    20x102mm cartridge - printing
    20x102mm cartridge – printing

    Dab some adhesive on the capsule tip, ditto for the primer, stick them in place, and it’s all good.

    I like the gray PETG-CF version:

    20x102mm cartridges - blue gray PETG-CF
    20x102mm cartridges – blue gray PETG-CF

    Maybe not such a good idea in this day & age. Print responsibly, as they say.

    Update

    Print a sabot to fit a CO₂ capsule into a genuine steel cartridge.

    The solid model:

    Cartridge Case - sabot solid model
    Cartridge Case – sabot solid model

    The OpenSCAD making it happen:

    module Sabot() {
    tube(SabotOA[LENGTH],id=SabotOA[ID],od=SabotOA[OD],anchor=BOTTOM)
        position(BOTTOM)
          tube(SabotOA[LENGTH]/2,id=SabotOA[ID],od=CartridgeOA[ID],anchor=BOTTOM);
    }
    

    The result:

    20x102mm cartridges
    20x102mm cartridges

    The OpenSCAD source code (minus the sabot) and outline as a GitHub Gist:

    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
    // 20x102mm cartridge
    // Ed Nisley – KE4ZNU
    // 2025-05-18
    include <BOSL2/std.scad>
    Layout = "Show"; // [Show,Build]
    Powder = true; // build internal void
    /* [Hidden] */
    ID = 0;
    OD = 1;
    LENGTH = 2;
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 3*3*4;
    $fn = NumSides;
    CartridgeOA = [21.0,29.5,101.4]; // must match SVG pretty closely
    PrimerOA = [2.0,8.0,2.0];
    CapsuleTip = [7.5,7.5,5.0];
    Capsule = [7.5,18.8 + HoleWindage,83];
    SeatingDepth = 25.0;
    Void = [CartridgeOA[ID]- 4.0,CartridgeOA[OD]- 4.0,CartridgeOA[LENGTH] – SeatingDepth – 4*PrimerOA[LENGTH]];
    //———-
    // Define shapes
    module Cartridge() {
    difference() {
    rotate_extrude()
    import("Cartridge – 20x102mm outline.svg",layer="Cartridge Aligned Half");
    up(PrimerOA[LENGTH])
    cyl(PrimerOA[LENGTH] + Protrusion,d=PrimerOA[OD],anchor=TOP);
    up(CartridgeOA[LENGTH] + CapsuleTip[LENGTH])
    cyl(SeatingDepth,d=Capsule[OD],anchor=TOP);
    up(CartridgeOA[LENGTH] – SeatingDepth)
    cyl(Void[LENGTH],d=CapsuleTip[OD],anchor=BOTTOM);
    if (Powder) {
    up(Void[LENGTH]/2)
    cyl(Void[LENGTH],d=CapsuleTip[OD],anchor=BOTTOM);
    up(2*PrimerOA[LENGTH])
    cyl(Void[LENGTH],d=Void[OD],rounding=Void[OD]/2,anchor=BOTTOM);
    down(Protrusion)
    cyl(Void[LENGTH],d=PrimerOA[ID],anchor=BOTTOM);
    }
    }
    }
    module Primer() {
    difference() {
    cyl(PrimerOA[LENGTH] – Protrusion,d=PrimerOA[OD] – HoleWindage,anchor=BOTTOM);
    up(PrimerOA[LENGTH])
    spheroid(d=PrimerOA[ID]);
    }
    }
    //———-
    // Build things
    if (Layout == "Show")
    //render()
    difference() {
    Cartridge();
    cuboid(3*CartridgeOA[LENGTH],anchor=LEFT+BACK);
    }
    if (Layout == "Build") {
    Cartridge();
    right(CartridgeOA[OD])
    Primer();
    }

  • Polymaker PolyDryer Box: PC4 Fitting Adapter

    Polymaker PolyDryer Box: PC4 Fitting Adapter

    Having recently replaced the MMU3’s filament buffer with Polymaker PolyDryer boxes and auto-rewind spindles:

    PolyDryer PC4 Fitting - Prusa MMU3 setup
    PolyDryer PC4 Fitting – Prusa MMU3 setup

    Their rubbery port covers work best with 6 mm OD PTFE tubes, but let the MMU3’s 4 mm tubes slide into / out of the boxes under normal filament extrusion / retraction forces, so I conjured an adapter for PC4-M10 pneumatic fittings:

    PolyDryer PC4 Fitting - installed
    PolyDryer PC4 Fitting – installed

    A pair of M3 screws hold the adapter plate in place, with an EVA foam gasket sealing against the cover:

    PolyDryer PC4 Fitting - interior view
    PolyDryer PC4 Fitting – interior view

    The PC4-M10 fittings let the 4 mm tubing slide right through, so the adapter has a 0.5 mm bottom sheet to block the tube, with a small hole for the filament:

    PC4 Fitting Plates - bottom - solid model
    PC4 Fitting Plates – bottom – solid model

    You could use PC4-M6 fittings to block the tubing, but the 2 mm lumen on the fittings I have barely pass 1.75 mm nominal filament. Comments found elsewhere suggest identical PC4-M6 fittings have smaller lumens that snag the filament as it moves in one direction or the other.

    The two blind holes get heat-staked 4×4mm M3 brass inserts.

    The top has a threaded hole for the fitting:

    PC4 Fitting Plates - top - solid model
    PC4 Fitting Plates – top – solid model

    Despite what the description says, the thread is not an M10 metric straight thread: it is a tapered pipe thread used for gas- and liquid-tight fittings. Considerable measurement & searching suggested a ⅛BSP-28 thread, because:

    • British Standard Pipe threads are used everywhere in the world except the USA
    • Both my metric tap sets have a ⅛BSP-28 tap along with all their hard-metric straight taps

    The thread is painfully close to ⅛NPT-27, which would probably work in a pinch if it was the only tap you had.

    Those PC4-M6 fittings might sport 1/16BSP-28 threads, but you’re on your own.

    Further searching suggests nobody uses the corresponding tapered female pipe threads and everybody goes with a straight internal thread, so I conjured a stumpy threaded rod using the BOSL2 library and removed it from the adapter plate:

          threaded_rod(d=9.7,l=ThreadLength + Protrusion,pitch=INCH/28,internal=true,bevel2=true,anchor=BOTTOM);
    
    

    The 9.7 mm diameter is the ⅛BSP-28 “major diameter”, rather than its “gauge diameter”, simply because it produced a good fit. The beveled top guides the fitting into the hole, but I still managed to cross-thread one.

    The OpenSCAD code also produces SVG files to laser-cut the foam gasket and a drill template:

    PolyDryer PC4 Fitting - drill template
    PolyDryer PC4 Fitting – drill template

    The holes were step-drilled to ⅛ inch (which has a historic relation to the ⅛BSP-28 size, because iron pipe) for a generous fit around the M3 screws.

    That was way more complicated than I expected and I’m really glad to live in the future where this is a 3D printer project, not a metalworking project involving an actual tap in, say, steel.

    The OpenSCAD source code as a GitHub Gist:

    // PC4 Fitting Plates for PolyDryer
    // Ed Nisley – KE4ZNU
    // 2025-05-02
    include <BOSL2/std.scad>
    include <BOSL2/threading.scad>
    Layout = "Plate"; // [Plate,Gasket,DrillGuide]
    /* [Hidden] */
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 3*3*4;
    Gap = 5.0;
    TubeStop = 0.5; // prevent PTFE tube from sliding through
    ThreadLength = 6.0;
    PlateOA = [28.0,22.0,ThreadLength + TubeStop];
    ScrewOC = 20.0;
    $fn=4*3*4;
    //———-
    // Define it
    module Plate() {
    difference() {
    cuboid(PlateOA,anchor=BOTTOM,rounding=4.0,edges="Z"); // plate to fit PolyDryer
    up(TubeStop) // thread for fitting
    threaded_rod(d=9.7,l=ThreadLength + Protrusion,pitch=INCH/28,internal=true,bevel2=true,anchor=BOTTOM);
    down(Protrusion)
    for (i = [-1,1])
    right(i*ScrewOC/2)
    cylinder(4.5 + TubeStop + Protrusion,d=3.7,anchor=BOTTOM); // M3 4×4 inserts
    down(Protrusion)
    cylinder(2*TubeStop,d=2.5,anchor=BOTTOM); // filament clearance
    }
    }
    //———-
    // Build things
    if (Layout == "Plate")
    Plate();
    if (Layout == "Gasket")
    projection(cut=true)
    Plate();
    if (Layout == "DrillGuide")
    difference() {
    projection(cut=true)
    Plate();
    circle(d=10);
    }

  • Anker LC-40 Flashlight Switch Repair

    Anker LC-40 Flashlight Switch Repair

    The switch on the Anker LC-40 flashlight serving as a running light on my Tour Easy became slightly intermittent before I replaced it with a 1 W amber LED, but it was still good enough to become the troubleshooting flashlight in the tray next to the Prusa Mk 4 printer. Eventually, of course, it failed completely and Something Had To Be Done.

    Although I knew an exact replacement switch had to be available from the usual sources, I could not come up with a set of keywords capable of pulling them out of the chaff.

    That was not a problem, because the assortment of SMD switches I used to replace the handlebar control caps on Mary’s Handi-Quilter HQ Sixteen contained push-on / push-off switches that were almost the right size:

    Anker LC-40 Flashlight - switches and caps
    Anker LC-40 Flashlight – switches and caps

    Having recently convinced the MakerGear M2 3D printer to use TPU filament, all I had to do was produce a suitable cap to fit over the new switch in the flashlight’s tail:

    Anker LC-40 Flashlight Button - TPU PrusaSlicer
    Anker LC-40 Flashlight Button – TPU PrusaSlicer

    Which turned into a multi-dimensional search over cap geometry, TPU extrusion speeds & feeds, and various impossible-to-directly-measure sizes:

    Anker LC-40 Flashlight - TPU cap iterations
    Anker LC-40 Flashlight – TPU cap iterations

    The squarish block over on the left is PrusaSlicer’s version of a support structure wrapped around the first cap version; if human lives depended on it, I could surely extract the cap, but it would take a while.

    The remaining debris samples occured while discovering:

    • An extruder temperature of 230 °C, not 250 °C, works well
    • A conical shape of the lip around the open end to eliminate the support structure
    • TPU doesn’t bridge well, so the closed end must be down
    • Length of the central pillar to barely touch the switch stem when released
    • Cap length and wall thickness so the TPU shell can collapse enough to actuate and release the switch stem
    • And so on and so on and scooby dooby dooby

    Eventually I came up with a suitable combination:

    Anker LC-40 Flashlight - switch caps
    Anker LC-40 Flashlight – switch caps

    Because I expected this would be an easy job, I used snap ring pliers to unscrew and rescrew the threaded retaining ring holding the switch PCB in place. Because the pliers didn’t have a stable grip on the ring, the threads eventually became just a bit goobered.

    This was not a problem, because I have a(nother) 3D printer:

    Anker LC-40 Flashlight Retainer - show view
    Anker LC-40 Flashlight Retainer – show view

    The gray thing on the right is a simple pin wrench fitting both the original and the replacement retaining rings, so I can orient the rings properly while unscrewing & rescrewing:

    Anker LC-40 Flashlight - pin wrench in place
    Anker LC-40 Flashlight – pin wrench in place

    The threads have a 0.75 mm pitch and, while it’s possible to print screw threads, even a tedious 0.1 mm layer height would define each turn of the thread with only 7-½ layers.

    This was not a problem, because I have a mini-lathe:

    Anker LC-40 Flashlight - thread cutting
    Anker LC-40 Flashlight – thread cutting

    The yellow & green things on the left of those solid models are the fixture holding a retaining ring for threading and the washer applying pressure to keep the ring in place:

    Anker LC-40 Flashlight - lathe fixture - detail
    Anker LC-40 Flashlight – lathe fixture – detail

    The alert reader will note that washer lacks holes for the alignment pins I added after seeing the washer sit not quite concentric on the fixture. I could call it continuous product improvement, although I doubt I’ll print another one.

    Setting up the lathe involved finding the proper set of change gears, including the vital 42-50 stacked gear I made a while ago to print metric threads on a hard-inch lathe:

    Anker LC-40 Flashlight - lathe change gear train
    Anker LC-40 Flashlight – lathe change gear train

    Although you’re supposed to measure the thread spacing on a skim pass, I find it’s easier to just measure the carriage movement for one spindle rotation:

    Anker LC-40 Flashlight - lathe gear check
    Anker LC-40 Flashlight – lathe gear check

    A few passes produced a fine retaining ring:

    Anker LC-40 Flashlight - pin wrench - detail
    Anker LC-40 Flashlight – OEM vs lathe-cut threads

    Sporting much nicer looking threads than the goobered original:

    Anker LC-40 Flashlight - OEM vs lathe-cut threads
    Anker LC-40 Flashlight – OEM vs lathe-cut threads

    The original switch had a stabilizing ring around the body to prevent it from wobbling under the original rubber cap.

    This was not a problem, because I have a laser cutter:

    Anker LC-40 Flashlight - new switch in stabilizer
    Anker LC-40 Flashlight – new switch in stabilizer

    Those came from a scrap of fluorescent acrylic.

    The wave washer behind the acrylic stabilizer improves the contact between the PCB trace around the rim and the flashlight tailcap, with the current passing through the body to the “light engine” up front. The retaining ring provides enough pressure to compress the wave washer, which is why it’s so easily goobered without a close-fitting pin wrench.

    With everything assembled in reverse order, the flashlight worked pretty much as it did back when it was new:

    Anker LC-40 Flashlight - TPU cap installed
    Anker LC-40 Flashlight – TPU cap installed

    However, after describing this during a recent SquidWrench meeting, I discovered that adding “latching” to my keywords surfaced a bodacious assortment of flashlight switches, so (a few days later) I removed the not-quite-right switch and replaced it with an identical twin of the OEM switch requiring just a little lead forming to fit the PCB.

    Even better, using the 3D printed pin wrench to screw the original retaining ring into the flashlight’s aluminum threads a few times re-formed (unrelated to recent electrolytic capacitor reforming) its goobered threads well enough to fit and work perfectly again.

    So I have:

    • … reassembled the flashlight with more-or-less original components
    • … a repair tool kit ready when another LC-40 fails
    • … re-learned the lesson that any time spent making a fixture or a special tool is not deducted from one’s allotment

    And I loves me a happy ending or two!

    The OpenSCAD source code as a GitHub Gist:

    // Anker LC-40 flashlight switch retainer
    // Ed Nisley – KE4ZNU
    // 2025-05-05
    include <BOSL2/std.scad>
    Layout = "Show"; // [Show,Build,Retainer,Fixture,Washer,Wrench]
    Gap = 5; // [0:10]
    /* [Hidden] */
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 3*3*4;
    ID = 0;
    OD = 1;
    LENGTH = 2;
    $fn=3*3*4;
    Plate = [16.8,20.0,3.0]; // retainer plate, OD allows for lathe threading
    PlateRecessDepth = 1.6;
    PlateInnerThick = Plate[LENGTH] – PlateRecessDepth;
    ClearID = 11.0;
    PinOD = 3.0;
    PinOC = 12.0;
    WrenchLength = 25.0; // handle on wrench
    JawLength = 22.0; // lathe jaw
    ThreaderOverrun = 10.0; // stick-out for threading tool clearance
    ThreadAllowance = 2*1.0; // clearance for thread depth
    //———-
    // Define Shapes
    module Retainer() {
    difference() {
    tube(Plate[LENGTH],od=Plate[OD],id=ClearID,anchor=BOTTOM);
    up(Plate[LENGTH] + Protrusion)
    cyl(PlateRecessDepth + Protrusion,d=Plate[ID],anchor=TOP);
    down(Protrusion)
    hull()
    for (i = [-1,1])
    right(i*PinOC/2) down(Protrusion)
    cyl(Plate[LENGTH] + Protrusion,d=PinOD,anchor=BOTTOM);
    }
    }
    module Fixture() {
    difference() {
    regular_prism(6,h=JawLength,d=1.2*Plate[OD],anchor=BOTTOM) position(TOP) {
    cyl(PlateRecessDepth + ThreaderOverrun,d=Plate[ID],anchor=BOTTOM);
    cyl(Plate[LENGTH] + ThreaderOverrun,d=ClearID,anchor=BOTTOM);
    // hull()
    for (i = [-1,1])
    right(i*PinOC/2)
    cyl(Plate[LENGTH] + ThreaderOverrun + Plate[LENGTH]/2,d=PinOD,anchor=BOTTOM);
    cyl(ThreaderOverrun,d=Plate[OD] – ThreadAllowance,anchor=BOTTOM);
    }
    up(JawLength + ThreaderOverrun + Plate[LENGTH] + Protrusion) // M4 burly insert
    cyl(10.0 + 5,d=5.5,anchor=TOP);
    }
    }
    module Washer() {
    difference() {
    tube(Plate[LENGTH],od=Plate[OD] – ThreadAllowance,id=4.5,anchor=BOTTOM);
    down(Protrusion)
    for (i = [-1,1])
    right(i*PinOC/2)
    cyl(2*Plate[LENGTH],d=PinOD,anchor=BOTTOM);
    }
    }
    module Wrench() {
    difference() {
    union() {
    cyl(WrenchLength,d=Plate[ID],anchor=BOTTOM);
    for (i = [-1,1])
    right(i*PinOC/2)
    cyl(WrenchLength + Plate[LENGTH],d=PinOD,anchor=BOTTOM);
    }
    down(Protrusion)
    cyl(2*WrenchLength,d=ClearID – 2.0,anchor=BOTTOM);
    }
    }
    //———-
    // Build things
    if (Layout == "Retainer")
    Retainer();
    if (Layout == "Fixture")
    Fixture();
    if (Layout == "Washer")
    Washer();
    if (Layout == "Wrench")
    Wrench();
    if (Layout == "Show") {
    color("Gold")
    Fixture();
    up(JawLength + ThreaderOverrun + Gap)
    zflip(z=Plate[LENGTH]/2)
    Retainer();
    color("Green")
    up(JawLength + ThreaderOverrun + Plate[LENGTH] + 2*Gap)
    Washer();
    right(40) {
    zflip(z=Plate[LENGTH]/2)
    Retainer();
    color("Silver")
    up(Plate[LENGTH] + Gap)
    zflip(z=WrenchLength/2)
    Wrench();
    }
    }
    if (Layout == "Build") {
    Fixture();
    right(1.5*Plate[OD]) {
    Retainer();
    fwd(1.5*Plate[OD])
    Retainer();
    }
    left(1.5*Plate[OD])
    Washer();
    fwd(1.5*Plate[OD])
    Wrench();
    }

  • Delta Shower Head Holder Extension

    Delta Shower Head Holder Extension

    The original shower head being too far overhead for Mary’s reach, I installed a Delta ProClean Shower Head which would also be too high. It has a hose, which means I can adjust the height:

    Delta shower head holder extension - installed
    Delta shower head holder extension – installed

    The InterWebs offer several 3D-printable versions of such a thing, but Delta offers many different shower heads, some of which are visually (to my eyes, anyway) indistinguishable from the 75740SN you see here. The model I tried did not fit the holder I have, so I conjured one from the vasty digital deep:

    Delta shower head holder extension - solid model
    Delta shower head holder extension – solid model

    It builds standing on that tidy cutoff:

    Delta shower head holder extension - PrusaSlicer warning
    Delta shower head holder extension – PrusaSlicer warning

    Despite PrusaSlicer’s kvetching about the “collapsing overhang” inside the socket, it came out fine.

    The shower head is still slightly too high for her, but now I can print another one with a longer offset and a slightly smaller plug to fit deeper in the OEM socket.

    Worst case, there’s a wall-mounted holder to put the shower head at shoulder height.

    The OpenSCAD source code as a GitHub Gist:

    // Delta shower head holder extension
    // Ed Nisley – KE4ZNU
    // 2025-05-02
    include <BOSL2/std.scad>
    Layout = "Show"; // [Show,Build,Plug,Socket,Connector]
    MountAngle = 30; // between OEM and new holder
    MountOffset = 20.0;
    /* [Hidden] */
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 3*3*4;
    ID = 0;
    OD = 1;
    LENGTH = 2;
    Insert = [21.0,24.5,35.0]; // hose connector taper
    PlugSize = Insert + [-0.3,-0.3,0]; // … for better fit in OEM holder
    Slot = [Insert[OD],14.6,3*Insert[LENGTH]]; // slot on OEM holder, arbitrary length
    WallThick = 8.0; // holder wall thickness
    Radius = 3.0; // shapely rounding
    $fn=NumSides;
    //———-
    // Define Shapes
    module Plug() {
    cyl(l=Insert[LENGTH],d1=PlugSize[ID],d2=PlugSize[OD],anchor=BOTTOM);
    }
    module Socket() {
    difference() {
    tube(l=Insert[LENGTH],id1=Insert[ID],id2=Insert[OD],wall=WallThick,anchor=BOTTOM);
    cuboid(Slot + [0,1.0,0],anchor=LEFT+CENTER);
    right(Insert[OD]/2)
    cube([Insert[OD],Insert[OD] + 2*WallThick,3*Insert[LENGTH]],anchor=LEFT+CENTER);
    }
    }
    module Connector() {
    difference() {
    left(MountOffset)
    cuboid([MountOffset + Insert[LENGTH]*sin(MountAngle),Slot.y,Insert[LENGTH]*cos(MountAngle)],
    anchor=LEFT+BOTTOM);
    yrot(MountAngle) right(Insert[ID]/2 + WallThick)
    cyl(l=Insert[LENGTH],d1=Insert[ID] + 2*WallThick,d2=Insert[OD] + 2*WallThick,anchor=BOTTOM);
    }
    }
    module Adapter() {
    union() {
    left(MountOffset)
    Plug();
    yrot(MountAngle) right((Insert[ID] + 2*WallThick)/2)
    Socket();
    Connector();
    }
    }
    //———-
    // Build things
    if (Layout == "Plug")
    Plug();
    if (Layout == "Socket")
    Socket();
    if (Layout == "Connector")
    Connector();
    if (Layout == "Show")
    Adapter();
    if (Layout == "Build")
    up(Insert[ID]/2 + 1*WallThick + Insert[OD]/2)
    yrot(90-MountAngle)
    Adapter();