imrishabh18/rp2040-motor-controller

An RP2040-based NEMA17 stepper-motor controller with USB-C programming and PD motor-power negotiation, DRV8825 dual H-bridge drive, current/temperature telemetry, protected power filtering, status RGB LED, buzzer alarm, and optional magnetic encoder.

Version
1.0.41
License
unset
Stars
3

schematic/ProductionTestPoints.tsx

import placement from "../mechanical/next-placement.json";

/** Probe the negotiated PD rail and the post-fuse / reverse-blocking motor rail independently. */
export const ProductionTestPoints = () => (
  <>
    {([
      ["TP_PD", "PD", ".J_MOTOR_USB > .A4B9", 10.8, -7],
      ["TP_VMOTOR", "VMOTOR", ".D_MOTOR_BLOCK > .cathode", 14, -7],
      ["TP_PD_GND", "GND", "net.GND", 12, -10],
    ] as const).map(([name, label, target, schX, schY]) => (
      <group key={name} pcbX={0} pcbY={0}>
        <testpoint name={name} footprintVariant="pad" padShape="circle"
          padDiameter="1.5mm" layer="top" pcbStyle={{silkscreenTextVisibility:"hidden"}} {...placement[name]}
          schSheetName="motor_power" schX={schX} schY={schY} />
        <trace name={`${name}_TRACE`} from={`.${name} > .pin1`} to={target}
          schDisplayLabel={label} thickness="0.2mm" />
        <silkscreentext text={label} pcbX={placement[name].pcbX}
          pcbY={placement[name].pcbY + 1.1} fontSize="0.65mm" />
      </group>
    ))}
  </>
);