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: Electronics Workbench

Electrical & Electronic gadgets

  • OMTech Laser Cutter vs. Ortur YRC-1 Rotary: Job Checklist

    OMTech Laser Cutter vs. Ortur YRC-1 Rotary: Job Checklist

    The process of switching the laser cutter from “normal” operation to the Ortur YRC-1 rotary and back again requires a checklist:

    Ortur YRC-1 Setup Checklist - installed
    Ortur YRC-1 Setup Checklist – installed

    Which looks like this:

    Ortur YRC-1 Setup Checklist
    Ortur YRC-1 Setup Checklist

    The same thing as a PDF will be more printable or readable.

    Previous posts cover what goes into making it work:

    Notes:

    • Always disable the rotary’s stepper driver before connecting or disconnecting its cable.
    • The Ortur YRC-1 rotary has a pulley ratio of 1:3, so the step/rev value is three times the DIP switch setting on the stepper driver. For this setup, 1600 → 4800 step/rev.
    • The honeycomb frame is a parallelogram, not a rectangle. I align the cardboard baffle / fixture to the bottom edge of the frame and the rotary to the bottom edge of the fixture opening, but your machine will be different. The angular alignment may not be off by enough to matter, but consistency is a virtue.
    • The Rotary.lbset and Linear.lbset files live on a file server with daily backups. Such backups will come in handy when you inadvertently overwrite one of those files with the other one. Trust me on this.
    • The Rotary.lbset file does not have Rotary Mode enabled, because the KT332N does not home the Y axis in that mode. If your rotary lacks a home switch, then it doesn’t matter and you’re on your own.
    • The KT332N controller has a [Reset] button that allegedly does a power-on reset and reloads all the changed Machine Settings. This sometimes does not work as expected: power-cycling the controller is the only way to be sure.
    • The autofocus operation must hit the focus pad, which can be ensured by positioning the pen near the pad, jogging the platform a few millimeters under the pen, tweaking X and the gantry while peering down parallel to the pen, then doing the autofocus.
    • The focus pad has a crosshair clearing the chonky Ortur 3-step jaws, but I set the controller’s [Origin] at the foot of the pad’s base for more elbow room.
    • The Z axis distance field in LightBurn’s Move window does not accept formulas, so you must divide the workpiece diameter by two. Using a focus stick to verify the ensuing nozzle-to-workpiece distance is a Good Idea™.
    • The LightBurn Job Origin dot must be on the top row, because the KT332N does not go into regions with negative coordinates. With the chuck on the left and the [Origin] just to its right, the upper left dot locks the LightBurn selection to the physical limits.
    • Selecting [Use Selection Origin] puts the Job Origin at the upper left (per the dot) of whatever you’ve selected, not everything on the LightBurn workspace. [User Origin] then locks the selection to the [Origin] set on the controller.

    As the saying goes, it works for me …

  • Inline Switch FAIL

    Inline Switch FAIL

    One of the inline switches I installed to replace the failed switches for the LED lights got unpleasantly warm enough to prompt an investigation:

    Inline lamp switch - heat damage
    Inline lamp switch – heat damage

    Yeah, that is not a nominal outcome, particularly in light of the claimed “10 A 250 V” rating.

    The overheated plastic pulled back enough to expose the terminal inside:

    Inline lamp switch - visible terminal
    Inline lamp switch – visible terminal

    There was a reason I’d wrapped those switches with known-good 3M electrical tape before deploying them.

    That crimp connector took some heat and its screw looks even more unhappy:

    Inline lamp switch - internal damage
    Inline lamp switch – internal damage

    It turned out the screw was an itsy too short to compress both the connector and the bent-metal conductor tab against the terminal block:

    Inline lamp switch - misfit screw terminal
    Inline lamp switch – misfit screw terminal

    A 6 mm brass screw with a brass washer did a better job of compressing all parties into one conductive lump.

    Although the switch now runs with the case at normal basement temperature, an allegedly UL listed replacement is on its way; it costs about five times more than that switch. If it behaves as it should, I’ll preemptively replace two other switches.

  • Ortur YRC-1: Adding a Home Switch

    Ortur YRC-1: Adding a Home Switch

    Stipulated: A chuck rotary doesn’t need a home switch.

    With that in mind, a home switch seemed like it might come in handy and this is the simplest workable design:

    Ortur Chuck Rotary home switch - installed
    Ortur Chuck Rotary home switch – installed

    The cover mimics the size & shape of the Ortur cover, minus the stylin’ rounding & chamfering along the edges:

    Ortur Rotary Belt Cover - exterior - solid model
    Ortur Rotary Belt Cover – exterior – solid model

    It has a certain Cybertruck aspect, doesn’t it?

    Two beads of hot melt glue hold the switch flush along the cover’s inside surface:

    Ortur Chuck Rotary home switch - case exterior
    Ortur Chuck Rotary home switch – case exterior

    One might argue for a tidy cover over those terminals.

    While contemplating the layout by holding the switch here & there, seeing the switch roller neatly centered on the pulley hub told me the Lords of Cosmic Jest favored this plan:

    Ortur Chuck Rotary home switch - case interior
    Ortur Chuck Rotary home switch – case interior

    A simple cam lifts the roller:

    Ortur Chuck Rotary home switch - pulley cam
    Ortur Chuck Rotary home switch – pulley cam

    That’s obviously laser-cut acrylic sitting on double-sided tape.

    Edit: The pulley ratio is 1:3, so the step/rev value is three times the DIP switch setting on the stepper driver.

    Some finicky repositioning put the #1 chuck jaw on top after homing:

    Ortur Chuck Rotary home switch - jaw position
    Ortur Chuck Rotary home switch – jaw position

    A more permanent adhesive under the cam may be in order.

    Update: The switch triggers more reliably with a simple setscrew standing proud of the pulley hub:

    Ortur Rotary Focus Pad - home trip setscrew
    Ortur Rotary Focus Pad – home trip setscrew

    Wiring the normally open switch contacts in parallel with the existing Y axis home switch lets both the gantry and the rotary trigger the controller. The front-panel switch ensures only one of those two can move:

    Laser Rotary - control switch
    Laser Rotary – control switch

    With all that in place and the switch flipped, the chuck rotates happily and homes properly with the controller in normal linear mode.

    Spoiler: A Ruida-ish KT332N controller ignores the Y-axis Home enable setting with Rotary mode enabled, because everybody knows a rotary has no need for a home switch.

    The OpenSCAD code as a GitHub Gist:

    // Ortur Rotary belt cover
    // Ed Nisley – KE4ZNU
    // 2025-12-23
    include <BOSL2/std.scad>
    Layout = "Show"; // [Show,Build,Block,Shell]
    /* [Hidden] */
    ID = 0;
    OD = 1;
    LENGTH = 2;
    HoleWindage = 0.2;
    Protrusion = 0.1;
    NumSides = 2*3*4;
    $fn=NumSides;
    Gap = 5.0;
    WallThick = 1.6; // OEM wall
    CoverOA = [81.5,50.5,23.0]; // open side down
    CoverRadius = 4.0;
    CoverTrimZ = 6.0;
    CoverTrimAngle = 45;
    BreakX = (CoverOA.z – CoverTrimZ)/tan(CoverTrimAngle);
    ScrewOC = [51.0,38.0];
    ScrewHoleID = 3.5;
    ScrewHeadRecess = [ScrewHoleID,7.0,1.8];
    ScrewOffset = 8.0; // cover edge to hole centerline
    SwitchOA = [21.0,20.0,6.5]; // X = body + roller, excludes terminals
    SwitchOffset = [0,0,17.0]; // nominal end = roller at centerline
    //—–
    // Overall cover shape
    module CoverBlock() {
    cuboid([CoverOA.x,CoverOA.y,CoverTrimZ],anchor=BOTTOM) position(TOP+LEFT)
    prismoid(size1=[CoverOA.x,CoverOA.y],size2=[CoverOA.x – BreakX,CoverOA.y],
    height=CoverOA.z – CoverTrimZ,shift=[-BreakX/2,0],anchor=BOTTOM+LEFT);
    }
    // Cover shell
    module CoverShell() {
    difference() {
    CoverBlock();
    down(Protrusion)
    resize(CoverOA – [2*WallThick,2*WallThick,WallThick – Protrusion])
    CoverBlock();
    }
    }
    // The complete cover
    module Cover() {
    difference() {
    union() {
    CoverShell();
    left((CoverOA.x – ScrewOC.x)/2 – ScrewOffset)
    for (i = [-1,1], j=[-1,1])
    translate([i*ScrewOC.x/2,j*ScrewOC.y/2,0])
    cyl(CoverOA.z,d=ScrewHoleID + 2*WallThick,anchor=BOTTOM);
    }
    left((CoverOA.x – ScrewOC.x)/2 – ScrewOffset) down(Protrusion)
    for (i = [-1,1], j=[-1,1])
    translate([i*ScrewOC.x/2,j*ScrewOC.y/2,0]) {
    cyl(CoverOA.z + 2*Protrusion,d=ScrewHoleID + HoleWindage,anchor=BOTTOM);
    up(CoverOA.z – ScrewHeadRecess[LENGTH])
    cyl(ScrewHeadRecess[LENGTH] + 2*Protrusion,
    d1=ScrewHeadRecess[ID] + HoleWindage,d2=ScrewHeadRecess[OD] + HoleWindage,
    anchor=BOTTOM);
    }
    translate(SwitchOffset) left(CoverOA.x/2 – WallThick – Protrusion)
    cuboid(SwitchOA,anchor=RIGHT+FWD);
    }
    }
    //—–
    // Build things
    if (Layout == "Block") {
    CoverBlock();
    }
    if (Layout == "Shell") {
    CoverShell();
    }
    if (Layout == "Show") {
    Cover();
    }
    if (Layout == "Build") {
    up(CoverOA.z)
    xrot(180)
    Cover();
    }
  • OMTech Laser: It Was The Focus Pen Wire

    OMTech Laser: It Was The Focus Pen Wire

    Because the focus pen worked on the bench, I was certain this had to be true:

    OMTech focus pen - failed 24V wire
    OMTech focus pen – failed 24V wire

    There is a break somewhere along the blue wire carrying 24 V to the focus pen. The signal and 0 V wires are fine.

    I updated the original post, because I’m going to use that picture a lot whenever the subject of laser machine wiring comes up.

  • Basement Air Filter Box

    Basement Air Filter Box

    A box of air filters that Came With The House™ (and fit nothing therein) surfaced during a recent heap probe and prompted a quick-n-dirty project:

    Basement Air Filter Box - installed
    Basement Air Filter Box – installed

    It replaces a tired box fan (barely visible at the top) that’s been shoving air around the basement to equalize the humidity.

    The quintet of 140 mm fans seems quieter, although they don’t move quite as much air. Given that I have no way to know how much air circulation is enough, it’s likely sufficient.

    The strip of black tape covers a hole for the knob on the fan power / speed control, although I cranked it up to full throttle and expect to leave it there:

    Basement Air Filter Box - speed control
    Basement Air Filter Box – speed control

    The controller sits on a platform cut from 1.5 mm cardboard:

    Basement Air Filter Box - wiring
    Basement Air Filter Box – wiring

    The 3D printed holder came with the controller. I cannot imagine how they have enough time to print a holder for each controller; maybe it’s a QC check for a 3D printer manufacturer.

    I intended the controller to sit on the other side of the middle fan, but realized I had to cut the opening after mounting the fans and got the chirality wrong; the wiring in there layout leaves something to be desired.

    The fans mount on a sheet of cardboard cut from one side of a Home Depot Extra Large Box and the bottom of the filter box comes from the other side. Because I don’t have a deep emotional attachment to the filters, they’re attached to each other (and the bottom sheet) with hot melt glue. I do have a slight attachment to the fans, but four dabs of glue hold each one in place. More gaffer tape holds the fan sheet to the front of the assembled box, in the unlikely event I must get in there again.

    Hey, it’s Christmas: good things come in boxes, right?

  • OMTech Laser: Focus Pen Pretravel Tweakage & Autofocus Calibration

    OMTech Laser: Focus Pen Pretravel Tweakage & Autofocus Calibration

    The focus “pen” = switch on the OMTech laser stuck out far below the nozzle:

    Laser cut plywood flames - C
    Laser cut plywood flames – C

    The nozzle is 18.5 (-ish) mm above the surface with the laser beam focused to a tight spot. The brass (-ish) tip of the pen flew about 5 mm above the material, requiring considerable attention to the placement of magnets, clamps, and similar accoutrements around the material on the platform.

    Having dismantled the pen while replacing its wiring, this seemed like a good time to figure out how to get more clearance under its tip.

    Removing the pen nose shows the tip on its 3 mm screw inside the spring pushing the tip downward:

    OMTech focus pen - soft spring - installed
    OMTech focus pen – soft spring – installed

    I replaced the original spring (on the bottom) with a softer spring, mostly because the tip exerted what seemed like entirely too much force on the material. That makes no difference for acrylic & plywood, but anything squishier required deploying the focus gauge after I remembered the problem.

    The other end of the screw is impossible to photograph in situ, but the tapered head seats in a recess leaving several millimeters of air below the proximity sensor. I made a little steel slug to reduce the pretravel by filling that gap:

    OMTech focus pen - pretravel filler
    OMTech focus pen – pretravel filler

    The spigot on the slug (turned from 7/32 inch steel rod) aligns it with the screw head, with high-viscosity cyanoacrylate adhesive holding it in place:

    OMTech focus pen - pretravel filler - installed
    OMTech focus pen – pretravel filler – installed

    The surface finish of my slug matches their tapering, so I figure it’s about right.

    A setscrew near the top of the pen clamps the proximity sensor with a few millimeters of adjustment:

    OMTech laser focus pen - detail
    OMTech laser focus pen – detail

    The slug reduces the pretravel to nearly zero with the sensor at the bottom of its range.

    The brass tip had been twisted onto the screw as far as it would go, so I cut a few millimeters off the screw to put the tip closer to the pen nose:

    OMTech focus pen - minimal stickout
    OMTech focus pen – minimal stickout

    Even with reduced pretravel, the tip nearly vanished into the pen body before tripping the sensor, so I unscrewed it two turns = 1.4 mm.

    With the pen back in the machine and plugged in, measure the switch travel with a step gauge:

    OMTech focus pen - revised stickout
    OMTech focus pen – revised stickout

    Protip: Measure the as-cut height of those steps, then either shim the bottom of the gauge with tape of a suitable thickness or add that much to the layout and cut another set.

    With a good step gauge in hand:

    • Slide it underneath to just touch the tip
    • Note the measurement = A
    • Slide it further until the switch trips (red LED on)
    • Note the measurement = B

    Figure B-A, round up to the next millimeter, then set that value as the Home Offset for whatever axis moves the platform. My tweaked pen had 2.5 mm of travel, so I used 3.0 mm:

    Settings - Home Offset
    Settings – Home Offset

    Adjust the pen position to put the tip more than the Home Offset below the nozzle (I picked 5 mm) to ensure the switch will trip before the nozzle contacts the platform, then do an Autofocus.

    Measure the distance from the nozzle to the platform (mine was 5.5 mm), subtract that from 18.5 mm (the known focused distance for my laser head, as above), and set that as the Focus Distance:

    Settings - Focus Distance
    Settings – Focus Distance

    Another Autofocus should then put the nozzle exactly 18.5 mm (or whatever your machine needs) off the platform / material.

    This shows the pen now flies 5 mm below the nozzle:

    OMTech focus pen - normal vs nozzle
    OMTech focus pen – normal vs nozzle

    The step gauge shows it’s 13.5 mm above the platform, much better than the previous 5 mm.

    The switch trips juuuust before the nozzle hits the material:

    OMTech focus pen - tripped vs nozzle
    OMTech focus pen – tripped vs nozzle

    I should lower the pen a millimeter, but that’s in the nature of fine tuning.

    Happy Dance!

  • OMTech Laser: Focus Pen Wiring Repair

    OMTech Laser: Focus Pen Wiring Repair

    This happened while focusing the laser before cutting the cardboard fixture for the chuck rotary:

    OMTech focus pen - failed operation
    OMTech focus pen – failed operation

    The autofocus “pen” = switch did not operate when the rising platform pushed the cardboard against its tip, so the controller continued raising the platform. Seconds later, the platform rammed the cardboard against the laser head and I slapped the Big Red Button.

    Those indentations match the focus pen and the nozzle:

    OMTech laser focus pen-switch
    OMTech laser focus pen-switch

    Yeah, the platform shoved that pen straight up through its clamp until both punched through the cardboard.

    The pen has a red LED (barely visible through the opening around the cable when you’re looking down into it) that did not light up when I manually triggered the switch: either the switch was dead or it wasn’t getting 24 V power.

    Having spent considerable time diagnosing similar problems on the LightBurn forum, I was pretty sure the PVC-insulated wire connecting the pen to the controller had failed somewhere in the drag chain.

    Update Yup, the 24 V wire was broken:

    OMTech focus pen - failed 24V wire
    OMTech focus pen – failed 24V wire

    Another discussion there showed how to dismantle the pen, so I (turned off the power and) cut the cable a few inches from the top of the pen body.

    The pen body has three parts screwed together with generous application of threadlock. After demonstrating I lack enough grip strength to break the bonds, I deployed a pair of lathe chucks designed for a death grip on cylindrical objects:

    OMTech focus pen - double chuck setup
    OMTech focus pen – double chuck setup

    The tip came off readily enough:

    OMTech focus pen - nose unscrewed
    OMTech focus pen – nose unscrewed

    The upper joint was more reluctant, to the extent I needed witness marks to show progress:

    OMTech focus pen - unscrewing witness marks
    OMTech focus pen – unscrewing witness marks

    Dripping Kroil into the slightly loosened joint while twisting it back and forth eventually separated the parts:

    OMTech focus pen - body unscrewed
    OMTech focus pen – body unscrewed

    I persuaded the last chunks of threadlock out with a stout pin (in a pin vise), eventually letting me screw the pen body together without a struggle.

    Contrary to what I originally thought, the switch is a proximity sensor triggered by the reshaped head of an M3 socket-head screw also holding the brass-colored tip. Wiring it to a bench power supply verified proper operation, with the open-collector (actually, open-drain) output going low with any ferrous metal closer than about 3 mm to the sensor tip.

    Which put the fault somewhere along the wiring from the controller through both drag chains to the pen, as expected.

    Unlinking the X axis drag chain involved a pair of small screwdrivers prying the side plates off their pivots in the next link:

    OMTech focus pen - drag chain unlinked
    OMTech focus pen – drag chain unlinked

    The slightly enlarged opening let me pull enough of the cable through to verify I needed more elbow room, so I dismounted the entire drag chain:

    OMTech focus pen - X axis drag chain unmounted
    OMTech focus pen – X axis drag chain unmounted

    The Y axis drag chain was short enough to pull the cable out without drama.

    I guesstimated the overall length from laser head to controller, cut a six conductor 26 AWG silicone ribbon cable generously longer than half of that, peeled it down the middle, then put a JST SM connector where the sections meet at the end of the gantry:

    OMTech focus pen - gantry wiring
    OMTech focus pen – gantry wiring

    Obviously, those connector halves went on before snaking the other end of the cable sections through their drag chains. I paid considerable attention to keeping the ribbons flat and untwisted throughout their lengths, in hope they’d flex easily as the chain bends.

    AFAICT there was no good way to use the old wire to pull the new wire through the chain, so running flexy silicone ribbon cable through a drag chain required tweezers, patience, and persistence. I had to realign the existing wires & tubes at various points so they didn’t twine around each other and block the path.

    Another JST SM connector at the laser head allows removing / installing the pen as needed:

    OMTech focus pen - reinstalled
    OMTech focus pen – reinstalled

    The connector pins and sensor wire colors:

    1. GND = blue = common = marked cable conductor
    2. OUT = black = sensor output
    3. 24V = brown = power

    Wiring the new cable to the controller’s 24 V / GND / LmtU- terminals showed it now worked perfectly.

    Reducing the vertical offset between the tip of the pen and the tip of the nozzle was then straightforward …