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

  • Shopvac Right-Angle Coupler

    Shopvac Right-Angle Coupler

    Shortly after we moved here I set up the grain mill and, because it now lived in the Basement Shop, fitted a moving box around it with a port for a Great Shopvac. Of course, the hose fitting needed a sleeve to match it with the identical fitting on the box, which I solved with a wrap of duct tape and moved on to more pressing affairs.

    Now that I can 3D print TPU with some consistency, a simple straight sleeve emerged from the vasty digital deep:

    Shopvac hose - straight coupler
    Shopvac hose – straight coupler

    Which had the same disadvantage as the duct tape: the hose really wants to hang downward, so it pulls the box at an angle. It did verify the measurements, though, and wasn’t a dead loss.

    Cargo-culting an example from the BOSL2 path_sweep() doc produced an elbow:

    Shopvac tube coupler - installed
    Shopvac tube coupler – installed

    Which is slightly thicker around the bend than in the sleeves over the fittings:

    Tube Coupler - sectioned - solid model
    Tube Coupler – sectioned – solid model

    Building it in two pieces avoided any need for support material, which basically doesn’t work for TPU:

    Tube Coupler - slicer preview
    Tube Coupler – slicer preview

    Grabbing one half in the bench vise to make the joint horizontal let me run a bead of JB PlasticBonder urethane adhesive around the edge and plunk the other half on top with some attention to matching the facets for good alignment:

    Shopvac tube coupler - glue curing
    Shopvac tube coupler – glue curing

    Let it cure and it’s All Good™.

    TPU tends to blob while the Z axis raises the extruder, producing the random zits over the elbow’s exterior. I set PrusaSlicer to make scarf joints and we’ll see what happens on the next supposedly smooth TPU thing.

    The OpenSCAD source code as a GitHub Gist:

    // Vacuum Hose / Tube Coupler
    // Ed Nisley – KE4ZNU
    // 2026-11-21
    include <BOSL2/std.scad>
    Layout = "Show"; // [Show,Build]
    /* [Hidden] */
    Full = false;
    HoseOD = 58.0;
    WallThick = 2.0;
    InsertLength = 25.0;
    Gap = 10.0;
    $fn=32;
    Shell = difference(circle(d=HoseOD+2*WallThick),circle(d=HoseOD–WallThick));
    module Joint()
    tube(InsertLength,id=HoseOD,wall=WallThick,ichamfer1=-WallThick/2,anchor=BOTTOM);
    module Coupler(Full) {
    union() {
    path_sweep(Shell,arc(r=HoseOD/2 + WallThick,angle=Full ? 90 : 45));
    right(HoseOD/2 + WallThick)
    xrot(90)
    Joint();
    if (Full)
    back(HoseOD/2 + WallThick)
    yrot(–90)
    Joint();
    }
    }
    if (Layout == "Show") {
    difference() {
    Coupler(true);
    right(HoseOD/2 + WallThick)
    cuboid(2*HoseOD,anchor=LEFT);
    }
    }
    if (Layout == "Build") {
    right(Gap/2)
    up(InsertLength)
    xrot(90)
    Coupler(false);
    left(Gap/2)
    zrot(180)
    up(InsertLength)
    xrot(90)
    Coupler(false);
    }

  • Dinosaur Variations

    Dinosaur Variations

    Fixing the Tiny T-Rex’s legs produced an aligned set of shapes in LightBurn that, after a bank shot off Inkscape to name them, became a solid model in OpenSCAD:

    Tiny T-Rex - 100mm - layered solid model
    Tiny T-Rex – 100mm – layered solid model

    Those SVG shapes ooze into 3D with a few linear_extrude() operations:

    include <BOSL2/std.scad>
    
    EyeFill = true;
    
    /* [Hidden] */
    
    Reposition = [0,-424];      // move SVG shapes closer to the origin
    
    BodyThick = 2.0;
    ArmorThick = 1.0;
    
    
    translate(Reposition) {
      linear_extrude(ArmorThick)
        difference() {
          import("Tiny T-Rex 100 mm layers.svg",center=false,id="Armor");
          import("Tiny T-Rex 100 mm layers.svg",center=false,id="Eye");
        }
        up(ArmorThick + BodyThick)
          linear_extrude(ArmorThick)
           difference() {
              import("Tiny T-Rex 100 mm layers.svg",center=false,id="Armor");
              import("Tiny T-Rex 100 mm layers.svg",center=false,id="Eye");
            }
    }
    
    translate(Reposition)
        up(ArmorThick)
          color("Green")
            linear_extrude(BodyThick)
              import("Tiny T-Rex 100 mm layers.svg",center=false,id="Body");
    
    if (EyeFill) {
      translate(Reposition) {
        linear_extrude(ArmorThick)
            import("Tiny T-Rex 100 mm layers.svg",center=false,id="Eye");
        up(ArmorThick + BodyThick)
          color("Red")
            linear_extrude(ArmorThick)
                import("Tiny T-Rex 100 mm layers.svg",center=false,id="Eye");
      }
    }
    
    

    The Reposition constant holds the offset needed to haul the SVG shapes close to the OpenSCAD origin.

    The obviously redundant translate() operations maintain the separate shapes as separate objects, so that PrusaSlicer can apply separate materials / colors:

    Tiny T-Rex PETG layered - top
    Tiny T-Rex PETG layered – top

    The printing plate produces a granular effect on the bottom surface:

    Tiny T-Rex PETG layered - bottom
    Tiny T-Rex PETG layered – bottom

    The color scheme makes PETG look dangerously edible, doesn’t it?

    Conversely, you can tell PrusaSlicer it’s all one shape and print it in bendy TPU:

    Tiny T-Rex TPU layered - top
    Tiny T-Rex TPU layered – top

    That’s on the M2 with the 0.35 mm nozzle. The top looks a bit under-stuffed, although the bottom came out fine:

    Tiny T-Rex TPU layered - bottom
    Tiny T-Rex TPU layered – bottom

    TPU doesn’t bridge well, filling the bottom eye filled with threads from above. I doubt TPU “support material” would be removable without a death-match knife fight.

    Making the printed ones much thicker would let them stand up with the laser-cut version:

    Tiny T-Rex layered
    Tiny T-Rex layered

    They make a cute little herd …

  • Makergear M2: Octopi and Camera Mounts

    Makergear M2: Octopi and Camera Mounts

    So as not to bury the lede, the problem with the M2 turned out to be a failed USB port on the Raspberry Pi running Octopi: plugging the M2’s USB cable into a different USB port made the problem Go Away™.

    While I was in the midst of figuring that out, I finally made (on the MK4) stable mounts for the RPi and camera:

    Makergear M2 - Octopi and camera mounts - left side
    Makergear M2 – Octopi and camera mounts – left side

    The RPi now sits on 10 mm M3 brass standoffs screwed into a 3 mm sheet of black acrylic fitted to an existing pair of 4 mm holes in the machine frame. You don’t have any of that, but the LightBurn layout should provide enough info for something similar:

    Makergear M2 RPi Mount - LightBurn layout
    Makergear M2 RPi Mount – LightBurn layout

    The camera mount uses parts from the same collection as the MK4 camera, with a flat-bottom mount trimmed to fit the M2’s frame:

    Which comes from a minimal OpenSCAD routine to get the size right and make the layout symmetric:

    include <BOSL2/std.scad>
    
    render()
    intersection() {
      import("Q base.stl",center=true);
      cuboid([1*INCH,52,30],anchor=CENTER);
    }
    

    A view from the right shows off the lashup’s good side:

    Makergear M2 - Octopi and camera mounts - right side
    Makergear M2 – Octopi and camera mounts – right side

    For comparison, the current state of the MK4 camera just out of view on the M2’s left:

    Prusa MK4 - RPi camera mount
    Prusa MK4 – RPi camera mount

    Only techies think such things look attractive.

    It’s good to have the M2 back in operation, because the number of 3D printers you should have is one more than you have.

  • Craftsman Narrow Spring Clamp Jaws

    Craftsman Narrow Spring Clamp Jaws

    Quite some years ago I (ab)used several Craftsman (I’ve had them a long time) long narrow spring clamps while calibrating some thermocouples, much to the detriment of their rubbery jaws. The original gasket compound hackery didn’t work well, but eventually some of it stuck and I’ve been using them ever since:

    Craftsman Long Spring Clamp Jaw Pad - gasket compound
    Craftsman Long Spring Clamp Jaw Pad – gasket compound

    Now that I can 3D print TPU, however, it was time to fit better jaws in those things.

    The solid model eventually looked like this:

    Craftsman Long Spring Clamp Jaw Pads - solid model detail
    Craftsman Long Spring Clamp Jaw Pads – solid model detail

    The OpenSCAD code is replete with juicy magic numbers based on what few measurements I could make, then tweaked to fit the jaw where it had to go:

    <<< snippage >>>
    
    NumPads = 2 * 4;
    
    PadThick = 1.3;
    TabHeight = 1.5;
    
    module Tab() {
    
      difference() {
        linear_extrude(TabHeight)
          trapezoid(h=4.5,w1=1.4,w2=1.2,rounding=0.2,anchor=FRONT);
        back(5.5)
          xrot(60)
            cuboid([5,5,10],anchor=FRONT);
      }
    }
    <<< snippage >>>
    
    if (Layout == "Build") {
    nx = ceil(sqrt(NumPads));
    ny = nx;
    
    for (nx = [0:nx-1], ny = [0:ny-1])
      right(nx*Gap)
        back(ny*Gap)
          union() {
            linear_extrude(PadThick)
              trapezoid(h=7.5,w1=5.2,w2=4.2,rounding=0.2,anchor=FRONT);
            up(PadThick)
              back(0.5)
                Tab();
        }
    }
    
    

    The results is basically too small for the Prusa MK4 with the 0.8 mm nozzle laying down 0.4 mm layers, but the Makergear M2 with its 0.35 mm nozzle was in the midst of a heart attack at the time (about which, more later).

    The PrusaSlicer preview shows the chunky result:

    Craftsman Long Spring Clamp Jaw Pad - PrusaSlicer 0.8mm nozzle × 0.4mm layer detail
    Craftsman Long Spring Clamp Jaw Pad – PrusaSlicer 0.8mm nozzle × 0.4mm layer detail

    Because they’re so small, I printed nine at a time to get reasonable cooling and repair all four clamps.

    A few iterations produced a workable size & shape:

    Craftsman Long Spring Clamp Jaw Pad - size trials vs final install
    Craftsman Long Spring Clamp Jaw Pad – size trials vs final install

    The nicely curved profile comes from gluing them in place while gripping sturdy closed-cell foam:

    Craftsman Long Spring Clamp Jaw Pad - foam clamping
    Craftsman Long Spring Clamp Jaw Pad – foam clamping

    I used E6000+ adhesive, mostly because the tube didn’t scamper out of the way, but classic E6000 with nasty solvents might be Even Better. Neither would bond to the clamp’s plastic, so the eventual repair will once again require prying out debris with a dental pick.

    After resucitating the M2 , I resliced the model with 0.2 mm layers:

    Craftsman Long Spring Clamp Jaw Pad - PrusaSlicer 0.4mm nozzle × 0.2mm layer - detail
    Craftsman Long Spring Clamp Jaw Pad – PrusaSlicer 0.4mm nozzle × 0.2mm layer – detail

    Which looks much prettier in real life:

    Craftsman Long Spring Clamp Jaw Pad - detail - 0.8 vs 0.4 mm nozzle
    Craftsman Long Spring Clamp Jaw Pad – detail – 0.8 vs 0.4 mm nozzle

    A small ziplock bag with those nine pretty jaws now hangs from the rail supporting Too Many Clamps against future need.

  • Electrolux Dust Brush: Replacement Rubber

    Electrolux Dust Brush: Replacement Rubber

    The Electrolux Model G vacuum cleaner that Came With The Previous House™ has a dust brush attachment resembling a creature from a deep sea trench:

    Electroxlux Brush Ball - OEM assembled
    Electroxlux Brush Ball – OEM assembled

    Those bristles recently fell out during a cleaning session:

    Electroxlux Brush Ball - OEM with brush
    Electroxlux Brush Ball – OEM with brush

    I will never know their backstory, but the rough-cut metal ring strongly suggests they’re a replacement for the original Electrolux bristles. Given that the Model G dates back to the early sixties, that puppy has been around for six decades and counting.

    The rubber insert in the aluminum ball had long since fossilized:

    Electroxlux Brush Ball - OEM rubber
    Electroxlux Brush Ball – OEM rubber

    Not knowing if it would come out in approximately one piece, a doodle records whatever dimensions I could measure:

    Electroxlux Brush Ball - exterior measurements
    Electroxlux Brush Ball – exterior measurements

    Surprisingly, it remained just flexible enough:

    Electroxlux Brush Ball - OEM rubber removed
    Electroxlux Brush Ball – OEM rubber removed

    So I could measure a few more rubber dimensions:

    Electroxlux Brush Ball - rubber measurements
    Electroxlux Brush Ball – rubber measurements

    And ball dimensions:

    Electroxlux Brush Ball - metal measurements
    Electroxlux Brush Ball – metal measurements

    After screwing around drawing Beziér curves for maybe half an hour, I realized a crude polygonal approximation would work perfectly well when 3D printed in TPU with a 0.8 mm nozzle:

    Electroxlux Brush Ball - show 5 view
    Electroxlux Brush Ball – show 5 view

    Which had the compelling advantage I could exactly specify the points and tweak them for an exact fit:

    SplitHeight = 15;
    SplitCube = [100,100,SplitHeight - Protrusion];
    
    NozzleHeight = 15 + SplitHeight;          // above top of ball nozzle
    
    Pts = [
      [61,11],[62,6],[61,2],[55,0],[48,0],    // outside bottom
      [38,5],[33,11],
      [31,SplitHeight],[26,SplitHeight],      // atop ball nozzle rim
      [26,18],[27,19],[31,NozzleHeight],[33,NozzleHeight],    // bristle reinforcement
      [39,19],[40,18],[40,16],
      [35,SplitHeight],
      [36,11],[40,6],                         // inside bottom
      [45,3],[48,2],[52,1],[55,1],
      [59,3],[60,6],[58,9],[59,11],                  // brush metal rim seat
      [61,11],
    ];
    
    

    Turn those points into a polygon, spin it into a ring, and add a ghostly plane to show where the model separates into printable halves:

    if (Layout == "Show") {
        scale([0.5,0.5,1.0])
          rotate_extrude(angle=Slice,start=0,convexity=5) polygon(Pts);
        up(SplitHeight)
          color("Orange",0.2)
            cuboid([100,100,Protrusion],anchor=BOTTOM);
    }
    

    The scale() compensates for the list of points having easily measured real-life diameters, but the polygon() must be at the radius away from the origin; you could divide all the X axis coordinates in the list by two. Dimensions along the Z axis remain unchanged.

    Like this:

    Electroxlux Brush Ball - show 360 view
    Electroxlux Brush Ball – show 360 view

    Split it along the ghostly plane into printable parts:

    if (Layout == "Build") {
      fwd(50)
        intersection() {
          scale([0.5,0.5,1.0])
            rotate_extrude(convexity=5) polygon(Pts);
          cuboid(SplitCube,anchor=BOTTOM);
        }
      back(30)
        intersection() {
          down(SplitHeight)
            scale([0.5,0.5,1.0])
              rotate_extrude(convexity=5) polygon(Pts);
          cuboid(SplitCube,anchor=BOTTOM);
        }
    
    }
    

    Like this:

    Electroxlux Brush Ball - build view
    Electroxlux Brush Ball – build view

    Run the model through PrusaSlicer, install the 0.8 mm nozzle in the MK4, load TPU filament, let the magic happens, then dab JB PlasticBonder urethane adhesive around the mating rim of the bottom part:

    Electroxlux Brush Ball - gluing part
    Electroxlux Brush Ball – gluing part

    Yeah, black would be more better, but tan is fine.

    Flip it over, eyeballometrically center the gooey ring in the wide rim of the nozzle, and let it cure.

    Which eventually looks like it grew that way:

    Electroxlux Brush Ball - replacement TPU
    Electroxlux Brush Ball – replacement TPU

    See? Crude low-poly models FTW!

    As usual, however, it takes two to make a thing go right:

    Electroxlux Brush Ball - TPU versions
    Electroxlux Brush Ball – TPU versions

    The first pass in the center front showed the outer rim needed a deeper recess to grip the metal ring around the bristles; I’m sure I could pry the bristles out of the second version if lives depended on it.

    I added the elongated nozzle to stand halfway up inside the bristles to keep them from collapsing inward under suction:

    Electroxlux Brush Ball - nozzle in brush
    Electroxlux Brush Ball – nozzle in brush

    It’s definitely better than it was!

    Might last another half-century; the original Electrolux vacuums are survivors.

  • Cardboard Spiders: Nesting Assistance

    Cardboard Spiders: Nesting Assistance

    Scaling the spider layout to match the 6.8 mm dual-layer cardboard originally holding a monitor turned out well:

    Cardboard Spider - garage right
    Cardboard Spider – garage right

    The LightBurn nesting routine needed three equal-sized sheets for all the pieces, but I wanted a spider for each of the two garage door lights:

    Cardboard Spider - garage left
    Cardboard Spider – garage left

    So I grouped pairs of the abdomen shapes in the obvious (to me) arrangement, selected all but the body and legs, and LightBurn nested them on a single sheet:

    Spider - Nested sheet 1
    Spider – Nested sheet 1

    It easily nested the body and legs on a second sheet:

    Spider - Nested sheet 2
    Spider – Nested sheet 2

    However, I needed that second sheet for the second spider:

    Cardboard Spider - sheet 1 cutting
    Cardboard Spider – sheet 1 cutting

    So I manually arranged one big leg and one small leg to fit each end of the four narrow box flaps to get sixteen legs:

    Cardboard Spider - leg cutting
    Cardboard Spider – leg cutting

    The two bodies (the weird shape on Sheet 2) barely fit on two of the four small box-closing flaps, two spiders emerged from the pieces adorned with dollops of hot-melt glue, and the cardboard stockpile got the two remaining small flaps that will surely come in handy for something.

    The eyes are fluorescent green acrylic sized for a press fit.

    I love it when a plan comes together …

  • Outdoor Lamp Glass Retainers

    Outdoor Lamp Glass Retainers

    Tucking seasonal decorations into the lamps bracketing the garage door would be much easier if the rubber buttons retaining the glass panes were squishy cylinders, rather than fossilized pebbles:

    Outdoor Lamp Glass Retainers - old vs new
    Outdoor Lamp Glass Retainers – old vs new

    The five tidy buttons on the right are black TPU, hot off the MK4’s printbed:

    Outdoor Lamp Glass Retainers - PrusaSlicer preview
    Outdoor Lamp Glass Retainers – PrusaSlicer preview

    The flange allows for some, shall we say, dimensional variation in the installation:

    Outdoor Lamp Glass Retainers - old vs new - installed
    Outdoor Lamp Glass Retainers – old vs new – installed

    They’re just a tube atop a cylinder:

    nx = ceil(sqrt(NumButtons));
    ny = nx;
    
    union()
    for (nx = [0:nx-1], ny = [0:ny-1])
      right(nx*(FlangeOD + Gap))
        back(ny*(FlangeOD + Gap))
          render()
          union() {
            cyl(FlangeHeight,d=FlangeOD,circum=true,anchor=BOTTOM);
            tube(ButtonOA.z,od=ButtonOA[OD],id=ScrewOD,circum=true,anchor=BOTTOM);
          }
    
    

    Feel free to set up your own dimensions, in the unlikely event you have lamps in need of similar buttons.

    Each of the three lamps has sixteen buttons and, although PrusaSlicer allows you to set the number of instances, its Arrange tool doesn’t make a tidy / compact layout. Doing the layout in OpenSCAD saves a bunch of hassle, with the overall union() turning the array into a single object.

    It might not be the best decoration, but it should suffice:

    Outdoor Lamp Glass Retainers - with decoration
    Outdoor Lamp Glass Retainers – with decoration

    Now, to make critters for the driveway …