astra/nema17-stepper-motor-controller-spring-clamp-rp2040

A 4-layer RP2040 controller board that negotiates USB‑C PD motor power and drives a NEMA17 stepper via a DRV8825, with current sensing, thermal shutdown, RGB status LED, buzzer alarm, optional AS5600 encoder, protection/filtering, and test points.

Version
1.4.0
License
unset
Stars
0

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>
    ))}
  </>
);