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: Machine Shop

Mechanical widgetry

  • Layered Paper: Random Block Generator MVP

    Layered Paper: Random Block Generator MVP

    This definitely isn’t ready for prime time, but it’s already much better than the manual process and a few notes are in order.

    The general idea is to have a Python program generate a set of SVG images, each one describing a single layer of paper in the stack:

    Layered Paper - Random Blocks - MVP - single layer
    Layered Paper – Random Blocks – MVP – single layer

    As expected, there’s a Python SVG library handling the details of creating SVG images.

    Define a bunch of “constants” with all the physical measurements and suchlike:

    PageSize = (round(8.5*INCH,3), round(11.0*INCH,3))
    
    SheetCenter = (PageSize[X]/2,PageSize[X]/2)     # symmetric on Y!
    
    SheetSize = (200,200)           # overall sheet
    
    AlignOC = (180,180)             # alignment pins in corners
    AlignOD = 5.0                    #  … pin diameter
    
    MatrixOA = (170,170)            # outer limit of cell matrix
    
    CellCut = "black"               # C00 Black
    SheetCut = "red"                # C02 Red
    HeavyCut = "rgb(255,128,0)"     # C05 Orange        black mask paper is harder
    HeavyCellCut = "rgb(0,0,160)"   # C09 Dark Blue     ditto
    Tooling = "rgb(12,150,217)"     # T2  Tool
    
    DefStroke = "0.2mm"
    DefFill = "none"
    

    Then marking the middle of the layout with that little circle looks like this:

    ToolEls = []                    # accumulates tooling layout
    # mark center of sheet for drag-n-drop location
    ToolEls.append(
        svg.Circle(
            cx=SheetCenter[X],
            cy=SheetCenter[Y],
            r="2mm",
            stroke=Tooling,
            stroke_width=DefStroke,
            fill="none",
        )
    )
    

    Cutting the perimeter and four alignment holes:

    SheetEls = []                   # accumulates sheet cuts
    # cut perimeter
    SheetEls.append(
        svg.Rect(
            x=as_mm(SheetCenter[X] - SheetSize[X]/2),
            y=as_mm(SheetCenter[Y] - SheetSize[Y]/2),
            width=as_mm(SheetSize[X]),
            height=as_mm(SheetSize[Y]),
            stroke=SheetCut if ThisLayer > 0 else HeavyCut,
            stroke_width=DefStroke,
            fill="none",
        ),
    )
    # cut alignment pin holes except on mask layer
    if ThisLayer > 0:
        for c in ((1,1),(-1,1),(-1,-1),(1,-1)):
            SheetEls.append(
                svg.Circle(
                    cx=as_mm(SheetCenter[X] + c[X]*AlignOC[X]/2),
                    cy=as_mm(SheetCenter[Y] + c[Y]*AlignOC[Y]/2),
                    r=as_mm(AlignOD/2),
                    stroke=SheetCut,
                    stroke_width=DefStroke,
                    fill="none",
                )
            )
    

    Burning the layer ID in binary:

    # cut layer ID holes except on mask layer
    if ThisLayer > 0:
        c = ((1,1))
        h = f'{ThisLayer:0{Layers.bit_length()}b}'
        for i in range(Layers.bit_length()):
            SheetEls.append(
                svg.Circle(
                    cx=as_mm(SheetCenter[X] + c[X]*AlignOC[X]/2 - (i + 2)*AlignOD),
                    cy=as_mm(SheetCenter[Y] + c[Y]*AlignOC[Y]/2),
                    r=AlignOD/4 if h[-(i + 1)] == '1' else AlignOD/8,
                    stroke=SheetCut,
                    stroke_width=DefStroke,
                    fill="none",
                 )
            )
    

    Filling the matrix of blocks with random numbers turned out to be a one-liner:

    CellMatrix = [[randint(1,args.colors) for _ in range(args.height)] for _ in range(args.width)]
    
    

    That matrix is a constant for all the layers, which is why you must feed the program the same random number seed to generate the layers.

    Given the layer number and that matrix, deciding what to do for each hole is a walk through the cells:

    MatrixEls = []                  # accumulates matrix cuts
    for i in range(args.width):
        x =i*CellOC[X]
        for j in range(args.height):
            y = j*CellOC[Y]
    
            if ThisLayer == 0:                          # black mask
                s = HeavyCellCut
            elif ThisLayer < CellMatrix[i][j]:          # rest of sheets above color layer
                s = CellCut
            else:
                s = Tooling                             # at or below color layer
    
            MatrixEls.append(
                svg.Rect(
                    x=as_mm(SheetCenter[X] - MatrixOA[X]/2 + x),
                    y=as_mm(SheetCenter[Y] - MatrixOA[Y]/2 + y),
                    width=as_mm(CellSize[X]),
                    height=as_mm(CellSize[Y]),
                    stroke=s,
                    stroke_width=DefStroke,
                    fill="none",
                )
            )
    

    After accumulating all the other elements in similar lists, this creates and emits the entire SVG file to stdout:

    canvas = svg.SVG(
        width=as_mm(PageSize[X]),
        height=as_mm(PageSize[Y]),
        elements=[
            ToolEls,
            SheetEls,
            MatrixEls
        ],
    )
    
    print(canvas)
    

    The whole program has a bit more going on, but those are the high points.

    Invoke the program with a Bash one-liner:

    for i in {00..08} ; do python Layers.py --layernum=$i > Test_$i.svg ; done
    

    That produces nine SVG image files that you import into LightBurn and arrange in a tidy array:

    Layered Paper - Random Blocks - MVP - LightBurn import
    Layered Paper – Random Blocks – MVP – LightBurn import

    I discovered that holding down the Shift key while importing the SVG files stacks them at the workspace origin (the upper-right corner for my machine) in the order of the file names, so clicking on the stack selects successive layers in the right order; just drop each one wherever you need it, then tidy the lineup.

    The Python program sets the vector stroke colors using LightBurn palette values, so that LightBurn automagically assigns them to the appropriate layers. It turns out the black paper I used for the mask requires different speed / power values than the other colored paper.

    I put the alignment features on a different layer than the matrix holes to make them more visible, even though they have the same speed / power values.

    Align the template so the middle of the layer pattern is in the middle of the grid, then use LightBurn’s Print and Cut to align the template with the fixture on the laser platform:

    Layered Paper - Random Blocks - MVP - template
    Layered Paper – Random Blocks – MVP – template

    Then the process requires just a few clicks per layer:

    • Drop a sheet of paper into the fixture
    • Click to select a layer layout
    • Ctrl-D to duplicate it
    • P to snap it to the middle of the grid
    • Alt-S to Fire The Laser
    • Del to delete that layer (which is why it’s a duplicate!)
    • Iterate until done!

    Which looks pretty much like you’d expect:

    Layered Paper - Random Blocks - cutting
    Layered Paper – Random Blocks – cutting

    Take the stack of paper to the workbench, use an Xacto knife to cut the tabs holding the square into the Letter page, apply glue stick, stack in the fixture, and iterate to create a solid sheet with lots of holes:

    Layered Paper - Random Blocks - MVP
    Layered Paper – Random Blocks – MVP

    More refinement is in order, but that’s the overview …

  • Laser Beam Alignment Check

    Laser Beam Alignment Check

    Each target has two scorches made at the left and right ends of the gantry X axis, positioned along the Y axis as noted:

    Beam Alignment - overall 2025-07-31
    Beam Alignment – overall 2025-07-31

    The target has maybe a millimeter of positioning error in the mirror entry aperture, so the beam remains pretty much where it should be.

    The beam is hotter toward the rear, as expected, and the front target needed two or three pulses to get a good scorch in the right front corner.

  • Hose Fitting Grip Redux

    Hose Fitting Grip Redux

    Replacing the sun-rotted hose for Mary’s garden called for a new grip, because of course all hose fittings are different:

    Garden Hose Fitting Grip - installed
    Garden Hose Fitting Grip – installed

    The ridges on the fitting looked close enough to half-cylinders and the fitting wasn’t tapered enough to worry about:

    Hose Fitting Grip - simple - solid model
    Hose Fitting Grip – simple – solid model

    The OD came from the original grip, because it neatly fits Mary’s hand, and the nubbles are round-end cylinders.

    Got it done the day after the old hose split, glued it on the hose with E6000+, installed it the next morning, whereupon the weather delivered three inches of rain. It’ll get screwed onto the faucet in a few days …

    The OpenSCAD source code as a GitHub Gist:

    // Hose fitting grip – simple plastic extrusion
    // Ed Nisley – KE4ZNU
    // 2025-07-30
    include <BOSL2/std.scad>
    /* [Hidden] */
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 3*2*4;
    $fn=NumSides;
    ID = 0;
    OD = 1;
    LENGTH = 2;
    NumRibs = 8;
    RibOD = 3.0;
    GripOA = [32.5,66.0,16.0];
    KnobBallOD = 6.0;
    union() {
    difference() {
    tube(GripOA[LENGTH],id=GripOA[ID],od=GripOA[OD],orounding=2.0,anchor=BOTTOM);
    for (a = [0:NumRibs-1])
    rotate(a*360/NumRibs)
    right(GripOA[ID]/2) down(Protrusion)
    cyl(GripOA[LENGTH] + 2*Protrusion,d=RibOD,anchor=BOTTOM);
    }
    for (a = [0:NumSides-1])
    rotate(a*360/NumSides)
    right(GripOA[OD]/2)
    up(GripOA[LENGTH]/2)
    cyl(GripOA[LENGTH]/2,d=KnobBallOD,rounding=KnobBallOD/2);
    }
  • PolyDryer Humidity: 30 Days Later

    PolyDryer Humidity: 30 Days Later

    A month after the last desiccant change, the silica gel looks like this:

    Polydryer - 30 day beads
    Polydryer – 30 day beads

    The top cup contains fresh-from-stock dry (regenerated) silica gel beads and the others, left-to-right and top-to-bottom, come from PolyDryer boxes:

    Material%RHWeight – gIncrease – gWater gain – %
    PETG White1426.81.87.2
    PETG Black2026.81.87.2
    PETG Orange1326.81.87.2
    PETG Blue1526.91.97.6
    PETG-CF Blue1927.42.49.6
    PETG-CF Black2827.32.39.2
    PETG-CF Gray2727.12.18.4
    TPU Clear1326.81.87.2
    Sum of weights215.98.0
    Measured weight216.38.1

    I expected some correlation between the indicated humidity and the weight of adsorbed water vapor, but that’s not the case.

    The bottom row suggests there’s also little-to-no correlation between bead color and humidity, at least at this low end of the scale.

    The indicator cards tucked into the boxes roughly correlate with the meter reading, but they’re much easier to interpret in person.

    The old chart of adsorption vs. relative humidity suggests the results are plausible, with the 27-ish %RH being higher than you’d expect from 9-ish % adsorption:

    Desiccant adsorption vs humidity
    Desiccant adsorption vs humidity

    So they’re all set up with 25 g of fresh silica gel, although the boxes no long have the same humidity meters they started with. This likely makes little difference, as I have no way to calibrate them.

  • Polymaker PolyDryer Desiccant: Trust, But Verify

    Polymaker PolyDryer Desiccant: Trust, But Verify

    The startup ritual for a PolyDryer box’s humidity meter includes:

    • Opening a small sealed bag containing …
    • The DO NOT EAT desiccant, to be cut open and …
    • Poured into the meter box

    Which looks like this:

    Polydryer - 14 pctRH - meter - white PETG
    Polydryer – 14 pctRH – meter – white PETG

    However, the desiccant packets for the most recent pair of boxes (intended to simplify changing the desiccant in the collection feeding the MMU3 atop the Prusa MK4 3D printer) produced this:

    Polydryer - as-received desiccant
    Polydryer – as-received desiccant

    The silica gel in the left cup looks OK-ish, maybe a little dark, but the fresh-from-the-bag beads in the right cup are crying out for regeneration after having adsorbed about all the water vapor they can.

    If you were using that silica gel in its original DO NOT EAT bag, where you can’t see what it’s telling you, you might wonder why it wasn’t doing such a great job of drying the box + filament. The same could happen with a bag of non-indicating gel, along the lines of what I was using a decade ago.

    So I dumped both in the Needs Rgeneration bottle and filled both meters with 25 g of fresh silica gel.

  • Bicycle Mobile Rebuild

    Bicycle Mobile Rebuild

    A long-lost repair finally made it to the top of the list:

    Bicycle Mobile - bottom view
    Bicycle Mobile – bottom view

    The original string had long since rotted out, but everything else was in a plastic bag just waiting for this occasion.

    The colorful cylinders are stacks of laser-cut 6 mm disks with a 2 mm hole, held to the wire & string with a tiny dot of high-viscosity cyanoacrylate glue at each end:

    Bicycle Mobile - detail
    Bicycle Mobile – detail

    The disks came from acrylic leftovers:

    Bicycle Mobile - laser-cut acrylic
    Bicycle Mobile – laser-cut acrylic

    The motion you can’t see makes the shiny bikes much more visible out there:

    Bicycle Mobile - side view
    Bicycle Mobile – side view

    The string came from dismantled badge reels providing spiral springs for the auto-retracting spools in the PolyDryer boxes.

    The weight ball had a 2 mm hole filled by a wood plug which I cleaned out piecemeal with a 1.5 mm drill bit in a pin vise; a short length of wood skewer holds the new string in place.

    Because the upper arms support more weight, their disk stacks need fewer disks for the same leverage. The original mobile had (at most) four 6 mm chromed plastic balls at each level, so I started with eight 3 mm disks, adjusted the stack length as needed, glued them in place, then removed the surplus disks by crushing them with a Vise-Grip.

    I should rip off the design (“© otagiri 1979”) to build another with recumbent bikes.

  • Sewing Notions Drawer Pull Rethreading

    Sewing Notions Drawer Pull Rethreading

    A small sewing notions cabinet, once my mother’s, now holds some of Mary’s supplies and, a few days ago, had one of its drawer pulls fall off. While preemptively tightening all the screws, I found one no longer held onto its pull:

    Notions drawer pull - parts
    Notions drawer pull – parts

    They don’t make drawer pulls like that any more!

    As I see things, it can be forgiven for losing its grip after nearly a century.

    Thread the screw in as far as it will go and lay the pull flat on the bench vise anvil:

    Notions drawer pull - hammering setup
    Notions drawer pull – hammering setup

    A few gentle whacks with a pin punch on top and bottom, plus a tap on each side, compressed the pull’s remaining threads around & into the screw:

    Notions drawer pull - reshaped
    Notions drawer pull – reshaped

    Put it back in its drawer, snug the screw, and it’s all good.

    That should suffice for at least the remainder of its first century …