mpsys/roveee-led-pcb

This code defines a surface-mount integrated circuit (TPS923655DMTR) used as a power management or driver component in a PCB, including its footprint, 3D model, and placement within a circuit with associated passive components and routing.

Version
1.0.0
License
unset
Stars
0

dist/index.js

import { jsx, jsxs } from 'react/jsx-runtime';

const TPS923655DMTR = (props) => {
    const { name = "U1", ...restProps } = props;
    return (jsx("chip", { name: name, supplierPartNumbers: {
            "jlcpcb": [
                "C22427698"
            ]
        }, manufacturerPartNumber: "TPS923655DMTR", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pgnd"], pcbX: "-1.949958mm", pcbY: "-1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["agnd"], pcbX: "-1.299972mm", pcbY: "-1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["vin"], pcbX: "-0.649986mm", pcbY: "-1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["vcc"], pcbX: "0mm", pcbY: "-1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["adim"], pcbX: "0.649986mm", pcbY: "-1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["en"], pcbX: "1.299972mm", pcbY: "-1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["fault"], pcbX: "1.949958mm", pcbY: "-1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["sw"], pcbX: "-1.949958mm", pcbY: "1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["csp"], pcbX: "-1.299972mm", pcbY: "1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["csn"], pcbX: "-0.649986mm", pcbY: "1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["ovp"], pcbX: "0mm", pcbY: "1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["comp"], pcbX: "0.649986mm", pcbY: "1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["fset"], pcbX: "1.299972mm", pcbY: "1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["temp"], pcbX: "1.949958mm", pcbY: "1.4986mm", width: "0.3640074mm", height: "0.8469884mm", radius: "0.1820037mm", shape: "pill" }), jsx("smtpad", { portHints: ["thermal"], pcbX: "0mm", pcbY: "0mm", width: "4.1999916mm", height: "1.5999968mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -2.3262081999999964, "y": -1.5761969999999792 }, { "x": -2.3262081999999964, "y": 1.5761970000000929 }] }), jsx("silkscreenpath", { route: [{ "x": 2.3262081999999964, "y": 1.5761970000000929 }, { "x": 2.3262081999999964, "y": -1.5761969999999792 }] }), jsx("silkscreenpath", { route: [{ "x": -1.8498820000000933, "y": -2.221992 }, { "x": -1.8532920070083492, "y": -2.2478935747576543 }, { "x": -1.8632896416909261, "y": -2.272030000000086 }, { "x": -1.8791935817660033, "y": -2.292756418233921 }, { "x": -1.8999200000000656, "y": -2.308660358308998 }, { "x": -1.9240564252423837, "y": -2.318657992991575 }, { "x": -1.9499580000000378, "y": -2.3220679999999447 }, { "x": -1.975859574757692, "y": -2.318657992991575 }, { "x": -1.99999600000001, "y": -2.308660358308998 }, { "x": -2.0207224182340724, "y": -2.292756418233921 }, { "x": -2.0366263583091495, "y": -2.272030000000086 }, { "x": -2.0466239929917265, "y": -2.2478935747576543 }, { "x": -2.0500339999999824, "y": -2.221992 }, { "x": -2.0466239929917265, "y": -2.196090425242346 }, { "x": -2.0366263583091495, "y": -2.1719539999999142 }, { "x": -2.0207224182340724, "y": -2.1512275817659656 }, { "x": -1.99999600000001, "y": -2.1353236416908885 }, { "x": -1.975859574757692, "y": -2.1253260070083115 }, { "x": -1.9499580000000378, "y": -2.1219160000000556 }, { "x": -1.9240564252423837, "y": -2.1253260070083115 }, { "x": -1.8999200000000656, "y": -2.1353236416908885 }, { "x": -1.8791935817660033, "y": -2.1512275817659656 }, { "x": -1.8632896416909261, "y": -2.1719539999999142 }, { "x": -1.8532920070083492, "y": -2.196090425242346 }, { "x": -1.8498820000000933, "y": -2.221992 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "2.9304mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.5868000000000393, "y": 2.180400000000077 }, { "x": 2.5614000000000487, "y": 2.180400000000077 }, { "x": 2.5614000000000487, "y": -2.5614000000000487 }, { "x": -2.5868000000000393, "y": -2.5614000000000487 }, { "x": -2.5868000000000393, "y": 2.180400000000077 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22427698.obj?uuid=f56a5bdc1a3648edaa846a8056cc6e9f",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22427698.step?uuid=f56a5bdc1a3648edaa846a8056cc6e9f",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: 0, y: -12700000070253736e-21, z: 0 },
        }, ...restProps }));
};

