rushabhcodes/simple-usb-c-pd-peltier-driver

Reference-based four-layer USB-C PD Peltier driver with RP2040 control, adjustable voltage/current limits, fan power and temperature probes.

Version
0.3.1
License
MIT
Stars
0

Use with the tscircuit CLI

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

tsci clone rushabhcodes/simple-usb-c-pd-peltier-driver  # download the package files into ./simple-usb-c-pd-peltier-driver
tsci add rushabhcodes/simple-usb-c-pd-peltier-driver    # add it to your project as @tsci/rushabhcodes.simple-usb-c-pd-peltier-driver

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/parts/Samsung0402Capacitors.tsx

import type { CapacitorProps } from "@tscircuit/props"
import { CL05B104KB5NNNC } from "../../imports/CL05B104KB5NNNC"

// Samsung MLCC Product Manual §5-4: 1005 reflow lands, gap 0.40 mm,
// length 0.45 mm and width 0.55 mm for the ±0.05 mm body tolerance.
// https://media.digikey.com/pdf/Data%20Sheets/Samsung%20PDFs/CL05B104KB5NNNC_Spec.pdf
const footprint0402 = (height: number) => <footprint>
  <smtpad portHints={["pin1", "pos"]} pcbX={-0.425} pcbY={0} width={0.45} height={height} shape="rect" solderMaskMargin={0.05} solderPasteMargin={0} />
  <smtpad portHints={["pin2", "neg"]} pcbX={0.425} pcbY={0} width={0.45} height={height} shape="rect" solderMaskMargin={0.05} solderPasteMargin={0} />
  <courtyardoutline outline={[{x:-0.75,y:-0.4},{x:0.75,y:-0.4},{x:0.75,y:0.4},{x:-0.75,y:0.4},{x:-0.75,y:-0.4}]} />
</footprint>

type Props = Omit<CapacitorProps, "capacitance">

// https://product.samsungsem.com/mlcc/CL05B104KB5NNN.do
export const Capacitor100nF0402 = (props: Props) => <CL05B104KB5NNNC
  maxVoltageRating="50V" manufacturerPartNumber="CL05B104KB5NNNC"
  supplierPartNumbers={{ jlcpcb: ["C960916"] }} footprint={footprint0402(0.55)} {...props} />