AnasSarkiz/VoltPeek

This code defines a PCB layout featuring a voltage probe module with key components including an RP2040 microcontroller, resistors, LEDs, connectors, and a custom probe interface, along with their physical footprints and routing details.

Version
1.0.0
License
unset
Stars
0

dist/index.cjs

'use strict';

var jsxRuntime = require('react/jsx-runtime');

const pinLabels$1 = {
    pin1: ["pin1"],
    pin2: ["pin2"],
    pin3: ["pin3"],
    pin4: ["pin4"]
};
const PJ_320D = (props) => {
    return (jsxRuntime.jsx("chip", { pinLabels: pinLabels$1, supplierPartNumbers: {
            "jlcpcb": [
                "C431535"
            ]
        }, manufacturerPartNumber: "PJ_320D", footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("hole", { pcbX: "-5.29995125mm", pcbY: "-0.000127mm", diameter: "0.999998mm" }), jsxRuntime.jsx("hole", { pcbX: "1.70003475mm", pcbY: "-0.000127mm", diameter: "0.999998mm" }), jsxRuntime.jsx("smtpad", { portHints: ["pin2"], pcbX: "-3.80008125mm", pcbY: "3.499993mm", width: "1.499997mm", height: "2.999994mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin3"], pcbX: "-0.80008725mm", pcbY: "3.499993mm", width: "1.499997mm", height: "2.999994mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin4"], pcbX: "3.19990475mm", pcbY: "3.499993mm", width: "1.499997mm", height: "2.999994mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "4.59995275mm", pcbY: "-3.499993mm", width: "1.499997mm", height: "2.999994mm", shape: "rect" }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -6.999947850000126, "y": -3.0001210000000356 }, { "x": 3.618725349999977, "y": -3.0001210000000356 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": 5.100027949999912, "y": 2.9998670000001084 }, { "x": 5.100027949999912, "y": -1.768856000000028 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": 4.180928949999952, "y": 2.9998670000001084 }, { "x": 5.100027949999912, "y": 2.9998670000001084 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": 0.18093694999993204, "y": 2.9998670000001084 }, { "x": 2.2186519499999804, "y": 2.9998670000001084 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -2.819057050000083, "y": 2.9998670000001084 }, { "x": -1.7813400500001535, "y": 2.9998670000001084 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -6.999947850000126, "y": 2.9998670000001084 }, { "x": -4.781334050000169, "y": 2.9998670000001084 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -9.000197850000063, "y": -2.499994999999899 }, { "x": -7.000201850000053, "y": -2.499994999999899 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -7.000201850000053, "y": 2.499944199999959 }, { "x": -9.000197850000063, "y": 2.499944199999959 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -9.000197850000063, "y": 2.499944199999959 }, { "x": -9.000197850000063, "y": -2.5001220000001467 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -6.999947850000126, "y": 2.9998670000001084 }, { "x": -6.999947850000126, "y": -3.0001210000000356 }] }), jsxRuntime.jsx("silkscreentext", { text: "{NAME}", pcbX: "-1.81913525mm", pcbY: "6.005197mm", anchorAlignment: "center", fontSize: "1mm" }), jsxRuntime.jsx("courtyardoutline", { outline: [{ "x": -9.244635250000101, "y": 5.2551970000000665 }, { "x": 5.6063647500000116, "y": 5.2551970000000665 }, { "x": 5.6063647500000116, "y": -5.252402999999958 }, { "x": -9.244635250000101, "y": -5.252402999999958 }, { "x": -9.244635250000101, "y": 5.2551970000000665 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C431535.obj?uuid=7178d96b87ee4d73a30dddb4c856adc2",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C431535.step?uuid=7178d96b87ee4d73a30dddb4c856adc2",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 7.2000173999999477, y: 0, z: -2.5500011000000002 },
        }, ...props }));
};

