imrishabh18/nema17-motor-controller-flex

An RP2040-based USB‑C/USB‑PD controller board that powers and drives a NEMA17 stepper via a DRV8825, with current/temperature/voltage monitoring, optional AS5600 encoder, buzzer/RGB status indicators, QSPI flash, and flexible motor/encoder connections.

Version
1.2.0
License
unset
Stars
0

mechanical/Nema17Assembly.tsx

import { assembly } from "@tscircuit/core";

// 17HS15-1704S envelope from the manufacturer's product specification.
// The native model's cap details and JST shroud remain illustrative.
export const nema17Model = "nema17_l37.5mm_bodywidth42mm_shaftdiameter5mm_shaftlength22mm_jstph6_wireangle180deg";

// Nominal preview spacer gap, chosen to put the model header near the folded
// socket height. It is not a measured motor/PCB mounting dimension.
export const motorMountGap = (21.1499958 + 20) - (27 + 4.4 + 0.1) + 2 * (1 - Math.PI / 4) * 5 - 0.1 - 2.5;

/** Native assembly CAD only: no PCB footprint, pads or routing. The board's
 * mountedTo/mountOrientation place its underside toward this motor's rear face.
 */
export const Nema17Assembly = () => <assembly.motor name="NEMA17"
  displayName="17HS15-1704S reference" model={nema17Model} />;