mohan-bee/light-controller

This code defines the hardware sections and symbols for a PCB involving USB power, voltage regulation, ESP12F module, RGB outputs, I2C sensors, and debug points, along with rendering labels for test points.

Version
1.0.30
License
unset
Stars
2

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone mohan-bee/light-controller  # download the package files into ./light-controller
tsci add mohan-bee/light-controller    # add it to your project as @tsci/mohan-bee.light-controller

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

imports/FCC0805X106K100FT.tsx

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

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

export const FCC0805X106K100FT = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <schematicpath points={[{"x":-0.508,"y":-2.032},{"x":-0.508,"y":2.032}]} strokeWidth={0.254} strokeColor="#A00000" />
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="left" schX={-5.08} schY={0} schStemLength={2.54} />
          <schematicpath points={[{"x":2.54,"y":0},{"x":0.508,"y":0}]} strokeWidth={0.254} strokeColor="#A00000" />
          <schematicpath points={[{"x":0.508,"y":2.032},{"x":0.508,"y":-2.032}]} strokeWidth={0.254} strokeColor="#A00000" />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={5.08} schY={0} schStemLength={2.54} />
          <schematicpath points={[{"x":-0.508,"y":0},{"x":-2.54,"y":0}]} strokeWidth={0.254} strokeColor="#A00000" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C5137471"
  ]
}}
      manufacturerPartNumber="FCC0805X106K100FT"
      footprint={<footprint>
        <smtpad portHints={["pin2"]} pcbX="0.999998mm" pcbY="0mm" width="1.4100048mm" height="1.35001mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-0.999998mm" pcbY="0mm" width="1.4100048mm" height="1.35001mm" shape="rect" />
<silkscreenpath route={[{"x":1.8111977999999453,"y":0.9036049999999705},{"x":0.4011929999999211,"y":0.9036049999999705}]} />
<silkscreenpath route={[{"x":0.4011929999999211,"y":-0.9036049999999705},{"x":1.8111977999999453,"y":-0.9036049999999705}]} />
<silkscreenpath route={[{"x":1.9635978000000023,"y":-0.7512050000000272},{"x":1.9635978000000023,"y":0.7512050000000272}]} />
<silkscreenpath route={[{"x":-1.811197800000059,"y":0.9036049999999705},{"x":-0.40119300000003477,"y":0.9036049999999705}]} />
<silkscreenpath route={[{"x":-0.40119300000003477,"y":-0.9036049999999705},{"x":-1.811197800000059,"y":-0.9036049999999705}]} />
<silkscreenpath route={[{"x":-1.9635978000000023,"y":-0.7512050000000272},{"x":-1.9635978000000023,"y":0.7512050000000272}]} />
<silkscreenpath route={[{"x":1.8111977999999453,"y":-0.9036049999997431},{"x":1.918960873452761,"y":-0.8589680734526155},{"x":1.9635977999998886,"y":-0.7512050000000272}]} />
<silkscreenpath route={[{"x":1.9635977999998886,"y":0.7512050000000272},{"x":1.918960873452761,"y":0.8589680734527292},{"x":1.8111977999999453,"y":0.9036049999998568}]} />
<silkscreenpath route={[{"x":-1.811197800000059,"y":-0.9036049999997431},{"x":-1.9189608734528747,"y":-0.8589680734526155},{"x":-1.9635978000000023,"y":-0.7512050000000272}]} />
<silkscreenpath route={[{"x":-1.9635978000000023,"y":0.7512050000000272},{"x":-1.9189608734528747,"y":0.8589680734527292},{"x":-1.811197800000059,"y":0.9036049999998568}]} />
<courtyardoutline outline={[{"x":-2.205799999999954,"y":1.1644000000000005},{"x":2.2311999999999443,"y":1.1644000000000005},{"x":2.2311999999999443,"y":-1.13900000000001},{"x":-2.205799999999954,"y":-1.13900000000001},{"x":-2.205799999999954,"y":1.1644000000000005}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5137471.obj?uuid=b87ab0c5465a48b3a1c9a6dac8d30bc5",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5137471.step?uuid=b87ab0c5465a48b3a1c9a6dac8d30bc5",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: -0.000012700000070253736, z: -0.65 },
      }}
      {...props}
    />
  )
}