var index_circuit = () => {
    const BOARD_DIA = 19.9;
    const CIRCLE_POINTS = 32;
    const outline = Array.from({ length: CIRCLE_POINTS }, (_, i) => {
        const angle = (i / CIRCLE_POINTS) * Math.PI * 2;
        return { x: (BOARD_DIA / 2) * Math.cos(angle), y: (BOARD_DIA / 2) * Math.sin(angle) };
    });
    return (jsxs("board", { width: `${BOARD_DIA}mm`, height: `${BOARD_DIA}mm`, outline: outline, layers: 2, routingDisabled: true, children: [jsx(TPS923655DMTR, { name: "U1", pcbX: 0, pcbY: 0, pcbRotation: "90deg" }), jsx("group", { pcbFlex: true, pcbFlexGap: "0.5mm", pcbFlexDirection: "column", pcbX: -4, pcbY: 0, children: jsx("capacitor", { capacitance: "10\u00B5F", footprint: "1206", name: "CIN" }) }), jsxs("group", { pcbFlex: true, pcbFlexGap: "0.5mm", pcbFlexDirection: "column", pcbX: 4, pcbY: -1, children: [jsx("inductor", { inductance: "10\u00B5H", footprint: "1206", name: "L1" }), jsx("diode", { name: "D1", footprint: "SMA" }), jsx("capacitor", { capacitance: "10\u00B5F", footprint: "1206", name: "COUT" }), jsx("resistor", { resistance: "0.1", footprint: "1206", name: "RSENSE" })] }), jsxs("group", { pcbFlex: true, pcbFlexGap: "0.5mm", pcbFlexDirection: "row", pcbX: 0, pcbY: 5.5, children: [jsx("capacitor", { capacitance: "1\u00B5F", footprint: "0805", name: "CVCC" }), jsx("resistor", { resistance: "150k", footprint: "0805", name: "ROVP1" }), jsx("resistor", { resistance: "10k", footprint: "0805", name: "ROVP2" })] }), jsxs("group", { pcbFlex: true, pcbFlexGap: "0.3mm", pcbFlexDirection: "row", pcbX: 0, pcbY: -5.5, children: [jsx("resistor", { resistance: "100k", footprint: "0603", name: "RFSET" }), jsx("capacitor", { capacitance: "1nF", footprint: "0603", name: "CCOMP" }), jsx("resistor", { resistance: "100", footprint: "0603", name: "RCOMP" }), jsx("resistor", { resistance: "100k", footprint: "0603", name: "RADIM" }), jsx("resistor", { resistance: "0", footprint: "0603", name: "RTEMP" }), jsx("resistor", { resistance: "0", footprint: "0603", name: "RFAULT" })] }), jsx("copperpour", { connectsTo: "net.GND", layer: "top", clearance: "0.15mm", padMargin: "0.2mm", traceMargin: "0.15mm", boardEdgeMargin: "0.3mm" }), jsx("copperpour", { connectsTo: "net.GND", layer: "bottom", clearance: "0.15mm", padMargin: "0.2mm", traceMargin: "0.15mm", boardEdgeMargin: "0.3mm" }), jsx("trace", { from: ".CIN > .pos", to: ".U1 > .vin" }), jsx("trace", { from: ".CIN > .neg", to: "net.GND" }), jsx("trace", { from: ".U1 > .sw", to: ".L1 > .pin1" }), jsx("trace", { from: ".L1 > .pin2", to: ".D1 > .anode" }), jsx("trace", { from: ".D1 > .cathode", to: ".COUT > .pos" }), jsx("trace", { from: ".COUT > .neg", to: "net.GND" }), jsx("trace", { from: ".RSENSE > .pin2", to: "net.GND" }), jsx("trace", { from: ".U1 > .csp", to: ".RSENSE > .pin1" }), jsx("trace", { from: ".U1 > .csn", to: ".RSENSE > .pin2" }), jsx("trace", { from: ".U1 > .vcc", to: ".CVCC > .pos" }), jsx("trace", { from: ".CVCC > .neg", to: "net.GND" }), jsx("trace", { from: ".U1 > .pgnd", to: "net.GND" }), jsx("trace", { from: ".U1 > .agnd", to: "net.GND" }), jsx("trace", { from: ".U1 > .fset", to: ".RFSET > .pin1" }), jsx("trace", { from: ".RFSET > .pin2", to: "net.GND" }), jsx("trace", { from: ".U1 > .comp", to: ".CCOMP > .pos" }), jsx("trace", { from: ".CCOMP > .neg", to: ".RCOMP > .pin1" }), jsx("trace", { from: ".RCOMP > .pin2", to: "net.GND" }), jsx("trace", { from: ".COUT > .pos", to: ".ROVP1 > .pin1" }), jsx("trace", { from: ".ROVP1 > .pin2", to: ".U1 > .ovp" }), jsx("trace", { from: ".U1 > .ovp", to: ".ROVP2 > .pin1" }), jsx("trace", { from: ".ROVP2 > .pin2", to: "net.GND" }), jsx("trace", { from: ".U1 > .temp", to: ".RTEMP > .pin1" }), jsx("trace", { from: ".RTEMP > .pin2", to: "net.GND" }), jsx("trace", { from: ".U1 > .fault", to: ".RFAULT > .pin1" }), jsx("trace", { from: ".RFAULT > .pin2", to: "net.GND" }), jsx("trace", { from: ".U1 > .adim", to: ".RADIM > .pin1" }), jsx("trace", { from: ".RADIM > .pin2", to: ".U1 > .vcc" })] }));
};

export { index_circuit as default };