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

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

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

export const JstSwdUpward = ({ uartSilkscreenLabels, ...props }: ChipProps & { uartSilkscreenLabels?: readonly [string, string, string] }) => {
  return (
    <connector standard="jst_sh" pinCount={3}
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C160389"
  ]
}}
      manufacturerPartNumber="BM03B-SRSS-TB(LF)(SN)"
      footprint={<footprint>
        <smtpad portHints={[]} pcbX="-2.299843mm" pcbY="-1.2000103mm" width="1.1999976mm" height="1.7999964mm" shape="rect" />
<smtpad portHints={[]} pcbX="2.299843mm" pcbY="-1.1997563mm" width="1.1999976mm" height="1.7999964mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="1.000125mm" pcbY="1.3250037mm" width="0.5999988mm" height="1.5500096mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0.000127mm" pcbY="1.3250037mm" width="0.5999988mm" height="1.5500096mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-0.999871mm" pcbY="1.3250037mm" width="0.5999988mm" height="1.5500096mm" shape="rect" />
<silkscreenpath route={[{"x":-1.5002509999999347,"y":2.0260437000000593},{"x":-2.8007563999999547,"y":2.0260437000000593},{"x":-2.799816599999872,"y":-0.03752849999978025}]} />
<silkscreenpath route={[{"x":-2.8007563999999547,"y":-2.2741508999998814},{"x":2.8011374000002434,"y":-2.2741508999998814}]} />
<silkscreenpath route={[{"x":1.5001240000001417,"y":2.0625181000001476},{"x":2.800146800000107,"y":2.0625181000001476},{"x":2.800146800000107,"y":-0.03752849999978025}]} />
<silkscreencircle pcbX="1.524mm" pcbY="2.3484967mm" radius="0.127mm" />
<silkscreentext text="{NAME}" pcbX="-0.013843mm" pcbY={uartSilkscreenLabels ? 4.0 : 3.4829897} anchorAlignment="center" fontSize="1mm" />
{uartSilkscreenLabels && <silkscreentext text={uartSilkscreenLabels[0]} pcbX={1} pcbY={2.8} fontSize={0.5} />}
{uartSilkscreenLabels && <silkscreentext text={uartSilkscreenLabels[1]} pcbX={0} pcbY={2.8} fontSize={0.5} />}
{uartSilkscreenLabels && <silkscreentext text={uartSilkscreenLabels[2]} pcbX={-1} pcbY={2.8} fontSize={0.5} />}
<courtyardoutline outline={[{"x":-3.1594429999998965,"y":2.7329897000000756},{"x":3.131757000000107,"y":2.7329897000000756},{"x":3.131757000000107,"y":-2.5168102999997473},{"x":-3.1594429999998965,"y":-2.5168102999997473},{"x":-3.1594429999998965,"y":2.7329897000000756}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C160389.obj?uuid=bb01000407ec457b89090f9b882df046",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C160389.step?uuid=bb01000407ec457b89090f9b882df046",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: 1.0000000000002274, y: -0.43250299999996966, z: -0.01 },
      }}
      {...props}
    />
  )
}