gokul/new-clock

This code defines a PCB schematic with physical hardware components including switches, chips, resistors, capacitors, inductors, connectors, and visual annotations for a six-digit 12-hour digital clock circuit.

Version
0.0.1
License
unset
Stars
0

imports/c44296.tsx

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

const pinLabels = {
  pin1: ["g"],
  pin2: ["f"],
  pin3: ["GND1"],
  pin4: ["e"],
  pin5: ["d"],
  pin6: ["dp"],
  pin7: ["c"],
  pin8: ["GND2"],
  pin9: ["b"],
  pin10: ["a"]
} as const

const pinAttributes = {
  pin3: {requiresGround: true},
  pin8: {requiresGround: true}
} as const

export const FJ3191AH = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      symbol={
        <symbol>
          <schematicrect schX={0} schY={0} width={1.6} height={1.4} strokeWidth={0.02} color="#880000" />
          <schematicpath points={[{"x":-0.24,"y":0.48},{"x":-0.2,"y":0.52},{"x":0.16,"y":0.52},{"x":0.22,"y":0.48},{"x":0.18,"y":0.44},{"x":-0.2,"y":0.44},{"x":-0.24,"y":0.48}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.26,"y":0},{"x":-0.3,"y":0.04},{"x":-0.3,"y":0.4},{"x":-0.26,"y":0.46},{"x":-0.22,"y":0.42},{"x":-0.22,"y":0.04},{"x":-0.26,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.24,"y":0},{"x":0.2,"y":0.04},{"x":0.2,"y":0.4},{"x":0.24,"y":0.46},{"x":0.28,"y":0.42},{"x":0.28,"y":0.04},{"x":0.24,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.24,"y":-0.02},{"x":-0.2,"y":0.02},{"x":0.16,"y":0.02},{"x":0.22,"y":-0.02},{"x":0.18,"y":-0.06},{"x":-0.2,"y":-0.06},{"x":-0.24,"y":-0.02}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.26,"y":-0.5},{"x":-0.3,"y":-0.46},{"x":-0.3,"y":-0.1},{"x":-0.26,"y":-0.04},{"x":-0.22,"y":-0.08},{"x":-0.22,"y":-0.46},{"x":-0.26,"y":-0.5}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.24,"y":-0.5},{"x":0.2,"y":-0.46},{"x":0.2,"y":-0.1},{"x":0.24,"y":-0.04},{"x":0.28,"y":-0.08},{"x":0.28,"y":-0.46},{"x":0.24,"y":-0.5}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.24,"y":-0.52},{"x":-0.2,"y":-0.48},{"x":0.16,"y":-0.48},{"x":0.22,"y":-0.52},{"x":0.18,"y":-0.56},{"x":-0.2,"y":-0.56},{"x":-0.24,"y":-0.52}]} strokeColor="#880000" />
          <schematiccircle center={{ x: 0.36, y: -0.52 }} radius={0.04} strokeWidth={0.02} color="#880000" />
          <schematictext schX={-0.08} schY={0.32} text="a" fontSize={0.13} anchor="left" color="#880000" schRotation={0} />
          <schematictext schX={0.08} schY={0.130938} text="b" fontSize={0.13} anchor="left" color="#880000" schRotation={0} />
          <schematictext schX={0.08} schY={-0.32} text="c" fontSize={0.13} anchor="left" color="#880000" schRotation={0} />
          <schematictext schX={-0.08} schY={-0.44} text="d" fontSize={0.13} anchor="left" color="#880000" schRotation={0} />
          <schematictext schX={-0.2} schY={-0.32} text="e" fontSize={0.13} anchor="left" color="#880000" schRotation={0} />
          <schematictext schX={-0.2} schY={0.12} text="f" fontSize={0.13} anchor="left" color="#880000" schRotation={0} />
          <port name="pin1" pinNumber={1} aliases={["g"]} direction="left" schX={-1.2} schY={0.4} schStemLength={0.4} />
          <port name="pin2" pinNumber={2} aliases={["f"]} direction="left" schX={-1.2} schY={0.2} schStemLength={0.4} />
          <port name="pin3" pinNumber={3} aliases={["GND1","GND"]} direction="left" schX={-1.2} schY={0} schStemLength={0.4} />
          <port name="pin4" pinNumber={4} aliases={["e"]} direction="left" schX={-1.2} schY={-0.2} schStemLength={0.4} />
          <port name="pin5" pinNumber={5} aliases={["d"]} direction="left" schX={-1.2} schY={-0.4} schStemLength={0.4} />
          <port name="pin6" pinNumber={6} aliases={["dp"]} direction="right" schX={1.2} schY={-0.4} schStemLength={0.4} />
          <port name="pin7" pinNumber={7} aliases={["c"]} direction="right" schX={1.2} schY={-0.2} schStemLength={0.4} />
          <port name="pin8" pinNumber={8} aliases={["GND2","GND"]} direction="right" schX={1.2} schY={0} schStemLength={0.4} />
          <port name="pin9" pinNumber={9} aliases={["b"]} direction="right" schX={1.2} schY={0.2} schStemLength={0.4} />
          <port name="pin10" pinNumber={10} aliases={["a"]} direction="right" schX={1.2} schY={0.4} schStemLength={0.4} />
          <schematictext schX={-0.1} schY={-0.0734} text="g" fontSize={0.13} anchor="left" color="#880000" schRotation={0} />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C44296"
  ]
}}
      manufacturerPartNumber="FJ3191AH"
      footprint={<footprint>
        <platedhole  portHints={["pin1"]} pcbX="-5.08mm" pcbY="-3.8735mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin2"]} pcbX="-2.54mm" pcbY="-3.8735mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin3"]} pcbX="-0mm" pcbY="-3.8735mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin4"]} pcbX="2.54mm" pcbY="-3.8735mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin5"]} pcbX="5.08mm" pcbY="-3.8735mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin6"]} pcbX="5.08mm" pcbY="3.7465mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin7"]} pcbX="2.54mm" pcbY="3.7465mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin8"]} pcbX="-0mm" pcbY="3.7465mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin9"]} pcbX="-2.54mm" pcbY="3.7465mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<platedhole  portHints={["pin10"]} pcbX="-5.08mm" pcbY="3.7465mm" outerDiameter="1.524mm" holeDiameter="0.762mm" shape="circle" />
