rushabhcodes/usb-c-e-paper-display

USB-C powered RP2354B controller board with protected power regulation, EPD display interface and charge-pump rails, crystal timing, user/boot switches, status LEDs, and SWD test points.

Version
1.4.1
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone rushabhcodes/usb-c-e-paper-display  # download the package files into ./usb-c-e-paper-display
tsci add rushabhcodes/usb-c-e-paper-display    # add it to your project as @tsci/rushabhcodes.usb-c-e-paper-display

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/AP2112K_3_3TRG1.tsx

import { ReferenceLabel } from "../product/reference-label"
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["VIN"],
  pin2: ["GND"],
  pin3: ["EN"],
  pin4: ["NC"],
  pin5: ["VOUT"]
} as const

const pinAttributes = {
  pin1: {isInput: true, requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "1uF"},
  pin2: {requiresGround: true, mustBeConnected: true},
  pin4: {doNotConnect: true},
  pin5: {isOutput: true, providesPower: true, providesVoltage: "3.3V", shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "1uF"},
  pin3: {isInput: true}
} satisfies NonNullable<ChipProps["pinAttributes"]>

export const AP2112K_3_3TRG1 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C51118"
  ]
}}
      manufacturerPartNumber="AP2112K-3.3TRG1"
      footprint={<footprint>
        <smtpad solderMaskMargin="0.02mm" solderPasteMargin="0mm" portHints={["pin4"]} pcbX="0.949706mm" pcbY="1.299972mm" width="0.6223mm" height="1.1049mm" shape="rect" />
<smtpad solderMaskMargin="0.02mm" solderPasteMargin="0mm" portHints={["pin5"]} pcbX="-0.949706mm" pcbY="1.299972mm" width="0.6223mm" height="1.1049mm" shape="rect" />
<smtpad solderMaskMargin="0.02mm" solderPasteMargin="0mm" portHints={["pin1"]} pcbX="-0.949706mm" pcbY="-1.299972mm" width="0.6223mm" height="1.1049mm" shape="rect" />
<smtpad solderMaskMargin="0.02mm" solderPasteMargin="0mm" portHints={["pin2"]} pcbX="-0.000508mm" pcbY="-1.299972mm" width="0.6223mm" height="1.1049mm" shape="rect" />
<smtpad solderMaskMargin="0.02mm" solderPasteMargin="0mm" portHints={["pin3"]} pcbX="0.949706mm" pcbY="-1.299972mm" width="0.6223mm" height="1.1049mm" shape="rect" />

<silkscreenpath strokeWidth="0.15mm" route={[{"x":-1.387145,"y":-0.50038},{"x":-1.387145,"y":0.50038},{"x":-1.372401,"y":0.50038}]} />
<silkscreenpath strokeWidth="0.15mm" route={[{"x":-0.527011,"y":0.50038},{"x":0.527011,"y":0.50038}]} />
<silkscreenpath strokeWidth="0.15mm" route={[{"x":1.372401,"y":0.50038},{"x":1.411935,"y":0.50038},{"x":1.411935,"y":-0.50038}]} />
<silkscreenpath strokeWidth="0.15mm" route={[{"x":-1.779549399999837,"y":-1.5214599999999336},{"x":-1.9027377800492786,"y":-1.3963714714953994},{"x":-1.7782793999998603,"y":-1.2725464797605355},{"x":-1.6538210199506693,"y":-1.3963714714953994},{"x":-1.7770093999999972,"y":-1.5214599999999336}]} />
<ReferenceLabel name={props.name} />
<courtyardoutline outline={[{"x":-1.6999843999999484,"y":2.102422000000047},{"x":1.700009800000089,"y":2.102422000000047},{"x":1.700009800000089,"y":-2.102422000000047},{"x":-1.6999843999999484,"y":-2.102422000000047},{"x":-1.6999843999999484,"y":2.102422000000047}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C51118.obj?uuid=6d166d1d6c064b99aa79465714e989c1",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C51118.step?uuid=6d166d1d6c064b99aa79465714e989c1",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.000012700000070253736, y: 0, z: -0.15 },
      }}
      {...props}
    />
  )
}