wanzhe/tda7293

A 140×100 mm through-hole subwoofer amplifier PCB featuring a TDA7293/7294 power amp, rectified ±50 V supply with ±15 V regulators, NE5532 bass filtering/preamp controls, and UPC1237 relay-based speaker protection.

Version
0.0.1
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone wanzhe/tda7293  # download the package files into ./tda7293
tsci add wanzhe/tda7293    # add it to your project as @tsci/wanzhe.tda7293

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.

index.tsx

PCBPCB preview for index.tsx
SchematicSchematic preview for index.tsx
// ================= 1. 终极发烧全直插封装库(98x98mm 10.8元特价版) =================

const Multiwatt15 = () => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="1.5mm" width="21mm" height="9mm" />
    <silkscreentext text="TDA7293/7294 (HEATSINK UP)" pcbX="0mm" pcbY="7.2mm" fontSize="1.2mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-8.89mm" pcbY="-2.54mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-6.35mm" pcbY="-2.54mm" />
    <platedhole portHints={["5"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-3.81mm" pcbY="-2.54mm" />
    <platedhole portHints={["7"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-1.27mm" pcbY="-2.54mm" />
    <platedhole portHints={["9"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="1.27mm" pcbY="-2.54mm" />
    <platedhole portHints={["11"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="3.81mm" pcbY="-2.54mm" />
    <platedhole portHints={["13"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="6.35mm" pcbY="-2.54mm" />
    <platedhole portHints={["15"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="8.89mm" pcbY="-2.54mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-7.62mm" pcbY="2.54mm" />
    <platedhole portHints={["4"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-5.08mm" pcbY="2.54mm" />
    <platedhole portHints={["6"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-2.54mm" pcbY="2.54mm" />
    <platedhole portHints={["8"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="0mm" pcbY="2.54mm" />
    <platedhole portHints={["10"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="2.54mm" pcbY="2.54mm" />
    <platedhole portHints={["12"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="5.08mm" pcbY="2.54mm" />
    <platedhole portHints={["14"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="7.62mm" pcbY="2.54mm" />
  </footprint>
)

const VertRes = ({ label }: { label: string }) => (
  <footprint>
    <silkscreencircle pcbX="-1.9mm" pcbY="0mm" radius="1.5mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="2.1mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="0.8mm" outerDiameter="1.6mm" pcbX="-1.9mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="0.8mm" outerDiameter="1.6mm" pcbX="1.9mm" pcbY="0mm" />
  </footprint>
)

const PowerRes = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="7.2mm" height="2.8mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="2.5mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-5.08mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="5.08mm" pcbY="0mm" />
  </footprint>
)

const StarJumper = () => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="7.2mm" height="2.4mm" />
    <silkscreentext text="STAR 0R" pcbX="0mm" pcbY="2.2mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.2mm" outerDiameter="2.4mm" pcbX="-2.54mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.2mm" outerDiameter="2.4mm" pcbX="2.54mm" pcbY="0mm" />
  </footprint>
)

const VertDiode = ({ label }: { label: string }) => (
  <footprint>
    <silkscreencircle pcbX="-1.9mm" pcbY="0mm" radius="1.4mm" />
    <silkscreentext text={`${label}->|`} pcbX="0mm" pcbY="2.1mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="0.8mm" outerDiameter="1.6mm" pcbX="-1.9mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="0.8mm" outerDiameter="1.6mm" pcbX="1.9mm" pcbY="0mm" />
  </footprint>
)

const RadialElec = ({ label }: { label: string }) => (
  <footprint>
    <silkscreencircle pcbX="0mm" pcbY="0mm" radius="3.2mm" />
    <silkscreentext text="+" pcbX="-3.6mm" pcbY="1.8mm" fontSize="1.2mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="4.2mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.8mm" pcbX="-1.75mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.8mm" pcbX="1.75mm" pcbY="0mm" />
  </footprint>
)

const RadialNPBig = ({ label }: { label: string }) => (
  <footprint>
    <silkscreencircle pcbX="0mm" pcbY="0mm" radius="4.5mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="5.5mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.8mm" pcbX="-2.5mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.8mm" pcbX="2.5mm" pcbY="0mm" />
  </footprint>
)

const RadialCBB = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="6.8mm" height="2.8mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="2.4mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.8mm" pcbX="-2.54mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.8mm" pcbX="2.54mm" pcbY="0mm" />
  </footprint>
)

const CBB10mm = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="12.5mm" height="5.5mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="3.8mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-5.0mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="5.0mm" pcbY="0mm" />
  </footprint>
)

const DecoupCap = () => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="4.4mm" height="2.2mm" />
    <silkscreentext text="104" pcbX="0mm" pcbY="2.0mm" fontSize="0.9mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="0.8mm" outerDiameter="1.5mm" pcbX="-1.27mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="0.8mm" outerDiameter="1.5mm" pcbX="1.27mm" pcbY="0mm" />
  </footprint>
)

const BigCap10000 = ({ label }: { label: string }) => (
  <footprint>
    <silkscreencircle pcbX="0mm" pcbY="0mm" radius="12.5mm" />
    <silkscreentext text="+" pcbX="-8.5mm" pcbY="0mm" fontSize="2.2mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="13.8mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.6mm" outerDiameter="3.2mm" pcbX="-5.0mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.6mm" outerDiameter="3.2mm" pcbX="5.0mm" pcbY="0mm" />
  </footprint>
)

const BridgeKBU = () => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="21mm" height="6mm" />
    <silkscreentext text="KBU810 (+ AC AC -)" pcbX="0mm" pcbY="4.4mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="-7.62mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="-2.54mm" pcbY="0mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="2.54mm" pcbY="0mm" />
    <platedhole portHints={["4"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="7.62mm" pcbY="0mm" />
  </footprint>
)

const TO220 = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="10mm" height="4.2mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="3.3mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-2.54mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="0mm" pcbY="0mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="2.54mm" pcbY="0mm" />
  </footprint>
)

const DIP8 = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="9.5mm" height="10.2mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="6.3mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="-3.81mm" pcbY="3.81mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="-3.81mm" pcbY="1.27mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="-3.81mm" pcbY="-1.27mm" />
    <platedhole portHints={["4"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="-3.81mm" pcbY="-3.81mm" />
    <platedhole portHints={["5"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="3.81mm" pcbY="-3.81mm" />
    <platedhole portHints={["6"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="3.81mm" pcbY="-1.27mm" />
    <platedhole portHints={["7"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="3.81mm" pcbY="1.27mm" />
    <platedhole portHints={["8"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="3.81mm" pcbY="3.81mm" />
  </footprint>
)

const SIP8 = () => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="20.5mm" height="3.6mm" />
    <silkscreentext text="UPC1237HA (1..8)" pcbX="0mm" pcbY="3.0mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="-8.89mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="-6.35mm" pcbY="0mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="-3.81mm" pcbY="0mm" />
    <platedhole portHints={["4"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="-1.27mm" pcbY="0mm" />
    <platedhole portHints={["5"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="1.27mm" pcbY="0mm" />
    <platedhole portHints={["6"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="3.81mm" pcbY="0mm" />
    <platedhole portHints={["7"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="6.35mm" pcbY="0mm" />
    <platedhole portHints={["8"]} shape="circle" holeDiameter="0.9mm" outerDiameter="1.7mm" pcbX="8.89mm" pcbY="0mm" />
  </footprint>
)

const Relay5Pin = () => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="19mm" height="15.5mm" />
    <silkscreentext text="RELAY 24V" pcbX="0mm" pcbY="8.8mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.2mm" outerDiameter="2.4mm" pcbX="-6.1mm" pcbY="6.0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.2mm" outerDiameter="2.4mm" pcbX="-6.1mm" pcbY="0mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.2mm" outerDiameter="2.4mm" pcbX="-6.1mm" pcbY="-6.0mm" />
    <platedhole portHints={["4"]} shape="circle" holeDiameter="1.2mm" outerDiameter="2.4mm" pcbX="6.1mm" pcbY="6.0mm" />
    <platedhole portHints={["5"]} shape="circle" holeDiameter="1.2mm" outerDiameter="2.4mm" pcbX="6.1mm" pcbY="-6.0mm" />
  </footprint>
)

const Term3PinH = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="16mm" height="7.5mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="-5.0mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="-5.08mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="0mm" pcbY="0mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="5.08mm" pcbY="0mm" />
  </footprint>
)

const Term2PinV = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="7.5mm" height="11mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="6.8mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="0mm" pcbY="2.54mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.3mm" outerDiameter="2.6mm" pcbX="0mm" pcbY="-2.54mm" />
  </footprint>
)

const Header3PinH = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="9mm" height="3.5mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="-3.0mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="-2.54mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="0mm" pcbY="0mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="2.54mm" pcbY="0mm" />
  </footprint>
)

const Header3PinV = ({ label }: { label: string }) => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="3.5mm" height="9mm" />
    <silkscreentext text={label} pcbX="0mm" pcbY="6.0mm" fontSize="1.0mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="0mm" pcbY="2.54mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="0mm" pcbY="0mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.0mm" outerDiameter="2.0mm" pcbX="0mm" pcbY="-2.54mm" />
  </footprint>
)

const PotDual6P = () => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="14mm" height="10mm" />
    <silkscreentext text="FREQ B20Kx2" pcbX="0mm" pcbY="-6.4mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="-5.0mm" pcbY="-2.5mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="0mm" pcbY="-2.5mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="5.0mm" pcbY="-2.5mm" />
    <platedhole portHints={["4"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="-5.0mm" pcbY="2.5mm" />
    <platedhole portHints={["5"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="0mm" pcbY="2.5mm" />
    <platedhole portHints={["6"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="5.0mm" pcbY="2.5mm" />
  </footprint>
)

const PotSingle3P = () => (
  <footprint>
    <silkscreenrect pcbX="0mm" pcbY="0mm" width="14mm" height="6mm" />
    <silkscreentext text="VOL A50K" pcbX="0mm" pcbY="-4.4mm" fontSize="1.1mm" />
    <platedhole portHints={["1"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="-5.0mm" pcbY="0mm" />
    <platedhole portHints={["2"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="0mm" pcbY="0mm" />
    <platedhole portHints={["3"]} shape="circle" holeDiameter="1.1mm" outerDiameter="2.2mm" pcbX="5.0mm" pcbY="0mm" />
  </footprint>
)

// ================= 2. 98x98mm 星型单点接地终极布局 =================

export default () => (
  <board width="98mm" height="98mm" routeRemaining={true} minViaHoleDiameter="0.35mm" minViaPadDiameter="0.6mm">
    {/* 四角 M3 安装孔 */}
    <hole pcbX={-45} pcbY={45} diameter="3.2mm" />
    <hole pcbX={45} pcbY={45} diameter="3.2mm" />
    <hole pcbX={-45} pcbY={-45} diameter="3.2mm" />
    <hole pcbX={45} pcbY={-45} diameter="3.2mm" />

    {/* ---------- A区:最左侧强电整流滤波、星型接地点与 ±15V 稳压 ---------- */}
    <chip
      name="J_AC"
      footprint={<Term3PinH label="AC 20V-0-20V" />}
      pcbX={-34}
      pcbY={-36}
      pinLabels={{ pin1: "AC1", pin2: "GND", pin3: "AC2" }}
    />
    <chip
      name="BR1"
      footprint={<BridgeKBU />}
      pcbX={-34}
      pcbY={-22}
      pinLabels={{ pin1: "POS", pin2: "AC1", pin3: "AC2", pin4: "NEG" }}
    />
    <capacitor name="C_MAIN1" capacitance="10000uF" footprint={<BigCap10000 label="C_M1 10000uF" />} pcbX={-34} pcbY={26} />
    <capacitor name="C_MAIN2" capacitance="10000uF" footprint={<BigCap10000 label="C_M2 10000uF" />} pcbX={-34} pcbY={-1} />

    {/* 星型单点接地短接桥 */}
    <resistor name="R_STAR" resistance="0" footprint={<StarJumper />} pcbX={-15} pcbY={-7} />

    <chip
      name="U_7815"
      footprint={<TO220 label="L7815" />}
      pcbX={-14}
      pcbY={-41}
      pinLabels={{ pin1: "IN", pin2: "GND", pin3: "OUT" }}
    />
    <chip
      name="U_7915"
      footprint={<TO220 label="L7915" />}
      pcbX={-14}
      pcbY={-33}
      pinLabels={{ pin1: "GND", pin2: "IN", pin3: "OUT" }}
    />
    <capacitor name="C_REG1" capacitance="470uF" footprint={<RadialElec label="470uF" />} pcbX={-16} pcbY={-24} />
    <capacitor name="C_REG3" capacitance="220uF" footprint={<RadialElec label="220uF" />} pcbX={-8} pcbY={-24} />
    <capacitor name="C_REG2" capacitance="470uF" footprint={<RadialElec label="470uF" />} pcbX={-16} pcbY={-15} />
    <capacitor name="C_REG4" capacitance="220uF" footprint={<RadialElec label="220uF" />} pcbX={-8} pcbY={-15} />

    {/* ---------- B区:顶部居中 TDA7293/7294 主功放 ---------- */}
    <chip
      name="U1"
      footprint={<Multiwatt15 />}
      pcbX={0}
      pcbY={40}
      pinLabels={{
        pin1: "STBY_GND", pin2: "IN_NEG", pin3: "IN_POS", pin4: "SGND", pin5: "CLIP",
        pin6: "BOOT", pin7: "VS_SIG_P", pin8: "VS_SIG_N", pin9: "STBY", pin10: "MUTE",
        pin11: "BUFFER", pin12: "BOOT_LDR", pin13: "VS_PWR_P", pin14: "OUT", pin15: "VS_PWR_N",
      }}
    />
    <capacitor name="C_DEC_P" capacitance="100uF" footprint={<RadialElec label="100uF" />} pcbX={-16} pcbY={33} />
    <capacitor name="C_BYP_P" capacitance="100nF" footprint={<RadialCBB label="100nF" />} pcbX={-15} pcbY={25} />
    <resistor name="R_DEC_P" resistance="10" footprint={<PowerRes label="10R 1/2W" />} pcbX={-14} pcbY={18} />

    <capacitor name="C_DEC_N" capacitance="100uF" footprint={<RadialElec label="100uF" />} pcbX={-16} pcbY={10} />
    <capacitor name="C_BYP_N" capacitance="100nF" footprint={<RadialCBB label="100nF" />} pcbX={-15} pcbY={3} />
    <resistor name="R_DEC_N" resistance="10" footprint={<PowerRes label="10R 1/2W" />} pcbX={-14} pcbY={-2} />

    <capacitor name="C_BOOT" capacitance="22uF" footprint={<RadialElec label="22uF" />} pcbX={-6} pcbY={27} />
    <capacitor name="C_STBY" capacitance="22uF" footprint={<RadialElec label="22uF" />} pcbX={2} pcbY={27} />
    <capacitor name="C_MUTE" capacitance="22uF" footprint={<RadialElec label="22uF" />} pcbX={10} pcbY={27} />

    <resistor name="R_FB1" resistance="22k" footprint={<VertRes label="22K" />} pcbX={-3} pcbY={20} />
    <resistor name="R_STBY" resistance="22k" footprint={<VertRes label="22K" />} pcbX={5} pcbY={20} />
    <resistor name="R_MUTE" resistance="10k" footprint={<VertRes label="10K" />} pcbX={12} pcbY={20} />

    <resistor name="R_FB2" resistance="680" footprint={<VertRes label="680R" />} pcbX={-3} pcbY={13} />
    <capacitor name="C_FB" capacitance="47uF" footprint={<RadialElec label="47uF NP" />} pcbX={5} pcbY={13} />
    <resistor name="R_IN2" resistance="22k" footprint={<VertRes label="22K" />} pcbX={12} pcbY={13} />

    <capacitor name="C_COUP" capacitance="2.2uF" footprint={<CBB10mm label="2.2uF CBB" />} pcbX={-1} pcbY={4} />
    <resistor name="R_IN1" resistance="1k" footprint={<VertRes label="1K" />} pcbX={10} pcbY={4} />

    {/* ---------- C区:右上角 UPC1237 喇叭保护与输出 ---------- */}
    <chip
      name="K1"
      footprint={<Relay5Pin />}
      pcbX={27}
      pcbY={36}
      pinLabels={{ pin1: "COIL1", pin2: "COM", pin3: "COIL2", pin4: "NO", pin5: "NC" }}
    />
    <chip
      name="J_SPK"
      footprint={<Term2PinV label="SPK OUT" />}
      pcbX={43}
      pcbY={35}
      pinLabels={{ pin1: "OUT", pin2: "GND" }}
    />
    <resistor name="R_ZOB" resistance="2.7" footprint={<PowerRes label="2.7R 2W" />} pcbX={23} pcbY={24} />
    <capacitor name="C_ZOB" capacitance="100nF" footprint={<RadialCBB label="100nF" />} pcbX={35} pcbY={24} />
    <diode name="D1" footprint={<VertDiode label="1N4148" />} pcbX={43} pcbY={24} />

    <chip
      name="U4"
      footprint={<SIP8 />}
      pcbX={31}
      pcbY={16}
      pinLabels={{
        pin1: "OVL", pin2: "DC_DET", pin3: "LATCH", pin4: "AC_DET",
        pin5: "GND", pin6: "RLY_DRV", pin7: "DELAY", pin8: "VCC",
      }}
    />
    <resistor name="R_PROT" resistance="47k" footprint={<VertRes label="47K" />} pcbX={18} pcbY={10.5} />
    <capacitor name="C_DC" capacitance="100uF" footprint={<RadialNPBig label="100uF NP" />} pcbX={27} pcbY={8} />
    <resistor name="R_RLY" resistance="330" footprint={<PowerRes label="330R 1W" />} pcbX={40} pcbY={10} />

    <resistor name="R_AC" resistance="15k" footprint={<VertRes label="15K" />} pcbX={18} pcbY={5.5} />
    <diode name="D_AC" footprint={<VertDiode label="1N4148" />} pcbX={18} pcbY={1.0} />
    <capacitor name="C_DLY" capacitance="47uF" footprint={<RadialElec label="47uF" />} pcbX={34} pcbY={2} />
    <resistor name="R_DLY" resistance="68k" footprint={<VertRes label="68K" />} pcbX={43} pcbY={4} />
    <resistor name="R_VCC_P" resistance="4.7k" footprint={<VertRes label="4.7K" />} pcbX={43} pcbY={-2} />

    {/* ---------- D区:右下角 NE5532 低音前级 ---------- */}
    <chip
      name="POT_FREQ"
      footprint={<PotDual6P />}
      pcbX={4}
      pcbY={-40}
      pinLabels={{ pin1: "A1", pin2: "A2", pin3: "A3", pin4: "B1", pin5: "B2", pin6: "B3" }}
    />
    <chip
      name="SW_PHASE"
      footprint={<Header3PinH label="PHASE 0/180" />}
      pcbX={19}
      pcbY={-40}
      pinLabels={{ pin1: "P0", pin2: "COM", pin3: "P180" }}
    />
    <chip
      name="POT_VOL"
      footprint={<PotSingle3P />}
      pcbX={34}
      pcbY={-40}
      pinLabels={{ pin1: "IN", pin2: "WIPER", pin3: "GND" }}
    />
    <chip
      name="J_IN"
      footprint={<Header3PinV label="L-G-R" />}
      pcbX={45}
      pcbY={-24}
      pinLabels={{ pin1: "IN_L", pin2: "GND", pin3: "IN_R" }}
    />

    <chip
      name="U3"
      footprint={<DIP8 label="NE5532 #2" />}
      pcbX={4}
      pcbY={-15}
      pinLabels={{
        pin1: "OUTA", pin2: "INA_N", pin3: "INA_P", pin4: "V_NEG",
        pin5: "INB_P", pin6: "INB_N", pin7: "OUTB", pin8: "V_POS",
      }}
    />
    <chip
      name="U2"
      footprint={<DIP8 label="NE5532 #1" />}
      pcbX={21}
      pcbY={-15}
      pinLabels={{
        pin1: "OUTA", pin2: "INA_N", pin3: "INA_P", pin4: "V_NEG",
        pin5: "INB_P", pin6: "INB_N", pin7: "OUTB", pin8: "V_POS",
      }}
    />

    {/* 运放贴身 104 高频退耦电容 */}
    <capacitor name="C_U2P" capacitance="100nF" footprint={<DecoupCap />} pcbX={26} pcbY={-7} />
    <capacitor name="C_U2N" capacitance="100nF" footprint={<DecoupCap />} pcbX={18} pcbY={-23} />
    <capacitor name="C_U3P" capacitance="100nF" footprint={<DecoupCap />} pcbX={9} pcbY={-7} />
    <capacitor name="C_U3N" capacitance="100nF" footprint={<DecoupCap />} pcbX={-1} pcbY={-23} />

    {/* 左右混音 */}
    <capacitor name="C_INL" capacitance="2.2uF" footprint={<CBB10mm label="2.2uF CBB" />} pcbX={35} pcbY={-27} />
    <capacitor name="C_INR" capacitance="2.2uF" footprint={<CBB10mm label="2.2uF CBB" />} pcbX={35} pcbY={-20} />
    <resistor name="R_SUML" resistance="10k" footprint={<VertRes label="10K" />} pcbX={38} pcbY={-13} />
    <resistor name="R_SUMR" resistance="10k" footprint={<VertRes label="10K" />} pcbX={38} pcbY={-8} />

    {/* 28Hz 高通 + 40~158Hz 巴特沃斯低通 */}
    <capacitor name="C_HP1" capacitance="100nF" footprint={<RadialCBB label="100nF" />} pcbX={25} pcbY={-2.5} />
    <capacitor name="C_HP2" capacitance="100nF" footprint={<RadialCBB label="100nF" />} pcbX={16} pcbY={-2.5} />
    <resistor name="R_HP1" resistance="56k" footprint={<VertRes label="56K" />} pcbX={25} pcbY={-24} />
    <resistor name="R_HP2" resistance="56k" footprint={<VertRes label="56K" />} pcbX={25} pcbY={-29} />

    <capacitor name="C_LP1" capacitance="220nF" footprint={<RadialCBB label="220nF" />} pcbX={16} pcbY={-7.5} />
    <capacitor name="C_LP2" capacitance="100nF" footprint={<RadialCBB label="100nF" />} pcbX={24} pcbY={-34} />
    <resistor name="R_LP1" resistance="6.8k" footprint={<VertRes label="6.8K" />} pcbX={16} pcbY={-29} />
    <resistor name="R_LP2" resistance="6.8k" footprint={<VertRes label="6.8K" />} pcbX={16} pcbY={-34} />

    {/* 反相与前级缓冲增益 */}
    <resistor name="R_INV1" resistance="10k" footprint={<VertRes label="10K" />} pcbX={6} pcbY={-24} />
    <resistor name="R_INV2" resistance="10k" footprint={<VertRes label="10K" />} pcbX={6} pcbY={-29} />
    <resistor name="R_PRE1" resistance="10k" footprint={<VertRes label="10K" />} pcbX={0} pcbY={-7.5} />
    <resistor name="R_PRE2" resistance="10k" footprint={<VertRes label="10K" />} pcbX={0} pcbY={-2.5} />

    {/* ================= 3. 电气连线(强电 1.0mm,弱电正常细线,防布线器卡死) ================= */}

    <trace from=".J_AC > .AC1" to=".BR1 > .AC1" thickness="1.0mm" />
    <trace from=".J_AC > .AC2" to=".BR1 > .AC2" thickness="1.0mm" />
    <trace from=".J_AC > .GND" to="net.PGND" thickness="1.0mm" />
    <trace from=".BR1 > .POS" to="net.VCC_POS" thickness="1.0mm" />
    <trace from=".BR1 > .NEG" to="net.VCC_NEG" thickness="1.0mm" />

    <trace from=".C_MAIN1 > .pin1" to="net.VCC_POS" thickness="1.0mm" />
    <trace from=".C_MAIN1 > .pin2" to="net.PGND" thickness="1.0mm" />
    <trace from=".C_MAIN2 > .pin1" to="net.PGND" thickness="1.0mm" />
    <trace from=".C_MAIN2 > .pin2" to="net.VCC_NEG" thickness="1.0mm" />

    {/* 星型单点汇合桥(SGND 绝不设超粗线宽) */}
    <trace from=".R_STAR > .pin1" to="net.PGND" thickness="1.0mm" />
    <trace from=".R_STAR > .pin2" to="net.SGND" />

    {/* ±15V 稳压 */}
    <trace from=".U_7815 > .IN" to="net.VCC_POS" />
    <trace from=".U_7815 > .GND" to="net.SGND" />
    <trace from=".U_7815 > .OUT" to="net.V15_POS" />
    <trace from=".U_7915 > .GND" to="net.SGND" />
    <trace from=".U_7915 > .IN" to="net.VCC_NEG" />
    <trace from=".U_7915 > .OUT" to="net.V15_NEG" />

    <trace from=".C_REG1 > .pin1" to="net.VCC_POS" />
    <trace from=".C_REG1 > .pin2" to="net.PGND" />
    <trace from=".C_REG3 > .pin1" to="net.V15_POS" />
    <trace from=".C_REG3 > .pin2" to="net.SGND" />
    <trace from=".C_REG2 > .pin1" to="net.PGND" />
    <trace from=".C_REG2 > .pin2" to="net.VCC_NEG" />
    <trace from=".C_REG4 > .pin1" to="net.SGND" />
    <trace from=".C_REG4 > .pin2" to="net.V15_NEG" />

    {/* TDA7293 主功放 */}
    <trace from=".U1 > .VS_PWR_P" to="net.VCC_POS" thickness="1.0mm" />
    <trace from=".U1 > .BOOT_LDR" to="net.VCC_POS" />
    <trace from=".U1 > .VS_PWR_N" to="net.VCC_NEG" thickness="1.0mm" />
    <trace from=".U1 > .STBY_GND" to="net.SGND" />
    <trace from=".U1 > .SGND" to="net.SGND" />

    <trace from=".R_DEC_P > .pin1" to="net.VCC_POS" />
    <trace from=".R_DEC_P > .pin2" to="net.VS_SIG_P" />
    <trace from=".U1 > .VS_SIG_P" to="net.VS_SIG_P" />
    <trace from=".C_DEC_P > .pin1" to="net.VS_SIG_P" />
    <trace from=".C_DEC_P > .pin2" to="net.SGND" />
    <trace from=".C_BYP_P > .pin1" to="net.VS_SIG_P" />
    <trace from=".C_BYP_P > .pin2" to="net.SGND" />

    <trace from=".R_DEC_N > .pin1" to="net.VCC_NEG" />
    <trace from=".R_DEC_N > .pin2" to="net.VS_SIG_N" />
    <trace from=".U1 > .VS_SIG_N" to="net.VS_SIG_N" />
    <trace from=".C_DEC_N > .pin1" to="net.SGND" />
    <trace from=".C_DEC_N > .pin2" to="net.VS_SIG_N" />
    <trace from=".C_BYP_N > .pin1" to="net.SGND" />
    <trace from=".C_BYP_N > .pin2" to="net.VS_SIG_N" />

    <trace from=".U1 > .BOOT" to="net.BOOT" />
    <trace from=".C_BOOT > .pin1" to="net.BOOT" />
    <trace from=".C_BOOT > .pin2" to="net.AMP_OUT" />

    <trace from=".R_STBY > .pin1" to="net.VCC_POS" />
    <trace from=".R_STBY > .pin2" to="net.STBY" />
    <trace from=".U1 > .STBY" to="net.STBY" />
    <trace from=".C_STBY > .pin1" to="net.STBY" />
    <trace from=".C_STBY > .pin2" to="net.SGND" />

    <trace from=".R_MUTE > .pin1" to="net.STBY" />
    <trace from=".R_MUTE > .pin2" to="net.MUTE" />
    <trace from=".U1 > .MUTE" to="net.MUTE" />
    <trace from=".C_MUTE > .pin1" to="net.MUTE" />
    <trace from=".C_MUTE > .pin2" to="net.SGND" />

    <trace from=".U1 > .OUT" to="net.AMP_OUT" thickness="1.0mm" />
    <trace from="net.AMP_OUT" to=".R_FB1 > .pin1" />
    <trace from=".R_FB1 > .pin2" to=".U1 > .IN_NEG" />
    <trace from=".U1 > .IN_NEG" to=".R_FB2 > .pin1" />
    <trace from=".R_FB2 > .pin2" to=".C_FB > .pin1" />
    <trace from=".C_FB > .pin2" to="net.SGND" />

    <trace from=".U3 > .OUTB" to="net.PRE_OUT" />
    <trace from=".C_COUP > .pin1" to="net.PRE_OUT" />
    <trace from=".C_COUP > .pin2" to=".R_IN1 > .pin1" />
    <trace from=".R_IN1 > .pin2" to=".U1 > .IN_POS" />
    <trace from=".R_IN2 > .pin1" to=".U1 > .IN_POS" />
    <trace from=".R_IN2 > .pin2" to="net.SGND" />

    {/* 茹贝尔网络、继电器输出与 UPC1237 保护 */}
    <trace from="net.AMP_OUT" to=".R_ZOB > .pin1" />
    <trace from=".R_ZOB > .pin2" to=".C_ZOB > .pin1" />
    <trace from=".C_ZOB > .pin2" to="net.PGND" />

    <trace from="net.AMP_OUT" to=".K1 > .COM" thickness="1.0mm" />
    <trace from=".K1 > .NO" to=".J_SPK > .OUT" thickness="1.0mm" />
    <trace from=".J_SPK > .GND" to="net.PGND" thickness="1.0mm" />

    <trace from=".U4 > .OVL" to="net.PGND" />
    <trace from=".U4 > .LATCH" to="net.PGND" />
    <trace from=".U4 > .GND" to="net.PGND" />
    <trace from="net.AMP_OUT" to=".R_PROT > .pin1" />
    <trace from=".R_PROT > .pin2" to="net.DC_DET" />
    <trace from=".U4 > .DC_DET" to="net.DC_DET" />
    <trace from=".C_DC > .pin1" to="net.DC_DET" />
    <trace from=".C_DC > .pin2" to="net.PGND" />

    <trace from=".J_AC > .AC1" to=".D_AC > .pin1" />
    <trace from=".D_AC > .pin2" to=".R_AC > .pin1" />
    <trace from=".R_AC > .pin2" to=".U4 > .AC_DET" />

    <trace from="net.VCC_POS" to=".R_VCC_P > .pin1" />
    <trace from=".R_VCC_P > .pin2" to=".U4 > .VCC" />
    <trace from=".U4 > .VCC" to=".R_DLY > .pin1" />
    <trace from=".R_DLY > .pin2" to="net.DELAY" />
    <trace from=".U4 > .DELAY" to="net.DELAY" />
    <trace from=".C_DLY > .pin1" to="net.DELAY" />
    <trace from=".C_DLY > .pin2" to="net.PGND" />

    <trace from="net.VCC_POS" to=".R_RLY > .pin1" />
    <trace from=".R_RLY > .pin2" to=".K1 > .COIL1" />
    <trace from=".K1 > .COIL2" to=".U4 > .RLY_DRV" />
    <trace from=".D1 > .pin1" to=".K1 > .COIL2" />
    <trace from=".D1 > .pin2" to=".K1 > .COIL1" />

    {/* 运放供电与贴身 104 退耦 */}
    <trace from=".U2 > .V_POS" to="net.V15_POS" />
    <trace from=".U2 > .V_NEG" to="net.V15_NEG" />
    <trace from=".U3 > .V_POS" to="net.V15_POS" />
    <trace from=".U3 > .V_NEG" to="net.V15_NEG" />

    <trace from=".C_U2P > .pin1" to="net.V15_POS" />
    <trace from=".C_U2P > .pin2" to="net.SGND" />
    <trace from=".C_U2N > .pin1" to="net.SGND" />
    <trace from=".C_U2N > .pin2" to="net.V15_NEG" />
    <trace from=".C_U3P > .pin1" to="net.V15_POS" />
    <trace from=".C_U3P > .pin2" to="net.SGND" />
    <trace from=".C_U3N > .pin1" to="net.SGND" />
    <trace from=".C_U3N > .pin2" to="net.V15_NEG" />

    {/* 低音前级信号链 */}
    <trace from=".J_IN > .GND" to="net.SGND" />
    <trace from=".J_IN > .IN_L" to="net.IN_L" />
    <trace from=".C_INL > .pin1" to="net.IN_L" />
    <trace from=".C_INL > .pin2" to=".R_SUML > .pin1" />
    <trace from=".J_IN > .IN_R" to="net.IN_R" />
    <trace from=".C_INR > .pin1" to="net.IN_R" />
    <trace from=".C_INR > .pin2" to=".R_SUMR > .pin1" />
    <trace from=".R_SUML > .pin2" to="net.SUM_SIG" />
    <trace from=".R_SUMR > .pin2" to="net.SUM_SIG" />

    <trace from="net.SUM_SIG" to=".C_HP1 > .pin1" />
    <trace from=".C_HP1 > .pin2" to="net.HP_MID" />
    <trace from="net.HP_MID" to=".C_HP2 > .pin1" />
    <trace from=".C_HP2 > .pin2" to="net.HP_OUT" />
    <trace from=".U2 > .INA_P" to="net.HP_OUT" />
    <trace from=".R_HP2 > .pin1" to="net.HP_OUT" />
    <trace from=".R_HP2 > .pin2" to="net.SGND" />
    <trace from=".U2 > .OUTA" to=".U2 > .INA_N" />
    <trace from=".U2 > .OUTA" to=".R_HP1 > .pin1" />
    <trace from=".R_HP1 > .pin2" to="net.HP_MID" />

    <trace from=".U2 > .OUTA" to=".R_LP1 > .pin1" />
    <trace from=".R_LP1 > .pin2" to=".POT_FREQ > .A1" />
    <trace from=".POT_FREQ > .A2" to=".POT_FREQ > .A3" />
    <trace from=".POT_FREQ > .A2" to="net.LP_MID" />
    <trace from="net.LP_MID" to=".C_LP1 > .pin1" />
    <trace from=".C_LP1 > .pin2" to="net.LP_OUT" />
    <trace from=".U2 > .OUTB" to="net.LP_OUT" />

    <trace from="net.LP_MID" to=".R_LP2 > .pin1" />
    <trace from=".R_LP2 > .pin2" to=".POT_FREQ > .B1" />
    <trace from=".POT_FREQ > .B2" to=".POT_FREQ > .B3" />
    <trace from=".POT_FREQ > .B2" to="net.LP_INB" />
    <trace from=".U2 > .INB_P" to="net.LP_INB" />
    <trace from=".C_LP2 > .pin1" to="net.LP_INB" />
    <trace from=".C_LP2 > .pin2" to="net.SGND" />
    <trace from=".U2 > .INB_N" to="net.LP_OUT" />

    <trace from="net.LP_OUT" to=".R_INV1 > .pin1" />
    <trace from=".R_INV1 > .pin2" to=".U3 > .INA_N" />
    <trace from=".U3 > .INA_N" to=".R_INV2 > .pin1" />
    <trace from=".R_INV2 > .pin2" to=".U3 > .OUTA" />
    <trace from=".U3 > .INA_P" to="net.SGND" />

    <trace from="net.LP_OUT" to=".SW_PHASE > .P0" />
    <trace from=".U3 > .OUTA" to=".SW_PHASE > .P180" />
    <trace from=".SW_PHASE > .COM" to=".POT_VOL > .IN" />
    <trace from=".POT_VOL > .GND" to="net.SGND" />
    <trace from=".POT_VOL > .WIPER" to=".U3 > .INB_P" />

    <trace from=".U3 > .INB_N" to=".R_PRE1 > .pin1" />
    <trace from=".R_PRE1 > .pin2" to="net.SGND" />
    <trace from=".U3 > .INB_N" to=".R_PRE2 > .pin1" />
    <trace from=".R_PRE2 > .pin2" to="net.PRE_OUT" />
  </board>
)