tscircuit/standard-jst-programmer

26 × 42 mm USB-C RP2040 programmer with JST and TC2030 IDC SWD, NRST, selectable sensed 5 V / 3.3 V power, RGB status, and importable JST SH/Tag-Connect targets. Top-side assembly.

Version
0.8.0
License
unset
Stars
0

footprints/PowerSelector.tsx

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

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

export const JS102011SAQN = (props: SwitchProps) => {
  const { name = "SW1", ...restProps } = props

  return (
    <switch spdt
      symbol={<symbol width={2} height={1.2}>
        <port name="pin2" pinNumber={2} schX={-1} schY={0} direction="left" />
        <port name="pin3" pinNumber={3} schX={1} schY={0.4} direction="right" />
        <port name="pin1" pinNumber={1} schX={1} schY={-0.4} direction="right" />
        <schematicpath points={[{x:-1,y:0},{x:-0.4,y:0},{x:0.3,y:0.3}]} />
        <schematicpath points={[{x:0.4,y:0.4},{x:1,y:0.4}]} />
        <schematicpath points={[{x:0.4,y:-0.4},{x:1,y:-0.4}]} />
        <schematictext text="SW_PWR" schX={0} schY={0.85} fontSize={0.22} />
      </symbol>}
      name={name}
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C221660"
  ]
}}
      manufacturerPartNumber="JS102011SAQN"
      footprint={<footprint>
        <hole pcbX="-3.400044mm" pcbY="-1.75002825mm" diameter="0.999998mm" />
<hole pcbX="3.400044mm" pcbY="-1.75002825mm" diameter="0.999998mm" />
<smtpad portHints={["pin1"]} pcbX="-2.499995mm" pcbY="1.00002975mm" width="1.1999976mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="1.00002975mm" width="1.1999976mm" height="2.499995mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="2.499995mm" pcbY="1.00002975mm" width="1.1999976mm" height="2.499995mm" shape="rect" />
<silkscreenpath route={[{"x":-0.20398740000007365,"y":-5.56396524999991},{"x":-0.20398740000007365,"y":-3.5319652499999847}]} />
<silkscreenpath route={[{"x":-1.7279874000000746,"y":-5.56396524999991},{"x":-0.20398740000007365,"y":-5.56396524999991}]} />
<silkscreenpath route={[{"x":-1.7279874000000746,"y":-3.5319652499999847},{"x":-1.7279874000000746,"y":-5.56396524999991}]} />
<silkscreenpath route={[{"x":4.5000164000000495,"y":-3.5500500499999816},{"x":-4.5000164000000495,"y":-3.550024649999955}]} />
<silkscreenpath route={[{"x":-4.5000164000000495,"y":-3.5500500499999816},{"x":-4.5000164000000495,"y":0.04996815000004062}]} />
<silkscreenpath route={[{"x":4.5000164000000495,"y":0.04999354999995376},{"x":4.5000164000000495,"y":-3.550024649999955}]} />
<silkscreenpath route={[{"x":-4.5000164000000495,"y":0.04996815000004062},{"x":-3.371138799999926,"y":0.04996815000004062}]} />
<silkscreenpath route={[{"x":-1.7088612000001149,"y":0.04996815000004062},{"x":-0.8311388000000761,"y":0.04996815000004062}]} />
<silkscreenpath route={[{"x":0.8311387999999624,"y":0.04996815000004062},{"x":1.7088612000000012,"y":0.04996815000004062}]} />
<silkscreenpath route={[{"x":3.371138799999926,"y":0.04996815000004062},{"x":4.5000164000000495,"y":0.04996815000004062}]} />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="3.23777175mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-0.21600160000002688,"y":-5.527948049999964},{"x":-0.21600160000002688,"y":-3.5719448500000226},{"x":-0.2279903999999533,"y":-3.5599560499999825},{"x":-1.6799813999999742,"y":-3.5599560499999825},{"x":-1.6919956000000411,"y":-3.5719702499999357},{"x":-1.6919956000000411,"y":-5.49195624999993},{"x":-1.667992599999934,"y":-5.5159592499999235},{"x":-0.21600160000002688,"y":-5.527948049999964}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-4.771200000000135,"y":2.487771749999979},{"x":4.771199999999908,"y":2.487771749999979},{"x":4.771199999999908,"y":-5.83542824999995},{"x":-4.771200000000135,"y":-5.83542824999995},{"x":-4.771200000000135,"y":2.487771749999979}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C221660.obj?uuid=d337b619ac8046ecb63111370d25527b",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C221660.step?uuid=d337b619ac8046ecb63111370d25527b",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: 1.7459756499999777, z: -0.8000016000000002 },
      }}
      {...restProps}
    />
  )
}