sangit/dataset-srj11-45-degree

This code defines a PCB layout with test points, obstacles, and routed traces, including components like rotated and twin pads for physical hardware design.

Version
0.1.0
License
unset
Stars
0

circuits/sample003.circuit.tsx

PCBPCB preview for circuits/sample003.circuit.tsx
SchematicSchematic preview for circuits/sample003.circuit.tsx
import { DiagonalTwinPadObstacle, SingleTraceBoard } from "./common"

/** Rising tunnel bounded by diagonal twin-pad stretches with an about-0.1mm sliver in each stretch. */
export default () => (
  <SingleTraceBoard
    width={19}
    height={9}
    start={{ x: -7.4, y: -1.5 }}
    end={{ x: 7.4, y: 1.5 }}
  >
    <DiagonalTwinPadObstacle
      name="OBS1"
      pcbX={-2.25}
      pcbY={2.25}
      padSize={1.9}
      gap={0.11}
      stretchRotation={-45}
      padRotation={0}
    />
    <DiagonalTwinPadObstacle
      name="OBS2"
      pcbX={2.25}
      pcbY={-2.25}
      padSize={1.9}
      gap={0.11}
      stretchRotation={-45}
      padRotation={0}
    />
  </SingleTraceBoard>
)