Devesh36/pocket-audio-player

A portable, rechargeable microSD audio player built around an RP2040, SPI flash, USB‑C charging/power management, LCD/button controls, PCM5102A I²S DAC, and TPA6132A headphone amplifier in a 3D‑printed enclosure.

Version
1.0.12
License
unset
Stars
0

imports/PJ_320A.tsx

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

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

export const PJ_320A = (props: ConnectorProps) => {
  return (
    <connector
      pinLabels={pinLabels}
      pinAttributes={{pin2:{isPassive:true},pin3:{isPassive:true},pin4:{isPassive:true},pin5:{isPassive:true}}}
      symbol={
        <symbol>
          <schematicpath points={[{"x":0,"y":0.2},{"x":-0.8,"y":0.2},{"x":-0.8,"y":0}]} strokeColor="#880000" />
          <schematicrect schX={-0.8} schY={-0.18} width={0.12} height={0.36} strokeWidth={0.02} color="#880000" />
          <port name="pin3" pinNumber={3} aliases={["3"]} direction="right" schX={0.4} schY={-0.2} schStemLength={0.4} />
          <port name="pin4" pinNumber={4} aliases={["4"]} direction="right" schX={0.4} schY={0} schStemLength={0.4} />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={0.4} schY={-0.4} schStemLength={0.4} />
          <schematicpath points={[{"x":0,"y":-0.4},{"x":-0.54,"y":-0.4},{"x":-0.58,"y":-0.32},{"x":-0.62,"y":-0.4}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":0},{"x":-0.36,"y":0},{"x":-0.4,"y":-0.08},{"x":-0.44,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.2,"y":-0.2},{"x":-0.26,"y":-0.2},{"x":-0.3,"y":-0.12},{"x":-0.34,"y":-0.2}]} strokeColor="#880000" />
          <port name="pin5" pinNumber={5} aliases={["5"]} direction="right" schX={0.4} schY={0.2} schStemLength={0.4} />
          <schematictext schX={-0.22} schY={0.62} text="{NAME}" fontSize={0.2} anchor="bottom_center" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C22355837"
  ]
}}
      manufacturerPartNumber="PJ-320A"
      footprint={<footprint insertionDirection="from_left">
        <hole pcbX="2.1249957mm" pcbY="-0.0000508mm" diameter="1.1999976mm" />
<hole pcbX="-4.8749903mm" pcbY="-0.0000508mm" diameter="1.1999976mm" />
<platedhole  portHints={["pin5"]} pcbX="5.4249891mm" pcbY="-2.099945mm" holeWidth="0.5000244mm" holeHeight="1.499997mm" outerWidth="0.999998mm" outerHeight="1.999996mm" pcbRotation="90deg" shape="pill" />
<platedhole  portHints={["pin4"]} pcbX="3.9250937mm" pcbY="2.099945mm" holeWidth="0.5000244mm" holeHeight="1.499997mm" outerWidth="0.999998mm" outerHeight="1.999996mm" pcbRotation="90deg" shape="pill" />
<platedhole  portHints={["pin3"]} pcbX="-0.0748983mm" pcbY="2.099945mm" holeWidth="0.5000244mm" holeHeight="1.499997mm" outerWidth="0.999998mm" outerHeight="1.999996mm" pcbRotation="90deg" shape="pill" />
<platedhole  portHints={["pin2"]} pcbX="-3.0748923mm" pcbY="2.099945mm" holeWidth="0.5000244mm" holeHeight="1.499997mm" outerWidth="0.999998mm" outerHeight="1.999996mm" pcbRotation="90deg" shape="pill" />
<silkscreenpath route={[{"x":-8.274983499999962,"y":2.9999431999999615},{"x":5.9249880999999505,"y":2.9999431999999615}]} />
<silkscreenpath route={[{"x":5.9249880999999505,"y":-1.5675355999999283},{"x":5.9249880999999505,"y":2.9999431999999615}]} />
<silkscreenpath route={[{"x":-8.274983499999962,"y":-3.000044799999955},{"x":5.9249880999999505,"y":-3.000044799999955},{"x":5.9249880999999505,"y":-2.6325575999999273}]} />
<silkscreenpath route={[{"x":-6.374987300000043,"y":2.9999431999999615},{"x":-6.374987300000043,"y":-3.000044799999955}]} />
<silkscreenpath route={[{"x":-8.274983499999962,"y":2.9999431999999615},{"x":-8.274983499999962,"y":-3.000044799999955}]} />
<silkscreentext text="{NAME}" pcbX="-1.2300903mm" pcbY="4.001899mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-8.62490709999986,"y":3.2499939999999015},{"x":6.674987100000067,"y":3.2499939999999015},{"x":6.674987100000067,"y":-3.249994000000015},{"x":-8.62490709999986,"y":-3.249994000000015},{"x":-8.62490709999986,"y":3.2499939999999015}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22355837.obj?uuid=72b8d2110ba6473f89e0f4ee3dbb5095",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22355837.step?uuid=72b8d2110ba6473f89e0f4ee3dbb5095",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 6.774921399999971, y: 0.000050000000000105516, z: -2.500006 },
      }}
      {...props}
    />
  )
}