seveibar/spi-display-webcam-interceptor

This collection of code defines various hardware components, including an crystal oscillator, microcontroller, voltage regulators, inductors, connectors, and logic gates, each represented with physical footprint, pin configurations, and 3D CAD models for PCB design and integration.

Version
1.0.12
License
unset
Stars
0

imports/W25Q128JVSIQ.tsx

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

const pinLabels = {
  pin1: ["CS"],
  pin2: ["DO"],
  pin3: ["IO2"],
  pin4: ["GND"],
  pin5: ["DI"],
  pin6: ["CLK"],
  pin7: ["IO3"],
  pin8: ["VCC"]
} as const

const pinAttributes = {
  pin1: { capabilities: ["spi_cs"], mustBeConnected: true },
  pin2: { capabilities: ["spi_miso"], mustBeConnected: true },
  pin3: { mustBeConnected: true },
  pin4: { requiresGround: true, mustBeConnected: true },
  pin5: { capabilities: ["spi_mosi"], mustBeConnected: true },
  pin6: { capabilities: ["spi_sck"], mustBeConnected: true },
  pin7: { mustBeConnected: true },
  pin8: { requiresPower: true, requiresVoltage: "3.3V", mustBeConnected: true },
} as NonNullable<ChipProps<typeof pinLabels>["pinAttributes"]>

export const W25Q128JVSIQ = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C97521"
  ]
}}
      manufacturerPartNumber="W25Q128JVSIQ"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-1.905mm" pcbY="-3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-0.635mm" pcbY="-3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="0.635mm" pcbY="-3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="1.905mm" pcbY="-3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="-1.905mm" pcbY="3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="-0.635mm" pcbY="3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="0.635mm" pcbY="3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="1.905mm" pcbY="3.530092mm" width="0.6299962mm" height="2.2500082mm" radius="0.3149981mm" shape="pill" />
<silkscreenpath route={[{"x":-2.6387044000000515,"y":-2.1763989999999467},{"x":-2.6387044000000515,"y":2.1763990000000604},{"x":2.6387044000000515,"y":2.1763990000000604},{"x":2.6387044000000515,"y":-2.1763989999999467},{"x":-2.6387044000000515,"y":-2.1763989999999467}]} />
<silkscreenpath route={[{"x":-1.7548859999999422,"y":-1.4239240000000564},{"x":-1.7600010105124966,"y":-1.4627763621365375},{"x":-1.774997462536362,"y":-1.4989810000000716},{"x":-1.7988533726489777,"y":-1.5300706273510514},{"x":-1.8299429999999575,"y":-1.5539265374637807},{"x":-1.866147637863378,"y":-1.5689229894875325},{"x":-1.9050000000000864,"y":-1.5740379999999732},{"x":-1.9438523621365675,"y":-1.5689229894875325},{"x":-1.980056999999988,"y":-1.5539265374637807},{"x":-2.0111466273510814,"y":-1.5300706273510514},{"x":-2.035002537463697,"y":-1.4989810000000716},{"x":-2.049998989487449,"y":-1.4627763621365375},{"x":-2.055114000000003,"y":-1.4239240000000564},{"x":-2.049998989487449,"y":-1.3850716378634615},{"x":-2.035002537463697,"y":-1.3488669999999274},{"x":-2.0111466273510814,"y":-1.3177773726490614},{"x":-1.980056999999988,"y":-1.2939214625364457},{"x":-1.9438523621365675,"y":-1.2789250105124665},{"x":-1.9050000000000864,"y":-1.2738100000000259},{"x":-1.866147637863378,"y":-1.2789250105124665},{"x":-1.8299429999999575,"y":-1.2939214625364457},{"x":-1.7988533726489777,"y":-1.3177773726490614},{"x":-1.774997462536362,"y":-1.3488669999999274},{"x":-1.7600010105124966,"y":-1.3850716378634615},{"x":-1.7548859999999422,"y":-1.4239240000000564}]} />
<silkscreenpath route={[{"x":-2.522220000000061,"y":-3.5300920000000815},{"x":-2.5273350105126156,"y":-3.5689443621365626},{"x":-2.542331462536481,"y":-3.605148999999983},{"x":-2.5661873726490967,"y":-3.6362386273510765},{"x":-2.5972770000000764,"y":-3.660094537463692},{"x":-2.633481637863497,"y":-3.675090989487444},{"x":-2.6723340000000917,"y":-3.6802059999999983},{"x":-2.7111863621366865,"y":-3.675090989487444},{"x":-2.747391000000107,"y":-3.660094537463692},{"x":-2.7784806273510867,"y":-3.6362386273510765},{"x":-2.802336537463816,"y":-3.605148999999983},{"x":-2.817332989487568,"y":-3.5689443621365626},{"x":-2.822448000000122,"y":-3.5300920000000815},{"x":-2.817332989487568,"y":-3.491239637863373},{"x":-2.802336537463816,"y":-3.4550349999999526},{"x":-2.7784806273510867,"y":-3.423945372648973},{"x":-2.747391000000107,"y":-3.400089462536357},{"x":-2.7111863621366865,"y":-3.3850930105124917},{"x":-2.6723340000000917,"y":-3.3799779999999373},{"x":-2.633481637863497,"y":-3.3850930105124917},{"x":-2.5972770000000764,"y":-3.400089462536357},{"x":-2.5661873726490967,"y":-3.423945372648973},{"x":-2.542331462536481,"y":-3.4550349999999526},{"x":-2.5273350105126156,"y":-3.491239637863373},{"x":-2.522220000000061,"y":-3.5300920000000815}]} />
<silkscreentext text="{NAME}" pcbX="-0.0889mm" pcbY="5.3434mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.0693999999999733,"y":4.593399999999974},{"x":2.891599999999926,"y":4.593399999999974},{"x":2.891599999999926,"y":-4.745800000000031},{"x":-3.0693999999999733,"y":-4.745800000000031},{"x":-3.0693999999999733,"y":4.593399999999974}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C97521.obj?uuid=4652e19b90fa4dbb8662aa4cba61a532",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C97521.step?uuid=4652e19b90fa4dbb8662aa4cba61a532",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0.000012700000070253736, y: -0.000012699999956566899, z: -0.069425 },
      }}
      {...props}
    />
  )
}