<silkscreenpath route={[{"x":-4.572000000000003,"y":-0.8255000000000337},{"x":-4.572000000000003,"y":2.222499999999968},{"x":-4.318000000000097,"y":2.349499999999921},{"x":-4.064000000000078,"y":1.8414999999999964},{"x":-4.064000000000078,"y":-1.0795000000000528},{"x":-4.318000000000097,"y":-1.2065000000000055},{"x":-4.572000000000003,"y":-0.8255000000000337}]} />
<silkscreenpath route={[{"x":-1.0160000000000764,"y":-2.222500000000082},{"x":-3.9370000000001255,"y":-1.7145000000001573},{"x":-4.064000000000078,"y":-1.4605000000001382},{"x":-3.6830000000001064,"y":-1.2065000000000055},{"x":-0.6350000000001046,"y":-1.7145000000001573},{"x":-0.5080000000001519,"y":-1.9685000000000628},{"x":-1.0160000000000764,"y":-2.222500000000082}]} />
<silkscreenpath route={[{"x":-1.0160000000000764,"y":1.8414999999999964},{"x":-3.9370000000001255,"y":2.349499999999921},{"x":-4.064000000000078,"y":2.60349999999994},{"x":-3.6830000000001064,"y":2.8574999999998454},{"x":-0.6350000000001046,"y":2.349499999999921},{"x":-0.5080000000001519,"y":2.0954999999999018},{"x":-1.0160000000000764,"y":1.8414999999999964}]} />
<silkscreenpath route={[{"x":2.7939999999999827,"y":-2.9845000000000255},{"x":-0.1270000000000664,"y":-2.476500000000101},{"x":-0.2540000000000191,"y":-2.222500000000082},{"x":0.1269999999999527,"y":-1.9685000000000628},{"x":3.1749999999999545,"y":-2.476500000000101},{"x":3.3019999999999072,"y":-2.7305000000000064},{"x":2.7939999999999827,"y":-2.9845000000000255}]} />
<silkscreenpath route={[{"x":-0.2540000000000191,"y":-1.7145000000001573},{"x":0,"y":-1.587500000000091},{"x":0,"y":1.3334999999998445},{"x":-0.2540000000000191,"y":1.8414999999999964},{"x":-0.5080000000001519,"y":1.7144999999998163},{"x":-0.5080000000001519,"y":-1.3335000000001855},{"x":-0.2540000000000191,"y":-1.7145000000001573}]} />
<silkscreenpath route={[{"x":0.2539999999999054,"y":1.8414999999999964},{"x":0.3809999999999718,"y":1.5874999999998636},{"x":3.4289999999999736,"y":1.079499999999939},{"x":3.8099999999999454,"y":1.3334999999998445},{"x":3.682999999999879,"y":1.5874999999998636},{"x":0.7619999999999436,"y":2.0954999999999018},{"x":0.2539999999999054,"y":1.8414999999999964}]} />
<silkscreenpath route={[{"x":3.8099999999999454,"y":-2.7305000000000064},{"x":4.063999999999851,"y":-2.6035000000000537},{"x":4.063999999999851,"y":0.31749999999999545},{"x":3.8099999999999454,"y":0.82549999999992},{"x":3.5559999999999263,"y":0.6984999999999673},{"x":3.5559999999999263,"y":-2.3495000000000346},{"x":3.8099999999999454,"y":-2.7305000000000064}]} />
<silkscreenpath route={[{"x":3.8150799999999663,"y":2.6771599999998443},{"x":3.9106170400945075,"y":2.4831164692946004},{"x":4.121757484857994,"y":2.4362130533872914},{"x":4.290465566138323,"y":2.5715563249208344},{"x":4.290465566138209,"y":2.78784367507933},{"x":4.121757484857881,"y":2.9231869466125318},{"x":3.9106170400945075,"y":2.87628353070545},{"x":3.8150799999999663,"y":2.682239999999979}]} />
<silkscreenrect pcbX="0mm" pcbY="0mm" width="13.208mm" height="10.033mm" strokeWidth="0.254mm" />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="6.0165mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-4.318000000000097,"y":2.222499999999968},{"x":-4.572000000000116,"y":2.0954999999999018},{"x":-4.572000000000116,"y":-0.8255000000000337},{"x":-4.318000000000097,"y":-1.2065000000001191},{"x":-4.064000000000078,"y":-1.0795000000000528},{"x":-4.064000000000078,"y":1.8414999999998827},{"x":-4.318000000000097,"y":2.222499999999968}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-4.064000000000078,"y":-1.4605000000000246},{"x":-3.937000000000012,"y":-1.7145000000000437},{"x":-1.143000000000029,"y":-2.222500000000082},{"x":-0.5080000000000382,"y":-1.9685000000000628},{"x":-0.7620000000000573,"y":-1.7145000000000437},{"x":-3.55600000000004,"y":-1.2065000000001191},{"x":-4.064000000000078,"y":-1.4605000000000246}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-4.037457000000131,"y":2.6760931999999684},{"x":-3.910457000000065,"y":2.4220931999999493},{"x":-1.1164570000000822,"y":1.9140931999999111},{"x":-0.4814570000000913,"y":2.16809319999993},{"x":-0.7354570000001104,"y":2.4220931999999493},{"x":-3.529457000000093,"y":2.9300931999999875},{"x":-4.037457000000131,"y":2.6760931999999684}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":0.2805429999998523,"y":1.9140931999999111},{"x":0.4075429999999187,"y":1.660093199999892},{"x":3.2015429999999014,"y":1.1520931999999675},{"x":3.8365429999998923,"y":1.4060931999999866},{"x":3.5825429999998732,"y":1.660093199999892},{"x":0.7885429999998905,"y":2.16809319999993},{"x":0.2805429999998523,"y":1.9140931999999111}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-0.10045700000011948,"y":-2.27690680000012},{"x":0.026542999999946915,"y":-2.530906800000025},{"x":2.8205429999999296,"y":-3.0389068000000634},{"x":3.4555429999999205,"y":-2.7849068000000443},{"x":3.2015429999999014,"y":-2.530906800000025},{"x":0.4075429999999187,"y":-2.0229068000001007},{"x":-0.10045700000011948,"y":-2.27690680000012}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-0.27825700000005327,"y":1.7489931999999726},{"x":-0.5322570000000724,"y":1.6219931999999062},{"x":-0.5322570000000724,"y":-1.2990068000000292},{"x":-0.27825700000005327,"y":-1.6800068000001147},{"x":-0.024257000000147855,"y":-1.5530068000000483},{"x":-0.024257000000147855,"y":1.367993199999887},{"x":-0.27825700000005327,"y":1.7489931999999726}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":3.7857429999999113,"y":0.7329931999998962},{"x":3.531742999999892,"y":0.6059931999999435},{"x":3.531742999999892,"y":-2.3150068000001056},{"x":3.7857429999999113,"y":-2.6960068000000774},{"x":4.03974299999993,"y":-2.569006800000011},{"x":4.03974299999993,"y":0.3519931999999244},{"x":3.7857429999999113,"y":0.7329931999998962}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-6.8540000000001555,"y":5.266499999999951},{"x":6.853999999999928,"y":5.266499999999951},{"x":6.853999999999928,"y":-5.342700000000036},{"x":-6.8540000000001555,"y":-5.342700000000036},{"x":-6.8540000000001555,"y":5.266499999999951}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C44296.obj?uuid=2ef1db56c16b4745bfb9ba4cc9d83515",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C44296.step?uuid=2ef1db56c16b4745bfb9ba4cc9d83515",
        pcbRotationOffset: 90,
        modelOriginPosition: { x: 0.06349999999997635, y: 0, z: -0.10000699999999973 },
      }}
      {...props}
    />
  )
}