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-driverIn 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.
assets/assembly/provenance.json
{
"units": "mm",
"pcb": {
"source": "dist/assembly/circuit.json",
"geometry": "Routed tscircuit PCB and its actual component placement. The GLB export checks for a mesh for every fitted placement. Copper test pads appear in the PCB texture.",
"routing": "Board copper comes from the normal board source. External harnesses are CAD-only."
},
"peltier": {
"description": "Same Sky CP60440, one sealed single-stage TEC",
"source": "https://www.digikey.in/en/products/detail/same-sky-formerly-cui-devices/CP60440/1747370",
"datasheet": "https://www.sameskydevices.com/product/resource/cp60.pdf",
"bodyDimensionsMm": [
40,
40,
4
],
"geometry": "Nominal body drawn from the CP60 mechanical drawing. The marked cold ceramic faces the cold plate. The model depicts the factory lead exits and illustrative bends.",
"nativePart": "TEC_DEFAULT",
"leadParts": [
{
"nativePart": "TEC_POS_LEAD",
"boardConnector": "J_TEC",
"pin": "pin1",
"polarity": "positive",
"illustrationColor": "red"
},
{
"nativePart": "TEC_NEG_LEAD",
"boardConnector": "J_TEC",
"pin": "pin2",
"polarity": "negative",
"illustrationColor": "black"
}
]
},
"officialCadAttempts": [
{
"part": "GCT USB4110-GF-A",
"source": "https://gct.co/connector/usb4110",
"drawingSource": "https://www.mouser.com/catalog/specsheets/GCT_USB4110%20Product%20Drawing%20-%2020k%20cycles.pdf",
"result": "Native model follows GCT's body and mating cavity dimensions. The shell and insulating tongue are shown in the installed orientation."
},
{
"part": "TI TPS55289RYQR",
"source": "https://www.ti.com/product/TPS55289",
"cadSource": "https://vendor.ultralibrarian.com/TI/embedded/?gpn=TPS55289&package=RYQ&pin=21",
"result": "Manufacturer-linked CAD export requires registered authorization. Use TI RYQ0021A drawing-derived 5 x 3 x 1 mm maximum-height package envelope where no supplier mesh is present.",
"drawingSource": "https://www.ti.com/lit/pdf/MPQF641"
},
{
"part": "DFRobot DFR0198 wired DS18B20 probe",
"source": "https://wiki.dfrobot.com/dfr0198",
"result": "The manufacturer specifies the stainless sleeve dimensions, cable diameter and lead colors. Model drawn from those dimensions."
},
{
"part": "Noctua NF-A8 family CAD for selected NF-A8 PWM",
"source": "https://www.noctua.at/en/products/nf-a8-pwm/downloads",
"cadSource": "https://cdn.noctua.at/media/f3e65726/NF-A8_Public-CAD.zip?download=true",
"result": "Official STEP and manufacturer usage notice downloaded and retained. Offline tessellation preserves external/mounting geometry at moderate detail; internal geometry follows the manufacturer public-model limitation. See fan.geometry for conversion/source provenance."
}
],
"assemblyLimitations": "Bench fixture geometry, with simplified heatsink fins and cable paths. Machining fit, clamp force, airflow and thermal performance require checks on the built fixture.",
"thermalStack": {
"heatsink": "Fischer Elektronik SK 595 100 AL",
"heatsinkSource": "https://www.digikey.in/en/products/detail/fischer-elektronik/SK-595-100-AL/25828759",
"heatsinkProfileDrawing": "https://www.tme.eu/Document/23cee837e3b77859cb22816be07c871e/SK5951000SA.pdf",
"coldPlate": "80 × 76 × 10 mm 6061-T6 aluminium, machined per docs/assembly.md",
"fanDuct": "Original CAD in src/assembly/thermal-stack.ts, exported as fan-duct.stl",
"assemblyInstructions": "docs/assembly.md"
},
"usbCables": {
"description": "Two Cable Matters 201440 USB-C to USB-C USB 2.0 data / 240 W / 5 A cables, 1 m option",
"source": "https://www.cablematters.com/pc-1532-123-usb-c-20-charging-cable-with-240w-power-delivery.aspx",
"quantity": 2,
"roles": [
{
"boardPort": "J_USB",
"role": "PD power from 100 W USB-C charger",
"illustrationColor": "black",
"nativePart": "USB_PD_CABLE"
},
{
"boardPort": "J_PROGRAM",
"role": "Program/debug USB 2.0 connection to PC",
"illustrationColor": "light gray",
"nativePart": "USB_PROGRAM_CABLE"
}
],
"electricalRating": "Manufacturer specifies up to 48 V / 5 A power delivery, an E-Marker, and USB 2.0 data up to 480 Mbps. Both roles can use this same cable product. Board data speed is determined by its USB implementation.",
"geometry": "Connection illustrations. Only short segments and board-side plugs are shown. Manufacturer does not publish plug/jacket CAD or dimensions; shapes and role colors are indicative, not fit-qualified geometry. Cable slack, charger end and PC end are omitted."
},
"nativeAssembly": {
"source": "src/assembly/general-pd-assembly.tsx",
"geometrySource": "src/assembly/models.ts",
"connectorMappingSource": "src/assembly/connector-placement.ts",
"api": "https://docs.tscircuit.com/elements/assembly-part",
"geometry": "Native assembly.device with the routed PCB and CAD-only parts for the thermal stack, probes, fan, and wiring. The fan uses official NF-A8 family CAD. Body dimensions follow the selected parts and the custom plate drawings. Cable paths and connector mating heights are illustrative."
},
"temperatureProbes": {
"description": "Two DFRobot DFR0198 wired stainless DS18B20 probes",
"source": "https://www.digikey.in/en/products/detail/dfrobot/DFR0198/7597054",
"manufacturerSpecifications": "https://wiki.dfrobot.com/dfr0198",
"quantityUsed": 2,
"cableLengthMm": 900,
"housingDimensionsVerified": true,
"housingEnvelopeMm": {
"diameter": 6,
"length": 35
},
"housingDimensionEvidence": "DFRobot specifies a 6 × 35 mm stainless tube and 4 mm cable. Its Wiki gives 900 mm cable length and the product introduction gives 950 mm.",
"wireMap": [
{
"pin": "pin1",
"signal": "CTRL_3V3",
"color": "red"
},
{
"pin": "pin2",
"signal": "HOT_SENSOR_DATA / COLD_SENSOR_DATA",
"color": "yellow"
},
{
"pin": "pin3",
"signal": "GND",
"color": "black"
}
],
"roles": [
{
"role": "HOT",
"boardPort": "J_HOT_SENSOR",
"nativePart": "HOT_PROBE",
"cableNativePart": "HOT_PROBE_CABLE",
"gpio": "GP8"
},
{
"role": "COLD",
"boardPort": "J_COLD_SENSOR",
"nativePart": "COLD_PROBE",
"cableNativePart": "COLD_PROBE_CABLE",
"gpio": "GP9"
}
],
"geometry": "Drawing-derived 6 × 35 mm cylinder and 4 mm jacket. The three exposed conductors use DFRobot lead colors. The preview shows shortened paths.",
"placement": "HOT sits in the heatsink base bore and COLD sits in the cold-plate bore. Explode the stack in the viewer to inspect the probe bodies."
},
"fan": {
"description": "Noctua NF-A8 PWM 12 V, direct factory cable without Low-Noise Adaptor or extension",
"source": "https://www.amazon.com/dp/B00NEMG62M",
"manufacturerSpecifications": "https://www.noctua.at/en/products/nf-a8-pwm/specifications",
"manufacturerSpecificationPdf": "https://cdn.noctua.at/media/800cb82a/Noctua%20NF-A8%20PWM%20Specification.pdf?download=true",
"manufacturerWiring": "https://noctua.at/pub/media/wysiwyg/Noctua_PWM_specifications_white_paper.pdf",
"nativePart": "FAN_DEFAULT",
"cableNativePart": "FAN_CABLE",
"boardConnector": "J_FAN",
"bodyDimensionsMm": [
80,
80,
25
],
"bodyWithPadsDimensionsMm": [
81,
81,
27
],
"mountingHoleSpacingMm": 71.5,
"dimensionsVerified": true,
"nominalVoltageV": 12,
"maximumInputCurrentA": 0.08,
"boardContinuousFanBudgetA": 0.5,
"cableLengthMm": 200,
"includedOptionalExtensionMm": 300,
"extensionFitted": false,
"lowNoiseAdaptorFitted": false,
"cableDescription": "Manufacturer 26 AWG, black mesh-sleeved four-wire factory cable with A2543-4PIN (or equivalent) plug; mates the Molex47053-1000 header.",
"wireMap": [
{
"pin": "pin1",
"signal": "GND",
"color": "black",
"boardConnected": true
},
{
"pin": "pin2",
"signal": "FAN_12V",
"color": "yellow",
"boardConnected": true
},
{
"pin": "pin3",
"signal": "TACH_NC",
"color": "green",
"boardConnected": false
},
{
"pin": "pin4",
"signal": "PWM_NC",
"color": "blue",
"boardConnected": false
}
],
"geometry": {
"source": "Official Noctua NF-A8 family CAD, used for the selected NF-A8 PWM external and mounting dimensions; not a uniquely PWM-specific STEP.",
"archiveUrl": "https://cdn.noctua.at/media/f3e65726/NF-A8_Public-CAD.zip?download=true",
"downloadPage": "https://www.noctua.at/en/products/nf-a8-pwm/downloads",
"originalStep": "src/assembly/assets/NF-A8_Public-CAD.stp",
"sourceNotice": "src/assembly/assets/Noctua-CAD-README.txt",
"stepSha256": "b6dbbc33922844d38642564fdabcf52d54a8769e69123471472242e18bb0e0ef",
"derivedMesh": "src/assembly/assets/noctua-nf-a8-pwm.mesh.json",
"conversion": {
"tool": "occt-import-js, offline ReadStepFile",
"linearUnit": "millimeter",
"linearDeflectionType": "absolute_value",
"linearDeflectionMm": 0.5,
"angularDeflectionRadians": 0.8,
"vertexZOffsetMm": 6.5,
"coordinateDecimalPlaces": 4,
"meshCount": 12,
"triangles": 31113,
"vertices": 30216
},
"appearance": "Manufacturer CAD colors retained where supplied. Uncolored rotor meshes use brown [0.26, 0.12, 0.06]; uncolored label mesh uses gray [0.12, 0.12, 0.12]. These are visualization defaults.",
"manufacturerLimit": "Manufacturer permits visualization/integration reference. Internal impeller geometry is modified to protect IP; not for performance simulation or reproducing/manufacturing the fan."
},
"cableGeometry": "Illustrative keyed plug and sleeve. The contact and key XY coordinates match the board footprint. The route fits within the nominal 200 mm factory cable.",
"placement": "Fan flange meets the 71.5 mm mounting pattern on the printed inlet duct. The physical fan's discharge side faces the heatsink fins.",
"electricalUse": "Pins 1/2 provide fixed 12 V power. Pin 3 tach and pin 4 PWM remain physically present in the plug but are NC on the board; unconnected PWM runs at full speed. Manufacturer maximum input current is not a published startup-current peak."
}
}