const pinLabels = {
    pin1: ["pin1"],
    pin2: ["pin2"],
    pin3: ["pin3"],
    pin4: ["pin4"],
    pin5: ["pin5"],
    pin6: ["pin6"]
};
const TAC_32N_Q_T_R = (props) => {
    return (jsxRuntime.jsx("chip", { pinLabels: pinLabels, supplierPartNumbers: {
            "jlcpcb": [
                "C240290"
            ]
        }, manufacturerPartNumber: "TAC_32N_Q_T_R", footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("platedhole", { portHints: ["pin6"], pcbX: "3.499993mm", pcbY: "-0.9999218mm", outerDiameter: "1.1999976mm", holeDiameter: "0.7999984mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin5"], pcbX: "-3.499993mm", pcbY: "-0.9999218mm", outerDiameter: "1.1999976mm", holeDiameter: "0.7999984mm", shape: "circle" }), jsxRuntime.jsx("smtpad", { portHints: ["pin4"], pcbX: "2.499995mm", pcbY: "-2.3999698mm", width: "0.999998mm", height: "0.7999984mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin3"], pcbX: "-2.499995mm", pcbY: "-2.3999698mm", width: "0.999998mm", height: "0.7999984mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin2"], pcbX: "2.499995mm", pcbY: "2.1999702mm", width: "0.999998mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "-2.499995mm", pcbY: "2.1999702mm", width: "0.999998mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": 3.6500053999999977, "y": -1.8173699999999826 }, { "x": 3.6500053999999977, "y": -2.0999957999999737 }, { "x": 3.2310070000000053, "y": -2.0999957999999737 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -3.6499799999999993, "y": -0.18247359999999446 }, { "x": -3.6499799999999993, "y": 1.3999972000000156 }, { "x": 3.6500053999999977, "y": 1.3999972000000156 }, { "x": 3.6500053999999977, "y": -0.18247359999999446 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -3.2312609999999893, "y": -2.0999957999999737 }, { "x": -3.6499799999999993, "y": -2.0999957999999737 }, { "x": -3.6499799999999993, "y": -1.8173699999999826 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -1.5001239999999996, "y": -3.599916599999986 }, { "x": -1.4999969999999792, "y": -2.0999957999999737 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": 1.4998700000000156, "y": -3.599916599999986 }, { "x": 1.4999970000000076, "y": -2.0999957999999737 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -1.4999969999999792, "y": -3.5998657999999892 }, { "x": 1.4997429999999952, "y": -3.5998657999999892 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -1.7689829999999915, "y": -2.0999957999999737 }, { "x": 1.7687290000000075, "y": -2.0999957999999737 }] }), jsxRuntime.jsx("silkscreentext", { text: "{NAME}", pcbX: "0.0057658mm", pcbY: "3.797556mm", anchorAlignment: "center", fontSize: "1mm" }), jsxRuntime.jsx("courtyardoutline", { outline: [{ "x": -4.397134199999996, "y": 3.0475560000000144 }, { "x": 4.408665799999994, "y": 3.0475560000000144 }, { "x": 4.408665799999994, "y": -3.95484399999998 }, { "x": -4.397134199999996, "y": -3.95484399999998 }, { "x": -4.397134199999996, "y": 3.0475560000000144 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C240290.obj?uuid=e0e8217c993643a79890a216792f58eb",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C240290.step?uuid=e0e8217c993643a79890a216792f58eb",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 1.2000118000000024, z: -20000000000575113e-22 },
        }, ...props }));
};

