These are community-contributed "common" boards or components distributed with tscircuit
import { ArduinoShield } from "tscircuit/common"
return (
<ArduinoShield
chipProps={{ connections: { GND1: "net.GND" } }}
boardProps={{ solderMaskColor: "blue", autorouter: "auto" }}
>
{/* ... */}
</ArduinoShield>
)The RP2040 subcircuit includes the microcontroller, QSPI flash, crystal, USB-C, power regulation, decoupling, boot/run controls, and SWD test points:
import { Microcontroller_RP2040 } from "@tscircuit/common"
return <Microcontroller_RP2040 name="MCU" pcbX={0} pcbY={0} />The MT3608 power-boost subcircuit includes its battery connector, cutoff
MOSFET, USB-present shutdown, boost converter, feedback divider, and
input/output filtering. Place the power switch on the parent board between
BAT_POS and BAT_SWITCHED, or connect them to the same net for always-on
operation:
import { PowerBoost_MT3608 } from "@tscircuit/common"
return (
<>
<PowerBoost_MT3608
name="POWER"
exposedNets={["BAT_POS", "BAT_SWITCHED", "VBUS", "VSYS", "GND"]}
/>
<trace from="net.BAT_POS" to="net.BAT_SWITCHED" />
</>
)The trace above configures the battery input as always on. Replace it with a
switch between BAT_POS and BAT_SWITCHED when switched operation is needed.
The Game Boy PAM8403 3 W audio-amplifier subcircuit includes the PWM input filter, input coupling, amplifier decoupling, speaker EMI filter, and speaker connector:
import { AudioAmplifier3W_PAM8403 } from "@tscircuit/common"
return (
<AudioAmplifier3W_PAM8403
name="AUDIO"
exposedNets={["AUDIO_PWM", "V3V3", "VSYS", "GND"]}
/>
)Internal nets remain private by default. Use exposedNets to expose a selected
set, or exposeNets when every internal net should be exposed.
Add the tscircuit ts/dot logo to your board's silkscreen:
import { TscircuitLogo } from "@tscircuit/common"
return (
<board width="40mm" height="25mm">
<TscircuitLogo pcbX={0} pcbY={-7} />
</board>
)The embedded monochrome logo needs no network access. It is centered at pcbX
and pcbY and defaults to 6 × 6 mm. Use scale (default 1) to resize it
uniformly, pcbRotation to rotate it in degrees, and layer="bottom" for bottom
silkscreen. It adds no text, electrical components, or copper.