seveibar/1206_x4

This code defines a PCB footprint for an 8-pin 1206-sized resistor network with surface-mount pads arranged on both sides in a compact rectangular package.

Usage: To use the "@tsci/seveibar.1206_x4" component in a project: 1. Import the component: ```tsx import RN1 from "@tsci/seveibar.1206_x4" ``` 2. Use the component in a circuit: ```tsx <board> <RN1 name="RN1" /> </board> ``` The component represents an 8-pin 1206 resistor network with pins numbered 1-8, with 4 pins on each side. You can place and connect it like other tscircuit components using traces and net connections.

Version
0.0.2
License
unset
Stars
0

index.tsx

PCBPCB preview for index.tsx
SchematicSchematic preview for index.tsx
export default () => (
    <chip
      name="RN1"
      pinLabels={{
        pin1: "1",
        pin2: "2",
        pin3: "3",
        pin4: "4",
        pin5: "5",
        pin6: "6",
        pin7: "7",
        pin8: "8",
      }}
      footprint={
        <footprint>
          {/**
           * 1206_x4 (8-pin) resistor network footprint (typical)
           *
           * Rotated so pads are on LEFT/RIGHT sides (4 per side).
           * pin1 = top-left (max Y, min X)
           * CCW numbering:
           *   Left side:  pin1 -> pin4  (top to bottom)
           *   Right side: pin5 -> pin8  (bottom to top)
           *
           * Origin at package center.
           * Pitch between pads on a side: 1.27mm
           */}

          {/* Pad geometry (typical starting point) */}
          {/* Long dimension points outward from body (X direction) */}
          {/* You can tune these to match a specific datasheet */}
          {/* padWidth = X, padHeight = Y */}
          {/* rowX = distance from center to pad centers on left/right */}
          {/* y positions use 1.27mm pitch: ±1.905, ±0.635 */}
          {/* (since 1.905 = 1.5 * 1.27, 0.635 = 0.5 * 1.27) */}

          {/* LEFT side pads (x = -1.35mm), pins 1..4 top->bottom */}
          <smtpad
            portHints={["pin1"]}
            layer="top"
            shape="rect"
            pcbX="-1.35mm"
            pcbY="1.905mm"
            width="0.80mm"
            height="0.50mm"
          />
          <smtpad
            portHints={["pin2"]}
            layer="top"
            shape="rect"
            pcbX="-1.35mm"
            pcbY="0.635mm"
            width="0.80mm"
            height="0.50mm"
          />
          <smtpad
            portHints={["pin3"]}
            layer="top"
            shape="rect"
            pcbX="-1.35mm"
            pcbY="-0.635mm"
            width="0.80mm"
            height="0.50mm"
          />
          <smtpad
            portHints={["pin4"]}
            layer="top"
            shape="rect"
            pcbX="-1.35mm"
            pcbY="-1.905mm"
            width="0.80mm"
            height="0.50mm"
          />

          {/* RIGHT side pads (x = +1.35mm), pins 5..8 bottom->top (CCW) */}
          <smtpad
            portHints={["pin5"]}
            layer="top"
            shape="rect"
            pcbX="1.35mm"
            pcbY="-1.905mm"
            width="0.80mm"
            height="0.50mm"
          />
          <smtpad
            portHints={["pin6"]}
            layer="top"
            shape="rect"
            pcbX="1.35mm"
            pcbY="-0.635mm"
            width="0.80mm"
            height="0.50mm"
          />
          <smtpad
            portHints={["pin7"]}
            layer="top"
            shape="rect"
            pcbX="1.35mm"
            pcbY="0.635mm"
            width="0.80mm"
            height="0.50mm"
          />
          <smtpad
            portHints={["pin8"]}
            layer="top"
            shape="rect"
            pcbX="1.35mm"
            pcbY="1.905mm"
            width="0.80mm"
            height="0.50mm"
          />
        </footprint>
      }
    />
)