AnasSarkiz/rp2040-usb-c-single-axis-dm542t-motion-controller--01a0e89c

A USB‑C RP2040 controller board with external QSPI flash, crystal clock, regulated 3.3/1.1/5 V power, boost-converted motor-driver supply, protected USB and limit inputs, status LEDs, reset/boot switches, and AO3400A MOSFET outputs for stepper-control signals.

Version
0.1.0-prototype.19
License
unset
Stars
0

lib/symbol-clockcrystal.tsx

import { ABM8_272_T3 } from "../imports/ABM8_272_T3"

// Wider native symbol separates the grounded case-pin labels from the crystal.
// Catalog pin numbers and the PCB footprint remain unchanged.
export function ClockCrystal(props: Parameters<typeof ABM8_272_T3>[0]) {
  return (
    <ABM8_272_T3
      {...props}
      symbol={
        <symbol>
          <port
            name="pin1"
            pinNumber={1}
            aliases={["1"]}
            direction="left"
            schX={-1.2}
            schY={-0.3}
            schStemLength={0.2}
          />
          <port
            name="pin3"
            pinNumber={3}
            aliases={["3"]}
            direction="right"
            schX={1.2}
            schY={0.3}
            schStemLength={0.2}
          />
          <port
            name="pin4"
            pinNumber={4}
            aliases={["GND2", "GND"]}
            direction="left"
            schX={-1.2}
            schY={0.3}
            schStemLength={0.2}
          />
          <port
            name="pin2"
            pinNumber={2}
            aliases={["GND1", "GND"]}
            direction="right"
            schX={1.2}
            schY={-0.3}
            schStemLength={0.2}
          />
          <schematicrect
            schX={0}
            schY={0}
            width={2}
            height={1.2}
            strokeWidth={0.02}
            color="#880000"
          />
          <schematiccircle
            center={{ x: -0.9, y: -0.5 }}
            radius={0.03}
            strokeWidth={0.02}
            color="#880000"
            isFilled
            fillColor="#880000"
          />
          <schematicpath
            points={[
              { x: -0.1, y: -0.14 },
              { x: -0.1, y: 0.14 },
            ]}
            strokeColor="#881100"
          />
          <schematicpath
            points={[
              { x: 0.1, y: -0.14 },
              { x: 0.1, y: 0.14 },
            ]}
            strokeColor="#881100"
          />
          <schematicpath
            points={[
              { x: -1, y: -0.3 },
              { x: -0.2, y: -0.3 },
              { x: -0.2, y: 0 },
              { x: -0.1, y: 0 },
            ]}
            strokeColor="#880000"
          />
          <schematicpath
            points={[
              { x: 1, y: 0.3 },
              { x: 0.2, y: 0.3 },
              { x: 0.2, y: 0 },
              { x: 0.1, y: 0 },
            ]}
            strokeColor="#880000"
          />
          <schematicrect
            schX={0}
            schY={0}
            width={0.08}
            height={0.28}
            strokeWidth={0.02}
            color="#880000"
          />
          <schematictext
            text={props.name}
            schX={0}
            schY={0.9}
            fontSize={0.18}
          />
        </symbol>
      }
    />
  )
}