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

  • 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. 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 …

  • Laser Cutter: Ortur YRC-1 Re-Wiring

    Laser Cutter: Ortur YRC-1 Re-Wiring

    Although the Ortur YRC-1 chuck rotary comes with a long cable, the connector doesn’t match anything in my heap, so an adapter of some sort was in order. The box includes three different adapters for various machines, none of which I have, but which served as raw material.

    One of the adapters put the motor winding pairs together, which seemed like a Good Idea™:

    Ortur Chuck Rotary - cable routing
    Ortur Chuck Rotary – cable routing

    That view has the stepper motor flipped 180° from its normal orientation; the motor cable connector normally points downward from the bottom.

    The rotary has no strain relief for the cable, so I stuck a cable clip on its left side (in the normal orientation):

    Ortur Chuck Rotary - cable clip
    Ortur Chuck Rotary – cable clip

    That arrangement captures the adapter, immobilizes the wiring at the motor, and puts all the strain on the more easily replaced cable, which is now a length of flexy 24 AWG silicone ribbon cable.

    I don’t have a connector matching the Ortur adapter, but JST SM pins seemed about the right size:

    Ortur Chuck Rotary - cable pins
    Ortur Chuck Rotary – cable pins

    Entombing that mess with a squirt of hot melt glue should keep them out of trouble.

    You can see my matching JST SM connectors on the right end of the ribbon cable :

    Laser Rotary - on platform
    Laser Rotary – on platform

    A cable clip stuck to the front cross member of the machine frame (just beyond the angled magnet) holds the unplugged end out of harm’s way when the rotary isn’t present.

    The ribbon cable burrows through the guts of the machine to the A/B terminals of the smaller stepper driver in the electronics bay:

    Laser Rotary - R driver - detail
    Laser Rotary – R driver – detail

    Flipping the front-panel switch to enable the rotary driver / disable the Y axis driver enthusiastically spins the chuck when the controller thinks I’m jogging the Y axis:

    Laser Rotary - control switch
    Laser Rotary – control switch

    Making it do something useful requires more pondering.

  • Laser Cutter: Rotary Stepper Driver

    Laser Cutter: Rotary Stepper Driver

    Having picked up a small rotary intended for Ortur diode laser machines during Black Friday, I knew using it with my OMTech 60 W CO₂ laser wasn’t going to be plug-n-play. The usual connection for a rotary in a CO₂ laser is directly into the stepper motor driver for the Y axis, so the stepper motor in the rotary must handle the same current as the Y axis motor. The OMTech laser has NEMA 23 steppers set for 3.5 A, which would quickly fry the NEMA 17 stepper in the Ortur rotary.

    So the general idea was to run the rotary from another stepper driver set for an amp or so. A separate driver would also let me choose microstep settings more suitable for a rotary.

    A simple SPDT switch enables the appropriate driver:

    Laser Rotary Enable doodle
    Laser Rotary Enable doodle

    NB: Leaving the ENA pins of a stepper driver disconnected enables the motor output and passing current through them disables the motor; why that function was not labeled DISABLE remains a mystery.

    So the switch looks bassakwards, but it connects the -ENA pin of the disabled driver to GND / common, with its +ENA pin tied to the supply.

    Translating that doodle into hardware required drilling holes in what passes for the laser’s front panel:

    Laser Rotary - control switch
    Laser Rotary – control switch

    The new driver stands up in bottom of the electronics bay:

    Laser Rotary - R driver - detail
    Laser Rotary – R driver – detail

    The loose wire over on the left is a remnant of the discovery that the KT332N controller’s General output bits do not behave as expected. While you (well, I) can set their state through the display’s MENU → DIAGNOSES screen, the controller unilaterally slams them low = active while running a job. To be fair, the manual does say “General output, reserved”, but I had to find out the hard way.

    The +ENA terminal comes from the +5V supply, along with the other + terminals. The -ENA terminal goes off to the switch, along with two wires from the existing Y axis stepper driver:

    Laser Rotary - Y driver wiring
    Laser Rotary – Y driver wiring

    The 1.8 kΩ resistor sticks out of a ferrule doubled up in the 24V terminal feeding the driver and connects to a wire into the +ENA terminal. Two wires from the switch connect to the -ENA and GND terminals, join the -ENA wire from the rotary driver, and crawl through the machine to the front panel.

    The new power supply on the far right completes the electronics bay installation:

    Laser Rotary - electronics bay
    Laser Rotary – electronics bay

    Obviously, the wiring situation is completely out of control.

    Up top, though, it looks like it grew there:

    Laser Rotary - on platform
    Laser Rotary – on platform

    Now, to figure out the settings …