tscircuit/rv1106g2-breakout

This code defines a set of PCB components and their footprints, including connecters, chips, resistors, capacitors, and other hardware parts, for assembling a Core1106-based circuit board with detailed pinouts, footprints, and 3D models.

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 tscircuit/rv1106g2-breakout  # download the package files into ./rv1106g2-breakout
tsci add tscircuit/rv1106g2-breakout    # add it to your project as @tsci/tscircuit.rv1106g2-breakout

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.

components/BoardConnectors.tsx

import type { ConnectorProps } from "@tscircuit/props"

const ffc24Footprint = (
  <footprint>
    {Array.from({ length: 24 }, (_, index) => (
      <smtpad
        shape="rect"
        width="0.3mm"
        height="1.3mm"
        pcbX={-5.75 + index * 0.5}
        pcbY={1.85}
        portHints={[`pin${index + 1}`]}
      />
    ))}
    <smtpad shape="rect" width="1.8mm" height="2.2mm" pcbX={-7.65} pcbY={-1.4} portHints={["pin25"]} />
    <smtpad shape="rect" width="1.8mm" height="2.2mm" pcbX={7.65} pcbY={-1.4} portHints={["pin26"]} />
    <silkscreenrect width="17.2mm" height="6.2mm" pcbY={-0.7} />
    <silkscreentext text="24P FFC 0.5" pcbY={-1.2} fontSize="0.7mm" />
    <courtyardrect width="18mm" height="7mm" pcbY={-0.7} />
  </footprint>
)
export const Ffc24Connector = (
  props: Omit<ConnectorProps, "footprint" | "pinCount">,
) => (
  <connector
    {...props}
    pinCount={26}
    manufacturerPartNumber="Hirose FH12-24S-0.5SH"
    footprint={ffc24Footprint}
  />
)

const microSdFootprint = (
  <footprint>
    {Array.from({ length: 9 }, (_, index) => (
      <smtpad
        shape="rect"
        width="0.7mm"
        height="1.2mm"
        pcbX={2.775 - index * 1.1}
        pcbY={7.725}
        portHints={[`pin${index + 1}`]}
      />
    ))}
    <smtpad shape="rect" width="1mm" height="0.8mm" pcbX={-6.825} pcbY={-2.775} portHints={["pin10"]} />
    <smtpad shape="rect" width="1mm" height="1.2mm" pcbX={-6.825} pcbY={3.425} portHints={["pin11"]} />
    <smtpad shape="rect" width="1mm" height="2.8mm" pcbX={-6.825} pcbY={-6.925} portHints={["pin12"]} />
    <smtpad shape="rect" width="1mm" height="1.2mm" pcbX={4.325} pcbY={7.725} portHints={["pin13"]} />
    <smtpad shape="rect" width="1.3mm" height="1.9mm" pcbX={6.675} pcbY={-7.375} portHints={["pin14"]} />
    <silkscreenrect width="15.2mm" height="16.4mm" />
    <silkscreentext text="microSD" pcbY={0} fontSize="1mm" />
    <courtyardrect width="16mm" height="17.2mm" />
  </footprint>
)

export const MicroSdConnector = (
  props: Omit<ConnectorProps, "footprint" | "pinCount">,
) => (
  <connector
    {...props}
    pinCount={14}
    manufacturerPartNumber="Hirose DM3AT-SF-PEJM5"
    footprint={microSdFootprint}
  />
)