rushabhcodes/fidget-counter

A modular enclosure assembly with a stationary base, tray, cell, PCB retainers, backing ring, magnets, and interchangeable snap-on rotor/grip caps in multiple styles.

Version
1.0.9
License
unset
Stars
0

imports/BS_08_B2AA020_R/BS_08_B2AA020_R.tsx

import objPath from "./BS_08_B2AA020_R.obj"
import stepPath from "./BS_08_B2AA020_R.step"
import type { ChipProps } from "@tscircuit/props"

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

export const BS_08_B2AA020_R = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <schematicpath points={[{"x":-0.1,"y":0.18},{"x":-0.1,"y":-0.14}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.04,"y":0.1},{"x":-0.04,"y":-0.08}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.02,"y":0.18},{"x":0.02,"y":-0.14}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.08,"y":0.1},{"x":0.08,"y":-0.08}]} strokeColor="#880000" />
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="left" schX={-0.4} schY={0} schStemLength={0.3} />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={0.4} schY={0} schStemLength={0.3} />
          <schematictext schX={0} schY={0.402} text="{NAME}" fontSize={0.2} anchor="bottom_center" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C964787"
  ]
}}
      manufacturerPartNumber="BS-08-B2AA020-R"
      footprint={<footprint>
        <smtpad portHints={["pin2"]} pcbX="-10.6999151mm" pcbY="0mm" width="5.6999886mm" height="2.7999944mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="11.7999129mm" pcbY="0mm" width="3.499993mm" height="3.7999924mm" shape="rect" />
<silkscreenpath route={[{"x":12.064961900000071,"y":-2.1630640000000767},{"x":12.065977900000007,"y":-2.130043999999998},{"x":12.065977900000007,"y":-6.4759840000000395},{"x":9.744417900000144,"y":-6.4759840000000395}]} />
<silkscreenpath route={[{"x":9.744417900000144,"y":6.478016000000025},{"x":12.065977900000007,"y":6.472936000000004},{"x":12.064961900000071,"y":2.1549360000001343}]} />
<silkscreenpath route={[{"x":7.689938900000016,"y":1.397000000000162},{"x":7.689938900000016,"y":-1.2699999999998681}]} />
<silkscreenpath route={[{"x":6.5469388999999865,"y":0},{"x":8.959938899999997,"y":0}]} />
<silkscreenpath route={[{"x":-1.0730610999999044,"y":-7.849996999999917},{"x":-9.065933099999938,"y":-7.858124999999973}]} />
<silkscreenpath route={[{"x":7.943938900000148,"y":-6.476999999999975},{"x":9.743960700000116,"y":-6.476999999999975}]} />
<silkscreenpath route={[{"x":7.943938900000148,"y":6.477000000000089},{"x":9.743960700000116,"y":6.477000000000089}]} />
<silkscreenpath route={[{"x":-1.0730610999999044,"y":-7.849996999999917},{"x":6.800938900000119,"y":-7.849996999999917}]} />
<silkscreenpath route={[{"x":-1.0730610999999044,"y":7.84999700000003},{"x":6.800938900000119,"y":7.84999700000003}]} />
<silkscreenpath route={[{"x":-1.0730610999999044,"y":7.84999700000003},{"x":-9.074061099999994,"y":7.84999700000003}]} />
<silkscreenpath route={[{"x":7.943938900000148,"y":6.477000000000089},{"x":7.812932579959352,"y":6.658094625072749},{"x":7.6783402750122605,"y":6.836540220618872},{"x":7.540215535097104,"y":7.012265788889977},{"x":7.398613315594048,"y":7.185201414348285},{"x":7.253589955460711,"y":7.35527829148441},{"x":7.105203154815854,"y":7.522428752193264},{"x":6.953511951982819,"y":7.686586292696006},{"x":6.79857670000024,"y":7.847685600000091}]} />
<silkscreenpath route={[{"x":6.800938900000119,"y":-7.849996999999917},{"x":6.955918872565462,"y":-7.6888498056133585},{"x":7.107653844482684,"y":-7.524643507158089},{"x":7.256083445760851,"y":-7.3574434365257275},{"x":7.401148621499942,"y":-7.187316116724219},{"x":7.542791655385372,"y":-7.0143292354100595},{"x":7.680956192652729,"y":-6.838551617958956},{"x":7.815587262508188,"y":-6.660053200081734},{"x":7.9466313000000355,"y":-6.478904999999941}]} />
<silkscreenpath route={[{"x":-9.074061099999994,"y":7.84999700000003},{"x":-9.576955699999871,"y":7.34710240000004}]} />
<silkscreenpath route={[{"x":-9.576955699999871,"y":7.34710240000004},{"x":-9.753189180524828,"y":7.165242925423058},{"x":-9.923623374405565,"y":6.977937576573822},{"x":-10.088090084703026,"y":6.785371200081727},{"x":-10.2464270036279,"y":6.58773383454411},{"x":-10.398477872717876,"y":6.385220522980603},{"x":-10.544092637044287,"y":6.178031120352443},{"x":-10.683127593298423,"y":5.966370096328774},{"x":-10.815445531607565,"y":5.750446333502623},{"x":-10.940915870943627,"y":5.530472921249611},{"x":-11.059414787991273,"y":5.3066669454360635},{"x":-11.17082533934422,"y":5.079249274182075},{"x":-11.275037576914997,"y":4.848444339893831},{"x":-11.37194865643869,"y":4.614479917776066},{"x":-11.461462938967657,"y":4.3775869010478345},{"x":-11.543492085255366,"y":4.1379990730793},{"x":-11.617955142934989,"y":3.8959528766779385},{"x":-11.684778626410548,"y":3.651687180749377},{"x":-11.743896589376845,"y":3.405443044563185},{"x":-11.795250689900058,"y":3.1574634798591887},{"x":-11.83879024799478,"y":2.907993211024859},{"x":-11.874472295637588,"y":2.6572784335837696},{"x":-11.902261619172123,"y":2.4055665712315886},{"x":-11.922130794059171,"y":2.1531060316601724},{"x":-11.934060211942665,"y":1.9001459614114538},{"x":-11.938038099999858,"y":1.6469359999999824}]} />
<silkscreenpath route={[{"x":-11.938038099999858,"y":-1.6550639999999248},{"x":-11.934070025180972,"y":-1.9076580123407894},{"x":-11.922169738830462,"y":-2.1600027445484784},{"x":-11.902348985094022,"y":-2.4118491628464653},{"x":-11.874627324661901,"y":-2.662948725233832},{"x":-11.839032115465102,"y":-2.9130536267659863},{"x":-11.795598485676464,"y":-3.161917044109032},{"x":-11.74436929904357,"y":-3.409293379123369},{"x":-11.685395112586889,"y":-3.654938501240622},{"x":-11.618734126706386,"y":-3.8986099883902625},{"x":-11.544452127745217,"y":-4.140067366240828},{"x":-11.462622423065568,"y":-4.379072345519944},{"x":-11.373325768703921,"y":-4.615389057176344},{"x":-11.276650289674308,"y":-4.8487842851537835},{"x":-11.172691392999923,"y":-5.079027696547882},{"x":-11.061551673556778,"y":-5.305892068916819},{"x":-10.943340812826932,"y":-5.529153514521909},{"x":-10.818175470653955,"y":-5.7485917012784284},{"x":-10.686179170115338,"y":-5.963990070195905},{"x":-10.54748217561928,"y":-6.175136049096636},{"x":-10.40222136434977,"y":-6.381821262398375},{"x":-10.250540091185371,"y":-6.583841736755403},{"x":-10.092588047224922,"y":-6.780998102356307},{"x":-9.928521112061162,"y":-6.973095789677586},{"x":-9.75850119994584,"y":-7.159945221500379},{"x":-9.582696099999907,"y":-7.341362000000004}]} />
<silkscreenpath route={[{"x":-9.582696099999907,"y":-7.341362000000004},{"x":-9.065933099999938,"y":-7.858124999999973}]} />
<silkscreentext text="{NAME}" pcbX="0.0035179mm" pcbY="8.895336mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":6.387960300000145,"y":0.14193520000003446},{"x":9.081681100000196,"y":0.14193520000003446},{"x":9.081681100000196,"y":-0.21231860000000324},{"x":6.387960300000145,"y":-0.21231860000000324},{"x":6.387960300000145,"y":-0.168071800000007},{"x":6.387960300000145,"y":0.14193520000003446}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":7.551839100000052,"y":-1.3466571999999815},{"x":7.551839100000052,"y":1.3470636000000695},{"x":7.906092900000203,"y":1.3470636000000695},{"x":7.906092900000203,"y":-1.3466571999999815},{"x":7.861846100000093,"y":-1.3466571999999815},{"x":7.551839100000052,"y":-1.3466571999999815}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-13.850137899999936,"y":8.095933000000059},{"x":13.799909399999933,"y":8.095933000000059},{"x":13.799909399999933,"y":-8.104035599999975},{"x":-13.850137899999936,"y":-8.104035599999975},{"x":-13.850137899999936,"y":8.095933000000059}]} />
      </footprint>}
      cadModel={{
        objUrl: objPath,
        stepUrl: stepPath,
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0.550166499999996, y: 0.004051299999900948, z: -0.01 },
      }}
      {...props}
    />
  )
}