seveibar/pd-dual-stepper-controller

Bottom-side PCB silkscreen artwork consisting of embedded mirrored TS Circuit SVG logos, with via-clearance-aware lower-board placement.

Version
0.1.0
License
unset
Stars
0

schematic/Motor2OutputsSection.tsx

import { SideEntryJstPh4Footprint, SideEntryJstPh4Cad } from "../imports/SideEntryJstPh4";
import { motorTrace, schematicSections, schematicSheets } from "./config";

export const Motor2OutputConnector = () => (
	<connector
    cadModel={SideEntryJstPh4Cad}
    footprint={<SideEntryJstPh4Footprint />}
    manufacturerPartNumber="S4B-PH-K-S(LF)(SN)"
    pinLabels={{pin1:["A_PLUS"],pin2:["A_MINUS"],pin3:["B_PLUS"],pin4:["B_MINUS"]}}
		name="J2"
		pcbPinLabels={{
			pin1: "A+",
			pin2: "A-",
			pin3: "B+",
			pin4: "B-",
		}}
		pcbX={52.625}
		pcbY={3.6}
		pcbRotation={90}
		schPinArrangement={{
			leftSide: { pins: [1, 2, 3, 4], direction: "top-to-bottom" },
		}}
		schSheetName={"motor_2"}
		schSectionName={"motor_2_outputs"}
	/>
);

export const Motor2OutputTraces = () => <>
  {(["AOUT1", "AOUT2", "BOUT1", "BOUT2"] as const).map((pin,i) =>
    <trace key={pin} name={`M2_OUTPUT_${i+1}`} from={`.DRIVER_M2 > .${pin}`}
      to={`.J2 > .pin${i+1}`} schDisplayLabel={`M2_${pin}`} {...motorTrace}/>
  )}
</>;