seveibar/minimal-rp2040

This design features a Raspberry Pi RP2040 microcontroller with integrated decoupling capacitors, QSPI flash memory, crystal oscillator, and USB power circuitry, all mounted on a 65mm by 60mm four-layer PCB.

Usage: To import and use the RP2040 component in a tscircuit project: 1. Import the component: ```tsx import { RP2040 } from "@tsci/seveibar.minimal-rp2040" ``` 2. Use the component in a board: ```tsx <board> <RP2040 name="U3" pcbX={0} pcbY={0} connections={{ IOVDD1: "net.V3V3", // Add other required connections }} /> </board> ``` Key points: - Specify a name for the component - Set position using `pcbX` and `pcbY` - Define necessary network connections in the `connections` prop - Ensure proper power and ground connections

Version
1.0.1
License
unset
Stars
1

lib/Decoupling.tsx

export const Decoupling = () => (
  <>
    {/* 1V1 internal rail */}
    <capacitor
      name="C6"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.DVDD1", neg: "net.GND" }}
    />
    <capacitor
      name="C7"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.DVDD2", neg: "net.GND" }}
    />
    <capacitor
      name="C8"
      footprint="0402"
      capacitance="1uF"
      connections={{ pos: "U3.VREG_IN", neg: "net.GND" }}
    />

    {/* 3V3 around RP2040 */}
    <capacitor
      name="C9"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.IOVDD1", neg: "net.GND" }}
    />
    <capacitor
      name="C11"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.IOVDD2", neg: "net.GND" }}
    />
    <capacitor
      name="C12"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.IOVDD3", neg: "net.GND" }}
    />
    <capacitor
      name="C13"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.IOVDD4", neg: "net.GND" }}
    />
    <capacitor
      name="C14"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.IOVDD5", neg: "net.GND" }}
    />
    <capacitor
      name="C18"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.IOVDD6", neg: "net.GND" }}
    />
    <capacitor
      name="C15"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.USB_VDD", neg: "net.GND" }}
    />
    <capacitor
      name="C16"
      footprint="0402"
      capacitance="100nF"
      connections={{ pos: "U3.ADC_AVDD", neg: "net.GND" }}
    />
    <capacitor
      name="C10"
      footprint="0402"
      capacitance="1uF"
      connections={{ pos: "U3.VREG_VOUT", neg: "net.GND" }}
    />
  </>
)