gokul/wireless-calculator

A USB‑C rechargeable battery-powered controller board with MCP73871 Li‑ion charging, TPS63070 buck‑boost and LDO power regulation, ATmega328P and ESP32‑S3 control, LCD/keypad user interface, status LEDs, and UART/programming connectors.

Version
0.0.1
License
ISC
Stars
0

imports/TPS63070RNMR/TPS63070RNMR.tsx

import objPath from "./TPS63070RNMR.obj";
import stepPath from "./TPS63070RNMR.step";
import type { ChipProps } from "@tscircuit/props";

const pinLabels = {
  pin1: ["PS", "SYNC"],
  pin2: ["PG"],
  pin3: ["Vaux"],
  pin4: ["GND"],
  pin5: ["FB"],
  pin6: ["FB2"],
  pin7: ["Vout"],
  pin9: ["L2"],
  pin10: ["PGND"],
  pin11: ["L1"],
  pin12: ["Vin"],
  pin14: ["EN"],
  pin15: ["Vsel"],
} as const;

const pinAttributes = {
  pin4: { requiresGround: true },
  pin10: { requiresGround: true },
  pin12: { requiresPower: true },
} as const;

export const TPS63070RNMR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
        jlcpcb: ["C109322"],
      }}
      manufacturerPartNumber="TPS63070RNMR"
      footprint={
        <footprint>
          <smtpad
            portHints={["pin1"]}
            pcbX="-0.749935mm"
            pcbY="-1.1478514mm"
            width="0.2500122mm"
            height="0.5999988mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin2"]}
            pcbX="-0.250063mm"
            pcbY="-1.1475974mm"
            width="0.2500122mm"
            height="0.5999988mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin3"]}
            pcbX="0.250063mm"
            pcbY="-1.1475974mm"
            width="0.2500122mm"
            height="0.5999988mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin4"]}
            pcbX="0.749935mm"
            pcbY="-1.1475974mm"
            width="0.2500122mm"
            height="0.5999988mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin5"]}
            pcbX="1.399921mm"
            pcbY="-0.7225538mm"
            width="0.5999988mm"
            height="0.2500122mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin6"]}
            pcbX="1.399921mm"
            pcbY="-0.2226818mm"
            width="0.5999988mm"
            height="0.2500122mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin7"]}
            pcbX="1.399921mm"
            pcbY="0.2774442mm"
            width="0.5999988mm"
            height="0.2500122mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin7"]}
            pcbX="1.400175mm"
            pcbY="0.7775702mm"
            width="0.5999988mm"
            height="0.2500122mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin9"]}
            pcbX="0.499999mm"
            pcbY="0.7726426mm"
            width="0.2500122mm"
            height="1.35001mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin10"]}
            pcbX="0.000127mm"
            pcbY="0.5478526mm"
            width="0.2500122mm"
            height="1.7999964mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin11"]}
            pcbX="-0.499999mm"
            pcbY="0.7726426mm"
            width="0.2500122mm"
            height="1.35001mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin12"]}
            pcbX="-1.400175mm"
            pcbY="0.7775702mm"
            width="0.5999988mm"
            height="0.2500122mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin12"]}
            pcbX="-1.400175mm"
            pcbY="0.2774442mm"
            width="0.5999988mm"
            height="0.2500122mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin14"]}
            pcbX="-1.399921mm"
            pcbY="-0.2221738mm"
            width="0.5999988mm"
            height="0.2500122mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin15"]}
            pcbX="-1.400175mm"
            pcbY="-0.7222998mm"
            width="0.5999988mm"
            height="0.2500122mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin12"]}
            pcbX="-1.225169mm"
            pcbY="0.5276342mm"
            width="0.2500122mm"
            height="0.7500112mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin7"]}
            pcbX="1.225169mm"
            pcbY="0.5276342mm"
            width="0.2500122mm"
            height="0.7500112mm"
            shape="rect"
          />
          <silkscreenpath
            route={[
              { x: -0.8560816000000386, y: 1.2276581999999507 },
              { x: -1.4999462000000676, y: 1.2276581999999507 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -1.4999462000000676, y: -1.2723368000000619 },
              { x: -1.1061191999999664, y: -1.2723368000000619 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 1.1061445999998796, y: -1.2723368000000619 },
              { x: 1.5000478000000612, y: -1.2723368000000619 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 1.5000478000000612, y: -1.2723368000000619 },
              { x: 1.5000478000000612, y: -1.103553799999986 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 1.5000478000000612, y: 1.1087861999999404 },
              { x: 1.5000478000000612, y: 1.2276581999999507 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 1.5000478000000612, y: 1.2276581999999507 },
              { x: 0.8561831999999185, y: 1.2276581999999507 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -1.4999462000000676, y: 1.2276581999999507 },
              { x: -1.4999462000000676, y: 1.1087861999999404 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -1.4999462000000676, y: -1.103553799999986 },
              { x: -1.4999462000000676, y: -1.2723368000000619 },
            ]}
          />
          <silkscreencircle
            pcbX="-0.789813mm"
            pcbY="-1.7970754mm"
            radius="0.059944mm"
          />
          <silkscreentext
            text="{NAME}"
            pcbX="-0.010795mm"
            pcbY="2.4454886mm"
            anchorAlignment="center"
            fontSize="1mm"
          />
          <courtyardoutline
            outline={[
              { x: -1.9501744000000372, y: 1.6978507999999692 },
              { x: 1.9501744000000372, y: 1.6978507999999692 },
              { x: 1.9501744000000372, y: -1.6978507999999692 },
              { x: -1.9501744000000372, y: -1.6978507999999692 },
              { x: -1.9501744000000372, y: 1.6978507999999692 },
            ]}
          />
        </footprint>
      }
      cadModel={{
        objUrl: objPath,
        stepUrl: stepPath,
        pcbRotationOffset: 90,
        modelOriginPosition: { x: -0.002247899999929359, y: 0, z: 0 },
      }}
      {...props}
    />
  );
};