AnasSarkiz/tscircuit-ai-agent-remote

A mixed embedded-audio PCB component library featuring ESP32-S3 control, digital microphones, I²S audio amplification, power/battery management, USB protection, logic interfaces, connectors, switches, MOSFETs, diodes, and assorted passive components.

Version
0.0.11-wip-generator-qualification
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone AnasSarkiz/tscircuit-ai-agent-remote  # download the package files into ./tscircuit-ai-agent-remote
tsci add AnasSarkiz/tscircuit-ai-agent-remote    # add it to your project as @tsci/AnasSarkiz.tscircuit-ai-agent-remote

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.

src/board/RegulatorSheet.tsx

import { regulatorSwitchRouting } from "./RegulatorSwitchRouting"
import { ComponentNotes } from "./ComponentNotes"
import { groundPath } from "./GroundPaths"
import { place } from "./placement"
import { DFE201612E_R47M_P2 } from "../../imports/DFE201612E_R47M_P2/DFE201612E_R47M_P2"
import { GRM188R61A106ME69D } from "../../imports/GRM188R61A106ME69D/GRM188R61A106ME69D"
import { GRM188R61A226ME15D } from "../../imports/GRM188R61A226ME15D/GRM188R61A226ME15D"
import { RC0603FR_07100KL } from "../../imports/RC0603FR_07100KL/RC0603FR_07100KL"
import { RC0603FR_0751K1L } from "../../imports/RC0603FR_0751K1L/RC0603FR_0751K1L"
import { RC0603FR_079K1L } from "../../imports/RC0603FR_079K1L/RC0603FR_079K1L"
import { TPS63802DLAR } from "../../imports/TPS63802DLAR/TPS63802DLAR"

export function RegulatorSheet({ placementOnly = false }: { placementOnly?: boolean } = {}) {
  return (
    <schematicsheet
      name="regulated-3v3-review"
      displayName="AI Remote A1 - 3.3 V buck boost"
      sheetIndex={3}
      sheetSize="A4"
    >
      <group name="regulator-review" schX={0} schY={0} schLayout={{ layoutMode: "relative" }}>
        <TPS63802DLAR name="U2" {...place("U2")} schX={0} schY={0} />
        <DFE201612E_R47M_P2 name="L1" {...place("L1")} schX={0} schY={4} />
        <GRM188R61A106ME69D name="C4" {...place("C4")} schX={-6} schY={0} schRotation={-90} />
        <GRM188R61A226ME15D name="C5" {...place("C5")} schX={6} schY={0} schRotation={-90} />
        <RC0603FR_0751K1L name="R5" {...place("R5")} schX={6} schY={-4} schRotation={-90} />
        <RC0603FR_079K1L name="R6" {...place("R6")} schX={6} schY={-7} schRotation={-90} />
        <RC0603FR_07100KL name="R7" {...place("R7")} schX={-6} schY={4} schRotation={-90} />
        <trace
          from="U2.pin10"
          to="net.VSYS"
          width={0.275}
          pcbPath={placementOnly ? undefined : [{ x: 0.74994135, y: 1.65 }]}
        />
        <trace from="U2.pin1" to="net.BUCK_ENABLE" />
        <trace
          from="U2.pin2"
          to="net.GND"
          width={0.3}
          pcbPath={
            placementOnly
              ? undefined
              : [
                  { x: -0.15, y: 0.5 },
                  { x: -0.15, y: 1.2 },
                  { x: -0.35, y: 1.85 },
                  { x: -0.35, y: 1.85, via: true, fromLayer: "top", toLayer: "bottom" },
                ]
          }
        />
        <trace
          path={["U2.pin3", "U2.pin2", "net.GND"]}
          width={0.3}
          pcbPath={placementOnly ? undefined : ["U2.pin2"]}
        />
        <trace
          path={["U2.pin8", "U2.pin3", "net.GND"]}
          width={0.28}
          pcbPath={placementOnly ? undefined : ["U2.pin3"]}
        />
        <trace
          name="REG_L1"
          routingPhaseIndex={placementOnly ? undefined : 0}
          width={regulatorSwitchRouting.padEscapeMinimumWidthMm}
          from="U2.pin9"
          to="L1.pin1"
        />
        <trace
          name="REG_L2"
          routingPhaseIndex={placementOnly ? undefined : 0}
          width={regulatorSwitchRouting.padEscapeMinimumWidthMm}
          from="U2.pin7"
          to="L1.pin2"
        />
        <trace
          from="U2.pin6"
          to="net.V3V3"
          width={0.275}
          pcbPath={placementOnly ? undefined : [{ x: 0.74994135, y: -1.65 }]}
        />
        <trace
          from="C4.pin1"
          to="net.VSYS"
          width={1}
          pcbPath={placementOnly ? undefined : [{ x: -1.7, y: 0 }]}
        />
        <trace
          from="C4.pin2"
          to="net.GND"
          width={0.3}
          pcbPath={groundPath("C4.pin2", placementOnly)}
        />
        <trace
          from="C5.pin1"
          to="net.V3V3"
          width={0.8}
          pcbPath={
            placementOnly
              ? undefined
              : [
                  { x: -1.4, y: 0.8 },
                  { x: -2.05005865, y: 1.35 },
                ]
          }
        />
        <trace
          from="C5.pin2"
          to="net.GND"
          width={0.3}
          pcbPath={groundPath("C5.pin2", placementOnly)}
        />
        <trace from="R5.pin1" to="net.V3V3" />
        <trace from="R5.pin2" to="net.REG_FB" />
        <trace from="R6.pin1" to="net.REG_FB" />
        <trace
          from="R6.pin2"
          to="net.GND"
          width={0.3}
          pcbPath={groundPath("R6.pin2", placementOnly)}
        />
        <trace from="U2.pin4" to="net.REG_FB" />
        <trace from="R7.pin1" to="net.V3V3" />
        <trace from="R7.pin2" to="net.REG_PG" />
        <trace from="U2.pin5" to="net.REG_PG" />
      </group>
      <ComponentNotes sheet="regulated-3v3-review" />
    </schematicsheet>
  )
}