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

imports/TPS1H100AQPWPRQ1.tsx

// Thermal land uses TI PWP0014K drawing 4229706/B: 2.60 x 2.59 mm.
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["NC3"],
  pin2: ["GND"],
  pin3: ["IN"],
  pin4: ["NC2"],
  pin5: ["OUT3"],
  pin6: ["OUT2"],
  pin7: ["OUT1"],
  pin8: ["VS3"],
  pin9: ["VS2"],
  pin10: ["VS1"],
  pin11: ["NC1"],
  pin12: ["DIAG_EN"],
  pin13: ["CL"],
  pin14: ["N_ST"],
  pin15: ["PAD"]
} as const

// TI TPS1H100-Q1 version A, pin-functions table. OUT is switched power; CL sets its limit.
const pinAttributes = {
  pin1: { doNotConnect: true },
  pin4: { doNotConnect: true },
  pin11: { doNotConnect: true },
  pin2: { requiresGround: true },
  pin15: { requiresGround: true },
  pin3: { isInput: true },
  pin12: { isInput: true },
  pin5: { providesPower: true },
  pin6: { providesPower: true },
  pin7: { providesPower: true },
  pin8: { requiresPower: true },
  pin9: { requiresPower: true },
  pin10: { requiresPower: true },
  pin13: { isOutput: true },
  pin14: { isOutput: true, isUsingOpenDrain: true },
} as const

export const TPS1H100AQPWPRQ1 = (props: ChipProps) => {
  const { name = "U11", ...restProps } = props

  return (
    <chip
      name={name}
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C478465"
  ]
}}
      manufacturerPartNumber="TPS1H100AQPWPRQ1"
      footprint={<footprint>
        <smtpad portHints={["pin14"]} pcbX="-1.949958mm" pcbY="3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin13"]} pcbX="-1.299972mm" pcbY="3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin12"]} pcbX="-0.649986mm" pcbY="3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin11"]} pcbX="-0mm" pcbY="3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin10"]} pcbX="0.649986mm" pcbY="3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin9"]} pcbX="1.299972mm" pcbY="3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="1.949958mm" pcbY="3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="1.949958mm" pcbY="-3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="1.299972mm" pcbY="-3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="0.649986mm" pcbY="-3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="-0mm" pcbY="-3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="-0.649986mm" pcbY="-3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-1.299972mm" pcbY="-3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin1"]} pcbX="-1.949958mm" pcbY="-3.200019mm" width="0.350012mm" height="1.5500096mm" radius="0.175006mm" shape="pill" />
{/* TI PWP0014K stencil example: full 2.60 × 2.59 mm exposed-pad aperture. */}
<smtpad portHints={["pin15"]} pcbX="-0mm" pcbY="-0.000127mm" width="2.60mm" height="2.59mm" shape="rect" solderPasteMargin={0} />
<silkscreenpath route={[{"x":-2.4638253999999904,"y":0.7873745999999926},{"x":-2.4638253999999904,"y":2.189962599999987},{"x":2.499969599999986,"y":2.189962599999987},{"x":2.499969599999986,"y":-2.1500084000000044},{"x":2.499969599999986,"y":-2.2000210000000067},{"x":2.006371400000006,"y":-2.2000210000000067}]} />
<silkscreenpath route={[{"x":1.893595399999981,"y":-2.2000210000000067},{"x":1.3563599999999951,"y":-2.2000210000000067}]} />
<silkscreenpath route={[{"x":1.2435839999999985,"y":-2.2000210000000067},{"x":0.7063485999999841,"y":-2.2000210000000067}]} />
<silkscreenpath route={[{"x":0.5935725999999875,"y":-2.2000210000000067},{"x":0.05636259999999993,"y":-2.2000210000000067}]} />
<silkscreenpath route={[{"x":-0.05641339999999673,"y":-2.2000210000000067},{"x":-0.5936488000000111,"y":-2.2000210000000067}]} />
<silkscreenpath route={[{"x":-0.7064247999999793,"y":-2.2000210000000067},{"x":-1.2436347999999953,"y":-2.2000210000000067}]} />
<silkscreenpath route={[{"x":-1.3564108000000203,"y":-2.2000210000000067},{"x":-1.8936462000000063,"y":-2.2000210000000067}]} />
<silkscreenpath route={[{"x":-2.006422200000003,"y":-2.2000210000000067},{"x":-2.4800306000000205,"y":-2.2000210000000067},{"x":-2.4800306000000205,"y":-0.8128253999999941}]} />
<silkscreenpath route={[{"x":-2.674645400000003,"y":-3.0480254},{"x":-2.823386455997678,"y":-3.1986674297039315},{"x":-2.6733753999999976,"y":-3.3480448240147354},{"x":-2.5233643440023457,"y":-3.1986674297039315},{"x":-2.672105400000021,"y":-3.0480254}]} />
<silkscreenpath route={[{"x":-2.4638253999999904,"y":-0.8128253999999941},{"x":-2.4638253999999904,"y":0.7873745999999926}]} />
<silkscreentext text="{NAME}" pcbX="-0.147828mm" pcbY="4.794379mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.0648280000000057,"y":4.044378999999992},{"x":2.769171999999969,"y":4.044378999999992},{"x":2.769171999999969,"y":-4.050220999999993},{"x":-3.0648280000000057,"y":-4.050220999999993},{"x":-3.0648280000000057,"y":4.044378999999992}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C478465.obj?uuid=69a24736388b4244b0737bbc9ab20e8a",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C478465.step?uuid=69a24736388b4244b0737bbc9ab20e8a",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: 0, z: -0.7 },
      }}
      {...restProps}
    />
  )
}