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

import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["pin1"],
  pin2: ["pin2"],
  pin3: ["pin3"],
  pin4: ["EH1"],
  pin5: ["EH2"]
} as const

// Mounting pattern corrected against Alps Drawing 2 and the KiCad library
// Potentiometer_Alps_RK09K_Single_Vertical: 8.8 mm tab centers, 7 mm row offset.
export const RK09K1130A8G = (props: ChipProps<typeof pinLabels>) => {
  return (
    <potentiometer
      maxResistance="10k" pinVariant="three_pin"
      pinAttributes={{ pin4: { doNotConnect: true }, pin5: { doNotConnect: true } }}
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <schematictext text="{NAME}" schX={0.8} schY={1.2} fontSize={0.22} anchor="left" />
          <schematictext text="10k / RK09K1130A8G" schX={0.8} schY={0.85} fontSize={0.18} anchor="left" />
          <schematicpath points={[{"x":-0.6,"y":-0.2},{"x":0.6,"y":-0.2}]} strokeColor="#880000" />
          <port name="pin5" pinNumber={5} aliases={["EH2","EH"]} direction="right" schX={0.8} schY={-0.2} schStemLength={0.2} />
          <port name="pin4" pinNumber={4} aliases={["EH1","EH"]} direction="left" schX={-0.8} schY={-0.2} schStemLength={0.2} />
          <schematicrect schX={0} schY={0} width={0.6} height={0.2} strokeWidth={0.02} color="#880000" />
          <schematicpath points={[{"x":-0.3,"y":0},{"x":-0.6,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.3,"y":0},{"x":0.6,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":0.2},{"x":0,"y":0.2},{"x":0,"y":0.1},{"x":0.02,"y":0.18}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":0.1},{"x":-0.02,"y":0.18}]} strokeColor="#880000" />
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="right" schX={0.8} schY={0} schStemLength={0.2} />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="up" schX={0} schY={0.4} schStemLength={0.2} />
          <port name="pin3" pinNumber={3} aliases={["3"]} direction="left" schX={-0.8} schY={0} schStemLength={0.2} />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C470294"
  ]
}}
      manufacturerPartNumber="RK09K1130A8G"
      footprint={<footprint>
        <platedhole  portHints={["pin1"]} pcbX="-2.499868mm" pcbY="-3.09999385mm" outerDiameter="1.6999966mm" holeDiameter="1.1000232mm" shape="circle" />
<platedhole  portHints={["pin2"]} pcbX="0mm" pcbY="-3.09999385mm" outerDiameter="1.6999966mm" holeDiameter="1.1000232mm" shape="circle" />
<platedhole  portHints={["pin3"]} pcbX="2.500122mm" pcbY="-3.09999385mm" outerDiameter="1.6999966mm" holeDiameter="1.1000232mm" shape="circle" />
<platedhole  portHints={["pin4"]} pcbX="4.4mm" pcbY="3.89999215mm" holeWidth="1.8mm" holeHeight="2.1mm" outerWidth="3mm" outerHeight="4mm" shape="pill" />
<platedhole  portHints={["pin5"]} pcbX="-4.4mm" pcbY="3.89999215mm" holeWidth="1.8mm" holeHeight="2.1mm" outerWidth="3mm" outerHeight="4mm" shape="pill" />
<silkscreenpath route={[{"x":-4.8999902000000475,"y":9.400158950000105},{"x":4.899990199999934,"y":9.400133550000078}]} />
<silkscreenpath route={[{"x":4.899990199999934,"y":9.400133550000078},{"x":4.899990199999934,"y":5.778372950000062}]} />
<silkscreenpath route={[{"x":4.899990199999934,"y":2.0218907500002388},{"x":4.899990199999934,"y":-2.5998678499997823}]} />
<silkscreenpath route={[{"x":-4.8999902000000475,"y":9.400133550000078},{"x":-4.8999902000000475,"y":5.778372950000062}]} />
<silkscreenpath route={[{"x":-4.8999902000000475,"y":2.0218907500002388},{"x":-4.8999902000000475,"y":-2.5998678499997823}]} />
<silkscreenpath route={[{"x":-4.8999902000000475,"y":-2.5998678499997823},{"x":-3.498240399999986,"y":-2.5998678499997823}]} />
<silkscreenpath route={[{"x":-1.5817596000001686,"y":-2.5998678499997823},{"x":-0.9582404000000224,"y":-2.5998678499997823}]} />
<silkscreenpath route={[{"x":0.9582403999999087,"y":-2.5998678499997823},{"x":1.5817596000000549,"y":-2.5998678499997823}]} />
<silkscreenpath route={[{"x":4.899990199999934,"y":-2.5998678499997823},{"x":3.498240399999986,"y":-2.5998678499997823}]} />
<silkscreenpath route={[{"x":-0.2540000000001328,"y":6.877126150000095},{"x":-0.2540000000001328,"y":5.353126150000094},{"x":0.2540000000000191,"y":5.353126150000094},{"x":0.2540000000000191,"y":6.877126150000095}]} />
<silkscreencircle pcbX="0mm" pcbY="3.89999215mm" radius="2.999994mm" />
<silkscreencircle pcbX="-3.302mm" pcbY="7.89312615mm" radius="0.718312mm" />
<silkscreencircle pcbX="3.302mm" pcbY="7.89312615mm" radius="0.718312mm" />
<silkscreencircle pcbX="-3.302mm" pcbY="-0.99687385mm" radius="0.718312mm" />
<silkscreencircle pcbX="3.302mm" pcbY="-0.99687385mm" radius="0.718312mm" />
<silkscreencircle pcbX="-4.2899838mm" pcbY="-3.31000105mm" radius="0.2641854mm" />
<silkscreentext text="{NAME}" pcbX="-0.0127mm" pcbY="10.39274215mm" anchorAlignment="center" fontSize="1mm" />
<courtyardrect pcbX={0} pcbY={2.6} width={12.3} height={14.6} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C470294.obj?uuid=0f200d0c8be74b5a8484cb8b3a00a62d",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C470294.step?uuid=0f200d0c8be74b5a8484cb8b3a00a62d",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.000012699999842880061, y: -1.813486850000154, z: 12.499991999999999 },
      }}
      {...props}
    />
  )
}