gokul/fieldkit-usb

USB-C-powered ESP32-S3 Wi-Fi/Bluetooth handheld with an SMD 128x32 OLED, six navigation buttons, USB-C power/data, complete checked routing, and four native schematic sheets.

Version
0.4.2
License
UNLICENSED
Stars
0

imports/X150_2828KSWKG01_H25.tsx

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

const pinLabels = {
  pin1: ["VSS1"],
  pin2: ["VCC1"],
  pin3: ["VCOMH"],
  pin4: ["NC1"],
  pin5: ["VDD"],
  pin6: ["NC2"],
  pin7: ["BS1"],
  pin8: ["BS2"],
  pin9: ["VSS2"],
  pin10: ["IREF"],
  pin11: ["N_CS"],
  pin12: ["N_RES"],
  pin13: ["D","C"],
  pin14: ["N_WR"],
  pin15: ["N_RD"],
  pin16: ["D0"],
  pin17: ["D1"],
  pin18: ["D2"],
  pin19: ["D3"],
  pin20: ["D4"],
  pin21: ["D5"],
  pin22: ["D6"],
  pin23: ["D7"],
  pin24: ["VCC2"],
  pin25: ["VSS3"]
} as const

const pinAttributes = {
  pin1: {requiresGround: true},
  pin2: {requiresPower: true},
  pin4: {doNotConnect: true},
  pin5: {requiresPower: true},
  pin6: {doNotConnect: true},
  pin9: {requiresGround: true},
  pin24: {requiresPower: true},
  pin25: {requiresGround: true}
} as const

export const X150_2828KSWKG01_H25 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      symbol={
        <symbol>
          <schematicrect schX={3.3} schY={0} width={7.6} height={5.2} strokeWidth={0.02} color="#880000" />
          <schematiccircle center={{ x: -0.4, y: 2.5 }} radius={0.03} strokeWidth={0.02} color="#880000" isFilled fillColor="#880000" />
          <port name="pin1" pinNumber={1} aliases={["VSS1"]} direction="left" schX={-0.7} schY={2.4} schStemLength={0.2} />
          <port name="pin2" pinNumber={2} aliases={["VCC1"]} direction="left" schX={-0.7} schY={2.2} schStemLength={0.2} />
          <port name="pin3" pinNumber={3} aliases={["VCOMH"]} direction="left" schX={-0.7} schY={2} schStemLength={0.2} />
          <port name="pin4" pinNumber={4} aliases={["NC1"]} direction="left" schX={-0.7} schY={1.8} schStemLength={0.2} />
          <port name="pin5" pinNumber={5} aliases={["VDD"]} direction="left" schX={-0.7} schY={1.6} schStemLength={0.2} />
          <port name="pin6" pinNumber={6} aliases={["NC2"]} direction="left" schX={-0.7} schY={1.4} schStemLength={0.2} />
          <port name="pin7" pinNumber={7} aliases={["BS1"]} direction="left" schX={-0.7} schY={1.2} schStemLength={0.2} />
          <port name="pin8" pinNumber={8} aliases={["BS2"]} direction="left" schX={-0.7} schY={1} schStemLength={0.2} />
          <port name="pin9" pinNumber={9} aliases={["VSS2"]} direction="left" schX={-0.7} schY={0.8} schStemLength={0.2} />
          <port name="pin10" pinNumber={10} aliases={["IREF"]} direction="left" schX={-0.7} schY={0.6} schStemLength={0.2} />
          <port name="pin11" pinNumber={11} aliases={["N_CS"]} direction="left" schX={-0.7} schY={0.4} schStemLength={0.2} />
          <port name="pin12" pinNumber={12} aliases={["N_RES"]} direction="left" schX={-0.7} schY={0.2} schStemLength={0.2} />
          <port name="pin13" pinNumber={13} aliases={["D","C"]} direction="left" schX={-0.7} schY={0} schStemLength={0.2} />
          <port name="pin14" pinNumber={14} aliases={["N_WR"]} direction="left" schX={-0.7} schY={-0.2} schStemLength={0.2} />
          <port name="pin15" pinNumber={15} aliases={["N_RD"]} direction="left" schX={-0.7} schY={-0.4} schStemLength={0.2} />
          <port name="pin16" pinNumber={16} aliases={["D0"]} direction="left" schX={-0.7} schY={-0.6} schStemLength={0.2} />
          <port name="pin17" pinNumber={17} aliases={["D1"]} direction="left" schX={-0.7} schY={-0.8} schStemLength={0.2} />
          <port name="pin18" pinNumber={18} aliases={["D2"]} direction="left" schX={-0.7} schY={-1} schStemLength={0.2} />
          <port name="pin19" pinNumber={19} aliases={["D3"]} direction="left" schX={-0.7} schY={-1.2} schStemLength={0.2} />
          <port name="pin20" pinNumber={20} aliases={["D4"]} direction="left" schX={-0.7} schY={-1.4} schStemLength={0.2} />
          <port name="pin21" pinNumber={21} aliases={["D5"]} direction="left" schX={-0.7} schY={-1.6} schStemLength={0.2} />
          <port name="pin22" pinNumber={22} aliases={["D6"]} direction="left" schX={-0.7} schY={-1.8} schStemLength={0.2} />
          <port name="pin23" pinNumber={23} aliases={["D7"]} direction="left" schX={-0.7} schY={-2} schStemLength={0.2} />
          <port name="pin24" pinNumber={24} aliases={["VCC2"]} direction="left" schX={-0.7} schY={-2.2} schStemLength={0.2} />
          <port name="pin25" pinNumber={25} aliases={["VSS3"]} direction="left" schX={-0.7} schY={-2.4} schStemLength={0.2} />
          <schematicrect schX={3.65} schY={0} width={6.1} height={4.2} strokeWidth={0.02} color="#000000" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C5123566"
  ]
}}
      manufacturerPartNumber="X150-2828KSWKG01-H25"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="0mm" pcbY="-7.799959mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="-7.149973mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0mm" pcbY="-6.499987mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="0mm" pcbY="-5.850001mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="0mm" pcbY="-5.200015mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="0mm" pcbY="-4.550029mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="0mm" pcbY="-3.900043mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="0mm" pcbY="-3.250057mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="0mm" pcbY="-2.600071mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="0mm" pcbY="-1.950085mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="0mm" pcbY="-1.299845mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="0mm" pcbY="-0.650113mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="0mm" pcbY="0.000127mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="0mm" pcbY="0.650113mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin15"]} pcbX="0mm" pcbY="1.300099mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="0mm" pcbY="1.950085mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin17"]} pcbX="0mm" pcbY="2.600071mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin18"]} pcbX="0mm" pcbY="3.250057mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin19"]} pcbX="0mm" pcbY="3.900043mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin20"]} pcbX="0mm" pcbY="4.550029mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin21"]} pcbX="0mm" pcbY="5.200015mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin22"]} pcbX="0mm" pcbY="5.850001mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin23"]} pcbX="0mm" pcbY="6.499987mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin24"]} pcbX="0mm" pcbY="7.149973mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<smtpad portHints={["pin25"]} pcbX="0mm" pcbY="7.799959mm" width="3.999992mm" height="0.3999992mm" shape="rect" />