const xiaoPinLabels = {
    pin1: ["D0", "A0", "ADC_SENSE"],
    pin2: ["D1", "A1"],
    pin3: ["D2", "A2"],
    pin4: ["D3", "A3"],
    pin5: ["D4", "SDA", "OLED_SDA"],
    pin6: ["D5", "SCL", "OLED_SCL"],
    pin7: ["D6", "LED_STATUS"],
    pin8: ["D7", "BUTTON_MODE"],
    pin9: ["5V"],
    pin10: ["GND"],
    pin11: ["VCC_3V3", "3V3"],
    pin12: ["D10", "MOSI"],
    pin13: ["D9", "MISO"],
    pin14: ["D8", "SCK"],
};
const XiaoRp2040Module = (props) => (jsxRuntime.jsx("chip", { ...props, manufacturerPartNumber: "Seeed Studio XIAO RP2040 module, hand-soldered", pinLabels: xiaoPinLabels, showPinAliases: true, footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("platedhole", { portHints: ["pin1"], pcbX: "-8.89mm", pcbY: "7.62mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin2"], pcbX: "-8.89mm", pcbY: "5.08mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin3"], pcbX: "-8.89mm", pcbY: "2.54mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin4"], pcbX: "-8.89mm", pcbY: "0mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin5"], pcbX: "-8.89mm", pcbY: "-2.54mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin6"], pcbX: "-8.89mm", pcbY: "-5.08mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin7"], pcbX: "-8.89mm", pcbY: "-7.62mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin8"], pcbX: "8.89mm", pcbY: "-7.62mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin9"], pcbX: "8.89mm", pcbY: "-5.08mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin10"], pcbX: "8.89mm", pcbY: "-2.54mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin11"], pcbX: "8.89mm", pcbY: "0mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin12"], pcbX: "8.89mm", pcbY: "2.54mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin13"], pcbX: "8.89mm", pcbY: "5.08mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin14"], pcbX: "8.89mm", pcbY: "7.62mm", outerDiameter: "1.6mm", holeDiameter: "0.9mm", shape: "circle" }), jsxRuntime.jsx("silkscreenrect", { pcbX: "0mm", pcbY: "0mm", width: "21mm", height: "18mm" }), jsxRuntime.jsx("silkscreentext", { text: "XIAO RP2040", pcbX: "0mm", pcbY: "0mm", fontSize: "1mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "USB ->", pcbX: "0mm", pcbY: "7.2mm", fontSize: "0.8mm", anchorAlignment: "center" })] }) }));
var index_circuit = () => (jsxRuntime.jsxs("board", { width: "66mm", height: "28mm", layers: 2, borderRadius: "3mm", title: "VoltPeek Probe", children: [jsxRuntime.jsx(PJ_320D, { name: "J1", pcbX: -23.6, pcbY: -0.8, layer: "top" }), jsxRuntime.jsx("resistor", { name: "R1", resistance: "100k", footprint: "0603", pcbX: -12.5, pcbY: 4.8, pcbRotation: 90, layer: "top", supplierPartNumbers: { jlcpcb: ["C25803"] } }), jsxRuntime.jsx("resistor", { name: "R2", resistance: "33k", footprint: "0603", pcbX: -9.5, pcbY: 4.8, pcbRotation: 90, layer: "top", supplierPartNumbers: { jlcpcb: ["C4216"] } }), jsxRuntime.jsx("resistor", { name: "R3", resistance: "1k", footprint: "0603", pcbX: -6.5, pcbY: 4.8, pcbRotation: 90, layer: "top", supplierPartNumbers: { jlcpcb: ["C21190"] } }), jsxRuntime.jsx(XiaoRp2040Module, { name: "U1", pcbX: 5.4, pcbY: -0.8, layer: "top" }), jsxRuntime.jsx("pinheader", { name: "J2", pinCount: 4, gender: "female", pitch: "2.54mm", footprint: "pinrow4", showSilkscreenPinLabels: true, pinLabels: ["VCC", "GND", "SDA", "SCL"], pcbX: 9.5, pcbY: 10.5, pcbRotation: 0, layer: "top", supplierPartNumbers: { jlcpcb: ["C5144876"] } }), jsxRuntime.jsx(TAC_32N_Q_T_R, { name: "SW1", pcbX: 24.5, pcbY: -6.5, layer: "top" }), jsxRuntime.jsx("resistor", { name: "R5", resistance: "10k", footprint: "0603", pcbX: 24.5, pcbY: -1.8, pcbRotation: 90, layer: "top", supplierPartNumbers: { jlcpcb: ["C25804"] } }), jsxRuntime.jsx("resistor", { name: "R4", resistance: "330", footprint: "0603", pcbX: 23.6, pcbY: 6.4, layer: "top", supplierPartNumbers: { jlcpcb: ["C23138"] } }), jsxRuntime.jsx("led", { name: "D1", color: "green", footprint: "0603", pcbX: 28, pcbY: 6.4, layer: "top", supplierPartNumbers: { jlcpcb: ["C965805"] } }), jsxRuntime.jsx("hole", { name: "H1", diameter: "2.2mm", pcbX: -28.5, pcbY: 10.5 }), jsxRuntime.jsx("hole", { name: "H2", diameter: "2.2mm", pcbX: 29.2, pcbY: 10.5 }), jsxRuntime.jsx("trace", { from: ".J1 > .pin2", to: "net.VIN_PROBE" }), jsxRuntime.jsx("trace", { from: ".R1 > .pin1", to: "net.VIN_PROBE" }), jsxRuntime.jsx("trace", { from: ".J1 > .pin1", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".J1 > .pin4", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".R1 > .pin2", to: "net.ADC_DIV" }), jsxRuntime.jsx("trace", { from: ".R2 > .pin1", to: "net.ADC_DIV" }), jsxRuntime.jsx("trace", { from: ".R3 > .pin1", to: "net.ADC_DIV" }), jsxRuntime.jsx("trace", { from: ".R2 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".R3 > .pin2", to: "net.ADC_SENSE" }), jsxRuntime.jsx("trace", { from: ".U1 > .ADC_SENSE", to: "net.ADC_SENSE" }), jsxRuntime.jsx("trace", { from: ".U1 > .VCC_3V3", to: "net.VCC_3V3" }), jsxRuntime.jsx("trace", { from: ".U1 > .GND", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".J2 > .pin1", to: "net.VCC_3V3" }), jsxRuntime.jsx("trace", { from: ".J2 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".J2 > .pin3", to: "net.OLED_SDA" }), jsxRuntime.jsx("trace", { from: ".J2 > .pin4", to: "net.OLED_SCL" }), jsxRuntime.jsx("trace", { from: ".U1 > .OLED_SDA", to: "net.OLED_SDA" }), jsxRuntime.jsx("trace", { from: ".U1 > .OLED_SCL", to: "net.OLED_SCL" }), jsxRuntime.jsx("trace", { from: ".U1 > .BUTTON_MODE", to: "net.BUTTON_MODE" }), jsxRuntime.jsx("trace", { from: ".R5 > .pin1", to: "net.VCC_3V3" }), jsxRuntime.jsx("trace", { from: ".R5 > .pin2", to: "net.BUTTON_MODE" }), jsxRuntime.jsx("trace", { from: ".SW1 > .pin1", to: "net.BUTTON_MODE" }), jsxRuntime.jsx("trace", { from: ".SW1 > .pin3", to: "net.BUTTON_MODE" }), jsxRuntime.jsx("trace", { from: ".SW1 > .pin5", to: "net.BUTTON_MODE" }), jsxRuntime.jsx("trace", { from: ".SW1 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".SW1 > .pin4", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".SW1 > .pin6", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".U1 > .LED_STATUS", to: "net.LED_STATUS" }), jsxRuntime.jsx("trace", { from: ".R4 > .pin1", to: "net.LED_STATUS" }), jsxRuntime.jsx("trace", { from: ".R4 > .pin2", to: ".D1 > .pin1" }), jsxRuntime.jsx("trace", { from: ".D1 > .pin2", to: "net.GND" }), jsxRuntime.jsx("copperpour", { name: "GND_TOP", connectsTo: "net.GND", layer: "top", clearance: "0.2mm" }), jsxRuntime.jsx("copperpour", { name: "GND_BOTTOM", connectsTo: "net.GND", layer: "bottom", clearance: "0.2mm" }), jsxRuntime.jsx("silkscreentext", { text: "VOLTPEEK PROBE", pcbX: 0, pcbY: -12.2, fontSize: "1.2mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "0-12V DC MAX", pcbX: -17, pcbY: -12.2, fontSize: "0.8mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "TOP ASSEMBLY ONLY", pcbX: 20.2, pcbY: -12.2, fontSize: "0.75mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "PROBE JACK", pcbX: -22.5, pcbY: 12, fontSize: "0.8mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "TIP=VIN", pcbX: -21.6, pcbY: 10.2, fontSize: "0.7mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "SLEEVE=GND", pcbX: -21.6, pcbY: 8.5, fontSize: "0.7mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "OLED V G D C", pcbX: 9.5, pcbY: 7.6, fontSize: "0.7mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "HOLD", pcbX: 24.5, pcbY: -11.1, fontSize: "0.8mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "STATUS", pcbX: 26.1, pcbY: 3.8, fontSize: "0.75mm", anchorAlignment: "center" }), jsxRuntime.jsx("silkscreentext", { text: "BOTTOM: ROUTES/POUR ONLY", pcbX: 0, pcbY: 0, fontSize: "0.8mm", anchorAlignment: "center", layer: "bottom" })] }));

module.exports = index_circuit;