MOTION INTERFACE M1 • release after a real stage drawing, quote and load check

First choice: borrow a calibrated, guarded two-axis stage with matching motion
controller. Test ≥100 mm X by ≥75 mm vertical Z of USABLE travel with head,
lead loops and end stops installed. Record host commands, controller-reported
state and any independent position readout. This differs from the parked
specimen carrier. A hand-indexed rail is adequate for initial short lines.
Select an owned drive only if the complete landed build fits the allocation.

Quote branch: RobotDigg item 1629, Tr6×2 screw, 150 mm working-length variant
for X and 100 mm for vertical Z. Source lists 0.6 A/phase for its NEMA11
bipolar motor. Secure drawing, true stroke after end switches, weight, step
angle, lead, pinout, load rating for actual mounting, vertical holding/back-
drive behaviour, full swept envelope, chosen bracket and delivered price. A
150 mm variant gives switch/clearance margin compared with a 100 mm nominal
module. If a 100 mm X variant is proposed, require measured 100 mm usable
including margins or change the module. Coordinate any envelope change with
the base drawing before fixing holes. Support the vertical carriage so it
cannot fall when power is removed. Fit positive end stops and cable relief.

Separate motion controller: Arduino Uno R3 ATmega328P (5 V, separate USB)
with Grbl v1.1h, no spindle. Two Pololu #1182 carriers. Direct-wire carrier
labels; no clone shield pin assumption. Acquisition Pico has its own USB
port and 3.3 V supply. Use a properly rated protected 12 V DC supply only;
dedicate the bench CC supply to the LED while measuring. Route motor returns
locally at the 12 V supply and use separate signal-ground leads from Uno to
each driver. A shared computer can already bond grounds through USB. Do not
join positive rails or drive the Uno barrel from these wires.

Uno D2 → X STEP       Uno D5 → X DIR       Uno D9 → X limit switch loop
Uno D4 → Z STEP       Uno D7 → Z DIR       Uno D12 → Z limit switch loop
Uno D8 → both EN      Uno 5V → both VDD    Uno GND → both logic GND
12 V+ → DC disconnect/fuse → both VMOT    12 V− → both motor GND
Each carrier: 100 µF 25 V electrolytic from VMOT to nearest motor GND, short
leads, correct polarity. Select switch/fuse rating from wire ampacity and
supply capability. Keep motor branch physically guarded and provide an
accessible power disconnect. The disconnect must leave Z mechanically safe.
Both drives: RESET tied to SLEEP and pulled high to VDD. MS1, MS2, MS3 to GND
for full-step initial tests. Add 10 kΩ pull-up on shared EN to keep drivers
off while Uno is resetting. Identify coil pairs with a meter unpowered; each
pair goes across 1A/1B or 2A/2B on its own carrier. Never hot-plug a motor.
Record actual sense-resistor marking. Set current while motor circuit is
guarded, before connecting motor. Imax=Vref/(8 Rs). For a genuine 0.068 Ω
carrier and a confirmed 0.60 A/phase motor, Vref ≤0.326 V; start lower if the
mechanical load permits; remeasure after adjustment. Read carrier-specific
procedure if resistor value differs. Supply current is not motor phase current.

Limits: use independent normally-closed contacts for the two ends of each
axis, wired in ONE series loop per axis from its limit pin to Uno GND. With
input pull-ups and $5=1 an open switch or broken loop indicates a limit.
Tie unused Y-limit D10 to GND for this specific two-axis configuration. Any
rewiring to use Y requires removal of that link. Test open and closed input
state for both ends of both loops with motor power disabled, including the
actual pin state from Grbl's '?' status. Mechanical/harness pull-back must
clear each switch. Do not accept hard-limit operation if any wire or switch
fails this check.

Firmware selection and acceptance: select Uno R3 cpu map, stock variable-
spindle *pin mapping* (no spindle wired), no dual-axis. Configure homing to
use Z first then X only: in grbl/config.h set HOMING_CYCLE_0 to (1<<Z_AXIS)
and HOMING_CYCLE_1 to (1<<X_AXIS); omit additional homing cycles. Default
three-axis homing waits for an unused axis. Save tagged source/build ID and
'$$' settings with the instrument. Under this pin mapping Z-limit is D12;
changing VARIABLE_SPINDLE can move Z-limit to D11. Home direction ($23),
axis signs ($3) and travel limits ($130 X, $132 Z) must match the as-built
switch ends and hardware travel. Record positive movement on a physical ruler
and test a low-speed supervised home with the operator at disconnect. Verify
pull-off ($27), acceleration and safe rate. Enable/test homing ($22), hard
limits ($21) and soft limits ($20) before any unattended scan.

Full-step scales = motor full steps/rev × microstep divisor ÷ measured lead
(mm/rev). E.g. 1.8° and 2 mm/rev gives 100 steps/mm if BOTH are confirmed.
Set $100 X and $102 Z. Measure 10 and 50 mm test moves in each direction
under actual load. Measure repeatability at centre and corners, play after
reversal, gravitational slip, and settling after each supported move. Record
clean end-to-end cable sweep. Establish the transform from homed machine X/Z
to world X/Z with the receiver's optical centre; Grbl command/read-back gives
no encoder evidence. Independent observed positions remain null unless read.

For each qualified scan: command the world-to-stage coordinate; wait for motion
completion (controller Idle and target position checked, not just 'ok'), then
apply measured settling and issue a detector bracket. Record identifiers for
position and time. Stop the map on any alarm, missing conversion or state
mismatch; retain all partial points. Check motor heating and its effect on
the detector through a full reference map. Verify matching pre/post home
fiducial and bracketed reference scans. Sign off the actual motion/controller
adapter on a short line and corner return before investing in a full map.
This M1 specification does not qualify a turnkey two-axis product.

References: original module, selected driver, controller and source.
https://www.robotdigg.com/product/1629/NEMA11-lead-screw-stepper-motor-linear-module
https://www.pololu.com/product/1182
https://docs.arduino.cc/hardware/uno-rev3/
https://github.com/gnea/grbl/blob/v1.1h.20190825/grbl/cpu_map.h
https://github.com/gnea/grbl/blob/v1.1h.20190825/grbl/config.h
https://github.com/gnea/grbl/wiki/Grbl-v1.1-Configuration
