MustafaMulla29/rp2040-bldc-motor-controller-new

A USB‑C PD–powered RP2040 BLDC motor controller PCB with 3.3 V logic, MCT8329A sensorless commutation, three MOSFET half-bridges, protected power switching, USB data, controls, and motor connectors.

Version
0.3.82
License
unset
Stars
0

circuit/usb-c-footprint.tsx

/** Manufacturer-checked HRO TYPE-C-31-M-12 land pattern (C165948).
 * The native <connector standard="usb_c"> supplies the schematic symbol.
 * Numeric pad IDs retain the existing physical pin map and validated routing.
 * See docs/usb-footprint-review.md for dimensions and source drawing.
 */
export const usbCPinLabels = {
  pin1: ["SHIELD2","EH2","SHELL2"],
  pin2: ["SHIELD1","EH1","SHELL1"],
  pin3: ["SHIELD4","EH4","SHELL4"],
  pin4: ["SHIELD3","EH3","SHELL3"],
  pin5: ["SBU2","B8"],
  pin6: ["CC1","A5"],
  pin7: ["DN2","B7","DM2"],
  pin8: ["DP1","A6"],
  pin9: ["DN1","A7","DM1"],
  pin10: ["DP2","B6"],
  pin11: ["SBU1","A8"],
  pin12: ["CC2","B5"],
  pin13: ["GND1","A1B12"],
  pin14: ["GND2","B1A12"],
  pin15: ["VBUS1","B4A9"],
  pin16: ["VBUS2","A4B9"]
} as const


export const usbCFootprint = <footprint>
        <hole pcbX="-2.89mm" pcbY="0.9055672mm" diameter="0.6mm" />
        <hole pcbX="2.89mm" pcbY="0.9055672mm" diameter="0.6mm" />
        <platedhole portHints={["pin2"]} pcbX="4.325mm" pcbY="-2.7744328mm" holeWidth="0.6mm" holeHeight="1.4mm" outerWidth="0.9mm" outerHeight="1.7mm" shape="pill" />
        <platedhole portHints={["pin1"]} pcbX="4.325mm" pcbY="1.4055672mm" holeWidth="0.6mm" holeHeight="1.7mm" outerWidth="0.9mm" outerHeight="2mm" shape="pill" />
        <platedhole portHints={["pin4"]} pcbX="-4.325mm" pcbY="1.4055672mm" holeWidth="0.6mm" holeHeight="1.7mm" outerWidth="0.9mm" outerHeight="2mm" shape="pill" />
        <platedhole portHints={["pin3"]} pcbX="-4.325mm" pcbY="-2.7744328mm" holeWidth="0.6mm" holeHeight="1.4mm" outerWidth="0.9mm" outerHeight="1.7mm" shape="pill" />
        <smtpad portHints={["pin5"]} pcbX="-1.75mm" pcbY="1.9755672mm" width="0.3mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin6"]} pcbX="-1.25mm" pcbY="1.9755672mm" width="0.3mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin7"]} pcbX="-0.75mm" pcbY="1.9755672mm" width="0.3mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin8"]} pcbX="-0.25mm" pcbY="1.9755672mm" width="0.3mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin9"]} pcbX="0.25mm" pcbY="1.9755672mm" width="0.3mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin10"]} pcbX="0.75mm" pcbY="1.9755672mm" width="0.3mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin11"]} pcbX="1.25mm" pcbY="1.9755672mm" width="0.3mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin12"]} pcbX="1.75mm" pcbY="1.9755672mm" width="0.3mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin13"]} pcbX="-3.2mm" pcbY="1.9755672mm" width="0.6mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin14"]} pcbX="3.2mm" pcbY="1.9755672mm" width="0.6mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin15"]} pcbX="2.4mm" pcbY="1.9755672mm" width="0.6mm" height="1.14mm" shape="rect" />
        <smtpad portHints={["pin16"]} pcbX="-2.4mm" pcbY="1.9755672mm" width="0.6mm" height="1.14mm" shape="rect" />
<silkscreenpath route={[{"x":-4.4689776000000165,"y":-1.6757585999999947},{"x":-4.4689776000000165,"y":0.18715359999987413}]} />
<silkscreenpath route={[{"x":4.471009600000116,"y":-5.394140800000059},{"x":-4.4689776000000165,"y":-5.394140800000059},{"x":-4.4689776000000165,"y":-3.91283820000001}]} />
<silkscreenpath route={[{"x":4.471009600000116,"y":-1.676114200000029},{"x":4.471009600000116,"y":0.18750920000002225}]} />
<silkscreenpath route={[{"x":4.471009600000116,"y":-5.394140800000059},{"x":4.471009600000116,"y":-3.912482600000203}]} />

<courtyardoutline outline={[{"x":-5.174805999999876,"y":3.0786011999998664},{"x":5.180394000000092,"y":3.0786011999998664},{"x":5.180394000000092,"y":-5.650998800000025},{"x":-5.174805999999876,"y":-5.650998800000025},{"x":-5.174805999999876,"y":3.0786011999998664}]} />
      </footprint>

export const usbCCadModel = {
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.obj?uuid=617b05f9bba7410b96c001093d8189e4",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.step?uuid=617b05f9bba7410b96c001093d8189e4",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: 0, y: -2.7500289000000517, z: 0.000010999999999872223 },
      }