<silkscreenpath route={[{"x":5.85000100000002,"y":-4.199966199999835},{"x":7.199934799999937,"y":-4.213224999999852}]} />
<silkscreenpath route={[{"x":5.85000100000002,"y":4.200017000000116},{"x":7.199934799999937,"y":4.194175000000087}]} />
<silkscreenpath route={[{"x":0,"y":9.500006400000075},{"x":3.8999922000000424,"y":9.500006400000075},{"x":5.85000100000002,"y":4.200017000000116}]} />
<silkscreenpath route={[{"x":0.015519399999902816,"y":-9.499955599999794},{"x":3.9155115999998316,"y":-9.499955599999794},{"x":5.85000100000002,"y":-4.199966199999835}]} />
<silkscreenpath route={[{"x":0.015519399999902816,"y":-9.499955599999794},{"x":3.2655256000000463,"y":-9.499955599999794}]} />
<silkscreenpath route={[{"x":0,"y":9.500006400000075},{"x":1.6366743999999471,"y":9.500006400000075}]} />
<silkscreenpath route={[{"x":0.015519399999902816,"y":-9.499955599999794},{"x":1.5858743999998524,"y":-9.499955599999794}]} />
<silkscreenpath route={[{"x":-30.09993980000013,"y":17.499965000000202},{"x":-30.09993980000013,"y":-16.499941600000056}]} />
<silkscreenpath route={[{"x":-30.09993980000013,"y":17.499965000000202},{"x":7.199934799999937,"y":17.499965000000202}]} />
<silkscreenpath route={[{"x":7.199934799999937,"y":17.499965000000202},{"x":7.199934799999937,"y":-16.499941600000056}]} />
<silkscreenpath route={[{"x":7.199985599999877,"y":-16.499941600000056},{"x":-30.09993980000013,"y":-16.499941600000056}]} />
<silkscreentext text="{NAME}" pcbX="-10.795mm" pcbY="18.498441mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-30.354918200000043,"y":17.700003200000083},{"x":8.75498679999987,"y":17.700003200000083},{"x":8.75498679999987,"y":-16.699928999999884},{"x":-30.354918200000043,"y":-16.699928999999884},{"x":-30.354918200000043,"y":17.700003200000083}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5123566.obj?uuid=686b2f8db15649bfbae1d643a388ecd6",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5123566.step?uuid=686b2f8db15649bfbae1d643a388ecd6",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 11.45496420000003, y: -0.5000371000000996, z: -0.21 },
      }}
      {...props}
    />
  )
}