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/MotorOutputsSection.tsx

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

export const MotorOutputConnectors = () => (
	<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="J1"
		pcbPinLabels={{
			pin1: "A+",
			pin2: "A-",
			pin3: "B+",
			pin4: "B-",
		}}
		pcbX={22.625}
		pcbY={3.6}
		pcbRotation={90}
		schPinArrangement={{
			leftSide: { pins: [1, 2, 3, 4], direction: "top-to-bottom" },
		}}
		schSheetName={schematicSheets.motorDriver}
		schSectionName={schematicSections.motorOutputs}
	/>
);

export const MotorOutputTraces = () => (
	<>
		{/* Reserve room for the wider motor routes before the remaining signals. */}
		<trace
			name="MOTOR_A_PLUS"
			from=".DRIVER > .AOUT1"
			to=".R_PHASE_A > .pin1"
			schDisplayLabel="A_DRIVE"
			{...motorTrace}
		/>
		<trace
			name="MOTOR_A_MINUS"
			from=".DRIVER > .AOUT2"
			to=".J1 > .pin2"
			schDisplayLabel="A-"
			{...motorTrace}

		/>
		<trace
			name="MOTOR_B_PLUS"
			from=".DRIVER > .BOUT1"
			to=".R_PHASE_B > .pin1"
			schDisplayLabel="B_DRIVE"
			{...motorTrace}
		/>
		<trace
			name="MOTOR_B_MINUS"
			from=".DRIVER > .BOUT2"
			to=".J1 > .pin4"
			schDisplayLabel="B-"
			{...motorTrace}
		/>
	</>
);