Devesh36/orbit-turntable

ORBIT is a USB-C-powered display turntable for photographing jewellery, models and small products. Four-layer ESP32-C3 / ULN2003 PCB, geared stepper, OLED, push encoder, home switch and buzzer, with an enclosed and exploded assembly. Hardware prototype; firmware and physical qualification remain separate.

Version
0.1.1
License
unset
Stars
0

imports/ULN2003ADR.tsx

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

const pinLabels = {
  pin1: ["1B"],
  pin2: ["2B"],
  pin3: ["3B"],
  pin4: ["4B"],
  pin5: ["5B"],
  pin6: ["6B"],
  pin7: ["7B"],
  pin8: ["E"],
  pin9: ["COM"],
  pin10: ["7C"],
  pin11: ["6C"],
  pin12: ["5C"],
  pin13: ["4C"],
  pin14: ["3C"],
  pin15: ["2C"],
  pin16: ["1C"]
} as const

export const ULN2003ADR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={{pin8:{requiresGround:true},pin9:{requiresPower:true},pin1:{isInput:true},pin2:{isInput:true},pin3:{isInput:true},pin4:{isInput:true},pin5:{isInput:true},pin6:{isInput:true},pin7:{isInput:true}}}
      supplierPartNumbers={{
  "jlcpcb": [
    "C7512"
  ]
}}
      manufacturerPartNumber="ULN2003ADR"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-4.445mm" pcbY="-2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-3.175mm" pcbY="-2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="-1.905mm" pcbY="-2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="-0.635mm" pcbY="-2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="0.635mm" pcbY="-2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="1.905mm" pcbY="-2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="3.175mm" pcbY="-2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="4.445mm" pcbY="-2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin16"]} pcbX="-4.445mm" pcbY="2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin15"]} pcbX="-3.175mm" pcbY="2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin14"]} pcbX="-1.905mm" pcbY="2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin13"]} pcbX="-0.635mm" pcbY="2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin12"]} pcbX="0.635mm" pcbY="2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin11"]} pcbX="1.905mm" pcbY="2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin10"]} pcbX="3.175mm" pcbY="2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<smtpad portHints={["pin9"]} pcbX="4.445mm" pcbY="2.73558mm" width="0.6020054mm" height="1.9709892mm" radius="0.3010027mm" shape="pill" />
<silkscreenpath route={[{"x":-5.026202800000078,"y":-1.5214091999999937},{"x":-5.026202800000078,"y":1.5214092000001074},{"x":5.0262027999999646,"y":1.5214092000001074},{"x":5.0262027999999646,"y":-1.5214091999999937},{"x":-5.026202800000078,"y":-1.5214091999999937}]} />
<silkscreencircle pcbX="-4.445mm" pcbY="-0.769112mm" radius="0.150114mm" />
<silkscreencircle pcbX="-5.207mm" pcbY="-2.667mm" radius="0.150114mm" />
<silkscreentext text="{NAME}" pcbX="-0.1651mm" pcbY="4.429mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-5.19997740000008,"y":3.9710746000000654},{"x":5.200002799999993,"y":3.9710746000000654},{"x":5.200002799999993,"y":-3.9710746000000654},{"x":-5.19997740000008,"y":-3.9710746000000654},{"x":-5.19997740000008,"y":3.9710746000000654}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7512.obj?uuid=9adfdf34b7774b23880141fd3e8b4dbb",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7512.step?uuid=9adfdf34b7774b23880141fd3e8b4dbb",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.000012699999842880061, y: 0, z: 0.000575 },
      }}
      {...props}
    />
  )
}