pixalynx/pixal-nfc-card

This code defines React components representing specific electronic hardware components—namely, a 100-ohm SMD resistor, a surface-mount LED, and a chip with labeled pins—each modeled with detailed footprints, 3D CAD models, and manufacturer part information for PCB design.

Version
1.1.0
License
unset
Stars
0

lib/layout.ts

import type { CoilSpec } from "./coil"

/** ISO/IEC 7810 ID-1 (credit card) outline, centred on the board origin */
export const CARD = { width: 85.6, height: 54, cornerRadius: 3.18, thickness: 0.6 }

/** Bottom antenna: nominal 2.54 uH with 50 pF IC capacitance gives ~14.1 MHz.
 * This is an estimate, not a tuning result. Qualify resonance in the final
 * nonmetallic stack; see docs/RF-VALIDATION.md before production release. */
export const COIL: CoilSpec = {
  left: -39.3,
  right: 6.7,
  bottom: -22,
  top: 22,
  turns: 5,
  width: 0.45,
  gap: 0.45,
  leadOffset: 3,
}

/** Top-side parts, placed just right of the coil terminals */
export const PARTS = {
  // rotated 180 so AC0/AC1 (pins 3/4) face the coil
  U1: { x: 13.5, y: 0, rot: 180 },
}

export const LEAD_WIDTH = 0.25
export const TERMINAL = { outerDiameter: 0.8, holeDiameter: 0.3 }