0hmX/TMDS62LEVM

This code defines the physical layout and component placement for a TI AM62L evaluation module, including mechanical and population components, without routing.

Version
1.0.2
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone 0hmX/TMDS62LEVM  # download the package files into ./TMDS62LEVM
tsci add 0hmX/TMDS62LEVM    # add it to your project as @tsci/0hmX.TMDS62LEVM

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.

src/generated/BoardMechanicals.tsx

const mountingHoles = [
  { name: "H1", pcbX: -65.46, pcbY: -68.88 },
  { name: "H2", pcbX: 65.46, pcbY: -68.88 },
  { name: "H3", pcbX: -65.46, pcbY: 68.88 },
  { name: "H4", pcbX: 65.46, pcbY: 68.88 },
] as const

const MountingHole = ({
  name,
  pcbX,
  pcbY,
}: (typeof mountingHoles)[number]) => (
  <hole name={name} pcbX={pcbX} pcbY={pcbY} diameter={2.75} />
)

export const BoardMechanicals = () => (
  <>
    {mountingHoles.map((hole) => (
      <MountingHole key={hole.name} {...hole} />
    ))}
    <silkscreentext
      pcbX={0}
      pcbY={-69.8}
      text="PROC181E1-1  TMDS62LEVM"
      fontSize={1.1}
      anchorAlignment="center"
    />
  </>
)