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

  • Dryer Vent Filter Snout

    Dryer Vent Filter Snout

    The first step in adding a filter bag to the dryer vent requires a convenient way to attach it. Because we live in the future, a couple of hours of 3D printing produced something that might work:

    Clothes Dryer Vent Filter Snout - installed
    Clothes Dryer Vent Filter Snout – installed

    It’s made of TPU, which is bendy enough to ease two tabs into the two outermost slots you can see and a corresponding pair of tabs into slots on the wall side.

    The solid model shows the part snapped inside the vent:

    Clothes Dryer Vent Filter Snout - OpenSCAD show
    Clothes Dryer Vent Filter Snout – OpenSCAD show

    The flared bottom takes something like three hours to print (TPU likes slooow extrusion), so I did the top ring first to verify the tab fit:

    Clothes Dryer Vent Filter Snout - OpenSCAD build
    Clothes Dryer Vent Filter Snout – OpenSCAD build

    Both parts come from hull() surfaces wrapped around quartets of thin circles at the proper positions; the difference() of two slightly different hulls produces thin shells.

    A thin layer of JB PlasticBonder urethane adhesive, which bonds TPU like glue, holds the two parts together. I used the tan variant and, while it’s not a perfect match, it definitely looks better than black. Not that it matters in this case.

    Mary will sew up a bag with a drawstring holding it to the snout. If everything survives the performance tests, printing the whole snout in one four-hour job will both make sense and eliminate an uneven joint that’s sure to be a lint-catcher.

    The OpenSCAD source code as a GitHub Gist:

    // Clothes dryer vent filter snout
    // Ed Nisley – KE4ZNU
    // 2025-10-07
    include <BOSL2/std.scad>
    Layout = "Ring"; // [Show,Build,Ring,Taper]
    /* [Hidden] */
    ID = 0;
    OD = 1;
    LENGTH = 2;
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 4*3*2*4;
    $fn=NumSides;
    Gap = 5.0;
    // Centers of corner rounding circles
    InnerWidth = 3.0; // wall inside snout
    InnerRadius = 6.0; // inner corner rounding
    RR = [130.0/2 – InnerRadius,91.0/2 – InnerRadius]; // right rear corner
    RF = [112.0/2 – InnerRadius,-(91.0/2 – InnerRadius)]; // right front corner
    CornerCtrs = [[RR.x,RR.y],[RF.x,RF.y],[-RF.x,RF.y],[-RR.x,RR.y]]; // clockwise from RR
    InsertHeight = 7.0; // overall height inside the snout
    TabOC = [73.0,91.0]; // tabs locking into snout
    TabCtrs = [[TabOC.x/2,TabOC.y/2],[TabOC.x/2,-TabOC.y/2],[-TabOC.x/2,-TabOC.y/2],[-TabOC.x/2,TabOC.y/2]];
    TabRadius = 5.0;
    TabHeight = 3.0;
    TaperHeight = 20.0; // Taper holding filter bag
    TaperRadius = 10.0; // outward to capture bag string
    TaperWidth = 2.0; // wall width
    TaperCtrs = CornerCtrs + [[0,-(TaperRadius – InnerWidth)],[0,0],[0,0],[0,-(TaperRadius – InnerWidth)]];
    //—–
    // Clear inside vent opening as 2D shape
    module Opening() {
    hull()
    for (p = CornerCtrs)
    translate(p)
    circle(r=InnerRadius);
    }
    //—–
    // Insert ring locking into vent snout
    module Ring() {
    difference() {
    union() {
    linear_extrude(h=InsertHeight)
    offset(delta=InnerWidth)
    hull()
    for (p = CornerCtrs)
    translate(p)
    circle(r=InnerRadius);
    up(InsertHeight – TabHeight)
    linear_extrude(h=TabHeight)
    for (p = TabCtrs)
    translate(p)
    circle(r=TabRadius);
    }
    down(Protrusion)
    linear_extrude(h=2*InsertHeight)
    Opening();
    }
    }
    //—–
    // Taper glued to ring
    module Taper() {
    difference() {
    hull() {
    up(TaperHeight)
    linear_extrude(h=Protrusion)
    offset(delta=InnerWidth)
    hull()
    for (p = CornerCtrs)
    translate(p)
    circle(r=InnerRadius);
    linear_extrude(h=Protrusion)
    offset(delta=TaperRadius)
    hull()
    for (p = TaperCtrs)
    translate(p)
    circle(r=TaperRadius);
    }
    hull() {
    up(TaperHeight)
    linear_extrude(h=2*Protrusion)
    offset(delta=InnerWidth)
    hull()
    for (p = CornerCtrs)
    translate(p)
    circle(r=InnerRadius – InnerWidth);
    down(Protrusion)
    linear_extrude(h=2*Protrusion)
    offset(delta=TaperRadius – TaperWidth)
    hull()
    for (p = TaperCtrs)
    translate(p)
    circle(r=TaperRadius);
    }
    }
    }
    //—–
    // Build things
    if (Layout == "Ring")
    Ring();
    if (Layout == "Taper")
    Taper();
    if (Layout == "Show") {
    up(TaperHeight)
    Ring();
    Taper();
    }
    if (Layout == "Build") {
    back(55)
    up(InsertHeight)
    yrot(180)
    Ring();
    fwd(55)
    up(TaperHeight)
    yrot(180)
    Taper();
    }
  • Fitbit Charge 5 Charging Stand

    Fitbit Charge 5 Charging Stand

    My Fitbit Charge 5 has become fussy about its exact position while snapped to its magnetic charger, so I thought elevating it above the usual clutter might improve its disposition:

    FitBit Charge 5 stand - installed
    FitBit Charge 5 stand – installed

    The Charge 5 now snaps firmly onto its charger, the two power pins make solid contact, and it charges just like it used to.

    The solid model comes from Printables, modified to have a neodymium ring magnet screwed into its base:

    Fitbit Charge 5 stand - solid model section
    Fitbit Charge 5 stand – solid model section

    Which looks about like you’d expect;

    FitBit Charge 5 stand - added magnet
    FitBit Charge 5 stand – added magnet

    A layer of cork covers the bottom and it sits neatly atop the USB charger.

    The OpenSCAD source code punches the recesses and produces the bottom outline so LightBurn can cut the cork:

    // FitBit Charge 5 Stand - base magnet
    // Ed Nisley - KE4ZNU
    // 2025-09-05
    
    include <BOSL2/std.scad>
    
    Layout = "Build";       // [Build, Base, Section]
    
    module Stand() {
      difference() {
        left(38/2) back(65/2)
          import("Fitbit Charge 5 Stand.stl",convexity=10);
    
          down(0.05)
            cylinder(d=12.5,h=5.05,$fn=12);
          up(5.2)
            cylinder(d=3.0,h=10.0,$fn=6);
      }
    }
    
    //-----
    // Build things
    
    if (Layout == "Build")
      Stand();
    
    if (Layout == "Base")
      projection(cut = false)
        Stand();
    
    if (Layout == "Section")
      difference() {
        Stand();
        down(0.05) fwd(50)
          cube(100,center=false);
    }
    
    

  • Terracycle Chain Idler: 3D Printed Tire

    Terracycle Chain Idler: 3D Printed Tire

    The Terracycle (now T-cycle, for reasons presumably involving the transfer of money) chain return idlers on our Tour Easy bikes developed hardening of their urethane tires:

    Terracycle Idler tire - printed vs OEM
    Terracycle Idler tire – printed vs OEM

    Urethane shouldn’t crack like that, but after more than fifteen years, stuff wears out.

    The white ring is 95A TPU printed on the Makergear M2, which is definitely more flexy than the original tire, but has the redeeming feature of being both Good Enough and trivially easy to model:

    include <BOSL2/std.scad>
    
    NumSides = 4*3*2*4;
    $fn=NumSides;
    
    Thick = 3.5;
    ID = 46.4;
    OD = ID + 2*Thick;
    Length = 11.2;
    
    tube(Length,id=ID,od=OD,anchor=BOTTOM);
    
    

    It printed with 5 mm brims on both the ID and OD, because TPU has the barest adhesion to the M2’s glass plate + hair glue. There’s a long-unopened box now on the bench with a BuildTak PEI surface (thank you: you know who you are!) that should improve the situation.

    In any event, the tires fit well:

    Terracycle Idler tire - installed
    Terracycle Idler tire – installed

    The layer-to-layer adhesion isn’t as good as I think it should be, so I’ll likely use those tires as testcases for tweaking the new build plate & settings.

  • Smashed Glass: 3D Printed Coaster Base & Metallized Paper Reflectors

    Smashed Glass: 3D Printed Coaster Base & Metallized Paper Reflectors

    The motivation for making Yet Another Coaster was to see if combining a few techniques I’ve recently learned would produce a nicer result.

    Spoiler: Yup, with more to be learned and practiced.

    This is a somewhat nonlinear narrative reminding me of things to do and not do in the future, so don’t treat it as a direct how-to set of instructions.

    Thus far, the best way to highlight fragments of smashed glass has been to put them atop an acrylic mirror:

    Smashed Glass Coaster 2 - fragment detail
    Smashed Glass Coaster 2 – fragment detail

    But a 3 mm acrylic mirror layer makes for a rather thick coaster:

    Smashed Glass Coaster 5 - edge alignment A
    Smashed Glass Coaster 5 – edge alignment A

    The glass fragments sit inside holes in the next two (or three or whatever) acrylic layers, which must have a total thicknesses slightly more than the glass thickness and remain properly aligned while assembling the whole stack:

    Smashed Glass Coaster 5 - alignment pin
    Smashed Glass Coaster 5 – alignment pin

    Bonus: all that cutting generates an absurd amount of acrylic scrap. I eventually put much of it to good use, but not producing it in the first place would be a Good Thing …

    So 3D print the entire base, which requires generating a solid model with recesses for the fragments:

    Printed Coaster Layout - solid model
    Printed Coaster Layout – solid model

    Because there’s no real justification for an optical-quality mirror under smashed glass, use reflective metallized paper in the recesses as reflectors:

    Smashed glass printed coaster - metallized paper assembly
    Smashed glass printed coaster – metallized paper assembly

    The glass is more-or-less greenish-blueish, so I used a strip of green metallized paper that made the glass fragments green. Obviously there’s some room for choice down there.

    Both the base and the reflectors use outlines of the fragments, so I started with a scan of the approximate layout in GIMP:

    Smashed Glass - 4in - group A - tweaked
    Smashed Glass – 4in – group A – tweaked

    I traced the outline of each fragment using the Scissors Select Tool, which lays line segments along the sharpest gradient between clicked points, then switched into Quick Mask mode to adjust & smooth the results:

    Smashed Glass paths - quick mask
    Smashed Glass paths – quick mask

    That’s the result after sketching & saving all the paths as separate SVG files to allow importing them individually into InkScape, OpenSCAD, and LightBurn.

    Which turned out to be suboptimal, as it let me write an off-by-one blooper omitting the last file from the OpenSCAD model:

    fn = "Fragment layout - 4in.svg";
    fp = ["A","B","C","D","E","F"];
    <snippage>
            for (p = fp)
              import(fn,id=str("Fragment ",p));
    
    

    A better choice puts all the paths into a single named group, saved as a single SVG file, then importing that group from the file using its name, along these lines:

    fn = "Fragment layout - 4in.svg";
    fg = ["Fragments"];
    <snippage>
            import(fn,id=fg);
    

    It’s not clear if I can do that directly from GIMP by saving all the paths in a single file, then importing that lump into Inkscape as a group, but it’ll go something like that.

    After getting the fragment paths into Inkscape, add a 0.5 mm offset to each path to clear any non-vertical edges. This will be checked with the template cut using LightBurn as described below.

    Add a 1 mm rim around the outside, with the 4 inch OD matching the usual PSA cork base:

    Fragment layout - 4in
    Fragment layout – 4in

    Now’s the time to nudge / rotate the outlines so they have at least a millimeter of clearance on all sides / ends, because that’s about as thin a section of printed plastic as you want.

    Locating the center of the OD (and, thus, everything inside) at the lower-left corner of the Inkscape page will put them at the OpenSCAD origin. I have set Inkscape to have its origin at the lower left, rather than the default upper left, so your origin may vary.

    Select one of the paths:

    Fragment layout - Inkscape A
    Fragment layout – Inkscape A

    Then set the ID in its Object Properties:

    Fragment layout - Inkscape A - properties
    Fragment layout – Inkscape A – properties

    There is an interaction between the name over in the Layers and Objects window, which apparently comes from the GIMP path name for the imported fragments, and the resulting ID and Label in the Object Properties window. However, renaming an object on the left, as for the Rim and Perimeter circles, does not set their ID or Label on the right. Obviously, I have more learning to do before this goes smoothly.

    With everything laid out and named and saved in an SVG file, the OpenSCAD program is straightforward (and now imports all the fragments):

    include <BOSL2/std.scad>
    
    NumSides = 4*4*3*4;
    
    fn = "Fragment layout - 4in.svg";
    fp = ["A","B","C","D","E","F","G"];
    
    FragmentThick = 5.0;
    
    BaseThick = 1.0;
    RimHeight = 1.5;
    
    union() {
      linear_extrude(h=BaseThick)
        import(fn,id="Perimeter",$fn=NumSides);
      linear_extrude(h=BaseThick + FragmentThick + RimHeight)
        difference() {
          import(fn,id="Perimeter",$fn=NumSides);
          import(fn,id="Rim",$fn=NumSides);
      }
      up(BaseThick - 0.05)
        linear_extrude(h=FragmentThick)
          difference() {
            import(fn,id="Perimeter",$fn=NumSides);
            for (p = fp)
              import(fn,id=str("Fragment ",p));
          }
    }
    
    

    Which squirts out the solid model appearing above.

    Feeding it into PrusaSlicer turns the model into something printable:

    Printed Coaster Layout - slicer
    Printed Coaster Layout – slicer

    And after supper I had one in my hands.

    Before doing that, however, import the same SVG file into LightBurn, as on the left:

    Printed Coaster Layout - LightBurn
    Printed Coaster Layout – LightBurn

    On the right, duplicate it, put the inner Rim on a tool layer, put the rest on a layer set to cut chipboard, and make a template to verify those holes fit around the fragments:

    Smashed glass printed coaster - fragment test fit
    Smashed glass printed coaster – fragment test fit

    Which a few didn’t, explaining why I go to all that trouble. Iterate through GIMP → paths → SVG → Inkscape → LightBurn until it’s all good. Obviously, you do this before you get too far into OpenSCAD, but they all derive from the Inkscape layout, so there’s not a lot of wasted motion.

    The middle LightBurn layout insets the fragment outlines by 0.25 mm to ensure the paper fits easily and puts them on a layer set to cut metallized paper. Those fragments then get duplicated and rearranged within the rectangle on the top to fit a strip of metallized paper from the scrap box. Fire The Laser to cut them out and stick them to the bottom of their corresponding 3D printed recesses with leftover snippets of craft adhesive sheet as shown above.

    I had originally intended to cover the bottom of the entire sheet of metallized paper with an adhesive sheet, but realized the whole affair was going to be submerged in epoxy, so just making sure the paper didn’t float away would suffice.

    Next, mix up some epoxy …

  • Layered Paper: Tapered Blocks

    Layered Paper: Tapered Blocks

    Just to see what it’d look like, I tweaked the SVG generator to reduce the size of the square blocks on successive layers:

            MatrixEls.append(
                svg.Rect(
                    x=as_mm(SheetCenter[X] - MatrixOA[X]/2 + x + ThisLayer*args.inset),
                    y=as_mm(SheetCenter[Y] - MatrixOA[Y]/2 + y + ThisLayer*args.inset),
                    width=as_mm(CellSize[X] - 2*ThisLayer*args.inset),
                    height=as_mm(CellSize[Y] - 2*ThisLayer*args.inset),
                    stroke=s,
                    stroke_width=DefStroke,
                    fill="none",
                )
            )
    
    

    Which looks OK-ish, although not significantly different from the straight-hole versions:

    Layered Paper - tapered blocks
    Layered Paper – tapered blocks

    The taper shows off the layer colors along the sides of the holes:

    Layered Paper - tapered blocks - oblique detail
    Layered Paper – tapered blocks – oblique detail

    Unfortunately, it also makes the corner blemishes painfully obvious:

    Layered Paper - tapered blocks - detail
    Layered Paper – tapered blocks – detail

    My first attempt didn’t skootch the squares over by the size of the inset, thus neatly aligning the upper left corners and giving the bottom right corners twice the inset:

    Layered Paper - tapered blocks - fixed origin - detail
    Layered Paper – tapered blocks – fixed origin – detail

    Which made those gnarly corners painfully obvious.

    I tried stacking the sheets with their bottom side upward, hoping to disguise the edge charring, but to no avail.

    The inset code remains in place with a default of zero:

    parser.add_argument('--inset', type=float, default=0.0)
    
    

    Sometimes the simplest choice is the right one.

  • Taylor Rain Gauge Holder Spike

    Taylor Rain Gauge Holder Spike

    One of Mary’s gardening buddies gave her a Taylor rain gauge he picked up at a closeout sale, but the exceedingly thin aluminum holder obviously wasn’t up to the task:

    Taylor Rain Gauge - OEM metal stake
    Taylor Rain Gauge – OEM metal stake

    I briefly considered 3D printing a better bracket, but came to my senses:

    Taylor Rain Gauge holder - front
    Taylor Rain Gauge holder – front

    A generous fillet of tan JB PlasticBonder holds the thin aluminum clamp ring to the top of the dagger spike:

    Taylor Rain Gauge holder - rear
    Taylor Rain Gauge holder – rear

    The spike is 6.3 mm acrylic and should survive for a while despite the stress-raiser corners. The next iteration will have radiused corners and could last longer:

    Taylor Rain Gauge Holder - LightBurn layout
    Taylor Rain Gauge Holder – LightBurn layout

    The holes will fit 4 mm screws, although the OEM holder isn’t good for more than 3 mm.

    The LightBurn SVG layout 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.

    Took longer to write it up than to do it, even counting mixing the adhesive.

  • Delta Model 1400 Shower Faucet Knob Insert

    Delta Model 1400 Shower Faucet Knob Insert

    Having just replaced the shower faucet cartridge, the knob insert (probably from 1998, according to a label on the shower stall) could also use some improvement:

    Delta 1400 Shower Faucet knob insert - front
    Delta 1400 Shower Faucet knob insert – front

    That oblong blue tint is water. The shattered sections formerly had small fingers holding the insert into the knob:

    Delta 1400 Shower Faucet knob insert - rear
    Delta 1400 Shower Faucet knob insert – rear

    Pry the aluminum disk out of the insert and scan it:

    Delta Shower Faucet - label scan
    Delta Shower Faucet – label scan

    There is no feature in the knob to capture the semicircular notch at the arrow tip, so the disk can rotate as it pleases. I think the arrow should point to the OFF label on the bezel when the water is turned off, but who knows?

    Import it into Inkscape, whereupon it becomes obvious the printed legend is not centered on the disk, lay suitable construction lines & circles, then draw similar shapes:

    Delta Shower Faucet - Inkscape layout
    Delta Shower Faucet – Inkscape layout

    I located the circles at the Inkscape page corner to put their center at the (0,0) origin with the arrow pointed along the X axis to simplify importing it into OpenSCAD.

    The three useful graphic features go on separate layers so OpenSCAD can treat them as separate objects:

    Delta Shower Faucet - Inkscape layers
    Delta Shower Faucet – Inkscape layers

    Build the overall insert shape in OpenSCAD:

    difference() {
      union() {
        tube(Insert[LENGTH],id=Insert[ID],od=Insert[OD],anchor=BOTTOM) position(TOP)
          cyl(FaceThick,d=Insert[OD],anchor=TOP);
      }
      zrot(KnobAngle)
        down(Protrusion)
          cube([2*Insert[OD],IndexWidth,Insert[LENGTH] - FaceThick + Protrusion],anchor=BOTTOM);
    }
    

    The KnobAngle rotation comes from the angle of the features inside the knob that locate the insert, which are aligned horizontally here, but at about 30° when the knob is installed on the faucet :

    Delta 1400 Shower Faucet knob - insert recess features
    Delta 1400 Shower Faucet knob – insert recess features

    The knob shined up surprisingly well for being three decades old; that photo is as-found.

    Import the Inkscape graphics into OpenSCAD and align them an itsy above the top of the insert structure to prevent Z fighting without triggering the slicer into adding another layer:

    up(Insert[LENGTH] - LabelThick + 0.01)
      color("DarkSlateGray")
        linear_extrude(LabelThick)
          import(LabelFN,center=false,layer="Angle Indicator");
    up(Insert[LENGTH] - LabelThick + 0.01)
      color("Red")
        linear_extrude(LabelThick)
          import(LabelFN,center=false,layer="Hot Arc");
    up(Insert[LENGTH] - LabelThick + 0.01)
      color("Blue")
        linear_extrude(LabelThick)
          import(LabelFN,center=false,layer="Cold Arc");
    
    

    Those three shapes must be handled separately, lest OpenSCAD combine them into one thing that PrusaSlicer won’t recognize as distinct shapes. There’s no need to subtract them from the main insert shape, but getting separate colors to come out right is definitely not straightforward.

    Which looks like this, with cheerful colors that need not correspond to the printer filaments:

    Delta Shower Faucet Insert - solid model
    Delta Shower Faucet Insert – solid model

    Normally I have a set of Build transformations to orient the thing for printing, but doing a simple rotation to put the top down on the platform also blows away the separate nature of the graphics.

    I use the EIA color code sequence in PrusaSlicer so I can identify the filament number by eye:

    Shower Fauce Knob Insert - PrusaSlicer preview
    Shower Fauce Knob Insert – PrusaSlicer preview

    A little while later:

    Delta 1400 Shower Faucet knob insert - installed
    Delta 1400 Shower Faucet knob insert – installed

    The insert is a loose fit in the knob, held in place by good double-sided foam tape to the screw securing the knob. I decided to not bother with little fingers, because I loves me some simple removable adhesive action.

    Yeah, you can buy an entire replacement knob for ten bucks, but where’s the fun in that?

    The OpenSCAD source code as a GitHub Gist:

    // Delta shower faucet knob insert
    // Ed Nisley – KE4ZNU
    // 2025-08-09
    include <BOSL2/std.scad>
    /* [Hidden] */
    HoleWindage = 0.2;
    Protrusion = 0.01;
    NumSides = 4*3*4;
    $fn=NumSides;
    ID = 0;
    OD = 1;
    LENGTH = 2;
    LabelFN = "Shower Fauce Knob Insert.svg";
    LabelThick = 0.8;
    KnobAngle = 30; // horizontal to index features
    IndexWidth = 2.5; // slot to fit knob locating features
    Insert = [33.5,37.7,7.0]; // slides into knob
    FaceThick = 1.6;
    //———-
    // Construct it in the obvious orientation
    // Flip it in the slicer to preserve the artwork for separate filaments!
    difference() {
    union() {
    tube(Insert[LENGTH],id=Insert[ID],od=Insert[OD],anchor=BOTTOM) position(TOP)
    cyl(FaceThick,d=Insert[OD],anchor=TOP);
    }
    zrot(KnobAngle)
    down(Protrusion)
    cube([2*Insert[OD],IndexWidth,Insert[LENGTH] – FaceThick + Protrusion],anchor=BOTTOM);
    }
    // Must be handled separately to produce separate objects for different filaments
    up(Insert[LENGTH] – LabelThick + 0.01)
    color("DarkSlateGray")
    linear_extrude(LabelThick)
    import(LabelFN,center=false,layer="Angle Indicator");
    up(Insert[LENGTH] – LabelThick + 0.01)
    color("Red")
    linear_extrude(LabelThick)
    import(LabelFN,center=false,layer="Hot Arc");
    up(Insert[LENGTH] – LabelThick + 0.01)
    color("Blue")
    linear_extrude(LabelThick)
    import(LabelFN,center=false,layer="Cold Arc");