hrithik18k/smartknob

A two-board SmartKnob assembly combining USB-C programming, regulated power, CH340C USB-UART, HX711 force sensing, MT6701 magnetic angle sensing, VEML7700 ambient-light sensing, MOSFET/BJT drivers, an SK6812 RGB LED, connectors, and supporting passives.

Version
1.0.5
License
Apache-2.0
Stars
0

imports/UMH3N.tsx

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

const pinLabels = {
  pin1: ["E2"],
  pin2: ["B2"],
  pin3: ["C2"],
  pin4: ["E1"],
  pin5: ["B1"],
  pin6: ["C1"]
} as const

export const UMH3N = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <port name="pin3" pinNumber={3} aliases={["C2","C"]} direction="down" schX={7.62} schY={-7.62} schStemLength={2.54} />
          <port name="pin5" pinNumber={5} aliases={["B1","B"]} direction="up" schX={0} schY={10.16} schStemLength={2.54} />
          <port name="pin4" pinNumber={4} aliases={["E1","E"]} direction="up" schX={7.62} schY={10.16} schStemLength={2.54} />
          <schematicpath points={[{"x":7.62,"y":0},{"x":5.08,"y":1.778}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":5.08,"y":3.302},{"x":7.62,"y":5.08}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":5.08,"y":0.254},{"x":5.08,"y":4.826}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":7.62,"y":5.08},{"x":6.858,"y":3.81},{"x":6.096,"y":4.826},{"x":7.62,"y":5.08}]} strokeWidth={0.254} strokeColor="#880000" isFilled fillColor="#880000" />
          <port name="pin6" pinNumber={6} aliases={["C1","C"]} direction="up" schX={-7.62} schY={10.16} schStemLength={2.54} />
          <port name="pin2" pinNumber={2} aliases={["B2","B"]} direction="down" schX={0} schY={-7.62} schStemLength={2.54} />
          <port name="pin1" pinNumber={1} aliases={["E2","E"]} direction="down" schX={-7.62} schY={-7.62} schStemLength={2.54} />
          <schematicpath points={[{"x":-7.62,"y":2.54},{"x":-5.08,"y":0.762}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":-0.762},{"x":-7.62,"y":-2.54}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":2.286},{"x":-5.08,"y":-2.286}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-7.62,"y":-2.54},{"x":-6.858,"y":-1.27},{"x":-6.096,"y":-2.286},{"x":-7.62,"y":-2.54}]} strokeWidth={0.254} strokeColor="#880000" isFilled fillColor="#880000" />
          <schematicpath points={[{"x":0,"y":0},{"x":0,"y":-1.016},{"x":-0.762,"y":-1.27},{"x":0.762,"y":-1.778},{"x":-0.762,"y":-2.286},{"x":0.762,"y":-2.794},{"x":-0.762,"y":-3.302},{"x":0.762,"y":-3.81},{"x":0,"y":-4.064},{"x":0,"y":-5.08}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":2.54},{"x":0,"y":3.556},{"x":0.762,"y":3.81},{"x":-0.762,"y":4.318},{"x":0.762,"y":4.826},{"x":-0.762,"y":5.334},{"x":0.762,"y":5.842},{"x":-0.762,"y":6.35},{"x":0,"y":6.604},{"x":0,"y":7.62}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":2.54},{"x":5.08,"y":2.54}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":0},{"x":0,"y":0}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-7.62,"y":-2.54},{"x":-7.62,"y":-5.08}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-7.62,"y":7.62},{"x":-7.62,"y":2.54}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":7.62,"y":7.62},{"x":7.62,"y":5.08}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":7.62,"y":0},{"x":7.62,"y":-5.08}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicrect schX={0} schY={1.27} width={20.32} height={12.7} strokeWidth={0.254} color="#880000" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C62892"
  ]
}}
      manufacturerPartNumber="UMH3N"
      footprint={<footprint>
        <smtpad portHints={["pin6"]} pcbX="-0.94996mm" pcbY="-0.649986mm" width="0.5999988mm" height="0.419989mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-0.94996mm" pcbY="0mm" width="0.5999988mm" height="0.419989mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-0.94996mm" pcbY="0.649986mm" width="0.5999988mm" height="0.419989mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0.94996mm" pcbY="0.649986mm" width="0.5999988mm" height="0.419989mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0.94996mm" pcbY="0mm" width="0.5999988mm" height="0.419989mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="0.94996mm" pcbY="-0.649986mm" width="0.5999988mm" height="0.419989mm" shape="rect" />
<silkscreenpath route={[{"x":-0.6999986000000007,"y":-1.099997799999997},{"x":0.6999986000000149,"y":-1.099997799999997}]} />
<silkscreenpath route={[{"x":-0.6999986000000007,"y":1.099997799999997},{"x":0.6999986000000149,"y":1.099997799999997}]} />
<silkscreenpath route={[{"x":1.0909300000000144,"y":-1.0942066000000068},{"x":0.9672082130372104,"y":-0.9685846439124361},{"x":1.0922000000000054,"y":-0.844226252107191},{"x":1.2171917869628146,"y":-0.9685846439124361},{"x":1.0934700000000106,"y":-1.0942066000000068}]} />
<silkscreentext text="{NAME}" pcbX="0.101346mm" pcbY="2.1049mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.5075539999999847,"y":1.3549000000000007},{"x":1.710245999999998,"y":1.3549000000000007},{"x":1.710245999999998,"y":-1.583500000000015},{"x":-1.5075539999999847,"y":-1.583500000000015},{"x":-1.5075539999999847,"y":1.3549000000000007}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C62892.obj?uuid=a5d40c04f23243b2af27dc3bf34f18d3",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C62892.step?uuid=a5d40c04f23243b2af27dc3bf34f18d3",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: 0.000012700000013410317, y: 0, z: -0.1 },
      }}
      {...props}
    />
  )
}