ShiboSoftwareDev/am69-pi5
A 85×56 mm 10-layer AM69A single-board computer carrier integrates 8 GiB LPDDR4, 32 GB eMMC, Pi-style expansion and multimedia/USB/Ethernet connectors, multi-rail PMIC power, STM32 boot/power control, USB-C PD, SD/fan protection, and HDI-controlled high-speed routing.
- Version
- 0.0.8-engineering-draft-20261107-dqs19
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone ShiboSoftwareDev/am69-pi5 # download the package files into ./am69-pi5
tsci add ShiboSoftwareDev/am69-pi5 # add it to your project as @tsci/ShiboSoftwareDev.am69-pi5In 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.
components/shared/power-stages/TPS62873RXSFootprint.tsx
// TI RXS0016A, drawing 4226093/E (09/2022), Example Board Layout/Stencil.
// Independent functional geometry reconstruction; no third-party library copied.
// 16 leads plus exposed pad 17. See RXS0016A.provenance.json for source/review.
import {NativePolygonMaskExpansion} from '../power/footprints/NativePolygonMaskExpansion'
type Point = { x: number, y: number }
/** Fillet the drawing's orthogonal corners, using eight chords per quarter arc. */
function fillet(vertices: [number, number][], radius = 0.05): Point[] {
return vertices.flatMap((v, index) => {
const previous = vertices[(index + vertices.length - 1) % vertices.length]
const next = vertices[(index + 1) % vertices.length]
const incomingLength = Math.hypot(v[0] - previous[0], v[1] - previous[1])
const outgoingLength = Math.hypot(next[0] - v[0], next[1] - v[1])
const incoming = [(v[0] - previous[0]) / incomingLength, (v[1] - previous[1]) / incomingLength]
const outgoing = [(next[0] - v[0]) / outgoingLength, (next[1] - v[1]) / outgoingLength]
const r = Math.min(radius, incomingLength / 2, outgoingLength / 2)
const center = [v[0] - incoming[0] * r + outgoing[0] * r,
v[1] - incoming[1] * r + outgoing[1] * r]
const start = Math.atan2(-outgoing[1], -outgoing[0])
const direction = Math.sign(incoming[0] * outgoing[1] - incoming[1] * outgoing[0])
return Array.from({ length: 9 }, (_, step) => {
const angle = start + direction * Math.PI / 2 * step / 8
return { x: center[0] + r * Math.cos(angle), y: center[1] + r * Math.sin(angle) }
})
})
}
// Coordinates use component top view with pin1 at the upper-left corner.
// TI: small exposed lands 0.6x0.25 mm; side centers ±1.175 mm;
// top centers y=1.675 mm; 0.5 mm lead pitch; corner radius R0.05.
const sidePads = [
[2, -1.175, 1], [3, -1.175, 0.5], [4, -1.175, 0], [5, -1.175, -0.5],
[9, 1.175, -0.5], [10, 1.175, 0], [11, 1.175, 0.5], [12, 1.175, 1],
] as const
const topPads = [[14, 0.5], [15, 0], [16, -0.5]] as const
const corner1 = fillet([
[-1.125, 1.975], [-0.875, 1.975], [-0.875, 1.375],
[-1.475, 1.375], [-1.475, 1.625], [-1.125, 1.625],
])
const ground6Opening = fillet([
[-1.125, -1.97], [-0.875, -1.97], [-0.875, -0.875],
[-1.475, -0.875], [-1.475, -1.125], [-1.125, -1.125],
[-1.125, -1.375], [-1.475, -1.375], [-1.475, -1.625], [-1.125, -1.625],
])
const switch7Opening = fillet([
[-0.625, -1.97], [-0.375, -1.97], [-0.375, -1.62], [-0.125, -1.62],
[-0.125, -1.97], [0.125, -1.97], [0.125, -1.62], [0.375, -1.62],
[0.375, -1.97], [0.625, -1.97], [0.625, -1.37], [-0.625, -1.37],
])
// Broad power copper envelopes are covered by mask; exposed smaller contours
// above enforce the TI solder-mask-defined opening. Copper extends ≥0.05 mm
// beyond openings, as required by the drawing's SMD mask detail.
const ground6Copper = fillet([
[-1.525, -0.825], [-0.825, -0.825], [-0.825, -2.02],
[-1.175, -2.02], [-1.175, -1.675], [-1.525, -1.675],
])
const mirrorX = (points: Point[]): Point[] => points.map(p => ({ x: -p.x, y: p.y }))
/** Geometry only. Use inside the actual TPS62873 chip's footprint prop. */
export const TPS62873RXSFootprint = () => <footprint>
{sidePads.map(([pin, x, y]) => <smtpad key={`side${pin}`} portHints={[String(pin)]}
pcbX={x} pcbY={y} layer="top" shape="rect" width={0.6} height={0.25}
cornerRadius={0.05} solderMaskMargin={0.05} solderPasteMargin={0} />)}
{topPads.map(([pin, x]) => <smtpad key={`top${pin}`} portHints={[String(pin)]}
pcbX={x} pcbY={1.675} layer="top" shape="rect" width={0.25} height={0.6}
cornerRadius={0.05} solderMaskMargin={0.05} solderPasteMargin={0} />)}
<smtpad portHints={["1"]} layer="top" shape="polygon" points={corner1}
solderMaskMargin={0} solderPasteMargin={0} />
<smtpad portHints={["13"]} layer="top" shape="polygon" points={mirrorX(corner1)}
solderMaskMargin={0} solderPasteMargin={0} />
{/* The pinned native exporter ignores polygon solderMaskMargin. Explicit
native mask openings implement TI's 50um corner-lead expansion. */}
<NativePolygonMaskExpansion points={corner1} margin={.05} />
<NativePolygonMaskExpansion points={mirrorX(corner1)} margin={.05} />
{/* Contained native port anchors. Polygon bounding-box centres for the
L-shaped leads lie outside copper. These rectangles only overlap
existing copper; their mask/paste are disabled. */}
{([-1,1]as const).flatMap(sign=>[
<smtpad key={`corner-land${sign}`} portHints={[sign===-1?'1':'13']} layer="top" shape="rect"
pcbX={sign} pcbY={1.7} width={.25} height={.3} coveredWithSolderMask noSolderPaste />,
<smtpad key={`corner-anchor${sign}`} portHints={[sign===-1?'1':'13']} layer="top" shape="rect"
pcbX={sign*.95} pcbY={1.7} width={.1} height={.3} coveredWithSolderMask noSolderPaste />,
])}
<smtpad portHints={["6"]} layer="top" shape="polygon" points={ground6Copper}
coveredWithSolderMask noSolderPaste />
<smtpad portHints={["8"]} layer="top" shape="polygon" points={mirrorX(ground6Copper)}
coveredWithSolderMask noSolderPaste />
{([-1,1]as const).map(sign=><smtpad key={`ground-anchor${sign}`} portHints={[sign===-1?'6':'8']}
layer="top" shape="rect" pcbX={sign*1.175} pcbY={-1.4225} width={.3} height={.3}
coveredWithSolderMask noSolderPaste />)}
<smtpad portHints={["7"]} layer="top" shape="rect" pcbX={0} pcbY={-1.67}
width={1.35} height={0.7} coveredWithSolderMask noSolderPaste />
<smtpad portHints={["6"]} layer="top" shape="polygon" points={ground6Opening}
solderMaskMargin={0} solderPasteMargin={0} />
<smtpad portHints={["8"]} layer="top" shape="polygon" points={mirrorX(ground6Opening)}
solderMaskMargin={0} solderPasteMargin={0} />
<smtpad portHints={["7"]} layer="top" shape="polygon" points={switch7Opening}
solderMaskMargin={0} solderPasteMargin={0} />
<smtpad portHints={["17"]} layer="top" shape="rect" pcbX={0} pcbY={0}
width={1.25} height={2.25} solderMaskMargin={0.05} noSolderPaste />
<solderpaste layer="top" shape="rect" pcbX={0} pcbY={0.6} width={1.17} height={1} />
<solderpaste layer="top" shape="rect" pcbX={0} pcbY={-0.6} width={1.17} height={1} />
<fabricationnotepath strokeWidth={0.05} route={[
{ x: -1.275, y: 1.775 }, { x: 1.275, y: 1.775 },
{ x: 1.275, y: -1.775 }, { x: -1.275, y: -1.775 }, { x: -1.275, y: 1.775 },
]} />
<courtyardoutline layer="top" outline={[
{ x: -1.775, y: -2.275 }, { x: -1.775, y: 2.275 },
{ x: 1.775, y: 2.275 }, { x: 1.775, y: -2.275 },
]} />
</footprint>