techmannih/TPS22919

This code defines a 10x10mm electronic circuit board featuring a 1kΩ resistor (R1) and a 1000pF capacitor (C1) connected to each other, both using 0402 footprints.

Version
0.0.1
License
unset
Stars
0

dist/index.cjs

'use strict';

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

const pinLabels = {
    pin1: ["IN"],
    pin2: ["GND"],
    pin3: ["ON"],
    pin4: ["NC"],
    pin5: ["QOD"],
    pin6: ["OUT"]
};
const TPS22919 = (props) => {
    return (jsxRuntime.jsx("chip", { pinLabels: pinLabels, supplierPartNumbers: {
            "jlcpcb": [
                "C2149796"
            ]
        }, manufacturerPartNumber: "TPS22919DCKR", footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("smtpad", { portHints: ["pin6"], pcbX: "-0.94996mm", pcbY: "-0.649986mm", width: "0.5999988mm", height: "0.419989mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin5"], pcbX: "-0.94996mm", pcbY: "0mm", width: "0.5999988mm", height: "0.419989mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin4"], pcbX: "-0.94996mm", pcbY: "0.649986mm", width: "0.5999988mm", height: "0.419989mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin3"], pcbX: "0.94996mm", pcbY: "0.649986mm", width: "0.5999988mm", height: "0.419989mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin2"], pcbX: "0.94996mm", pcbY: "0mm", width: "0.5999988mm", height: "0.419989mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "0.94996mm", pcbY: "-0.649986mm", width: "0.5999988mm", height: "0.419989mm", shape: "rect" }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -0.6999986000000007, "y": -1.099997799999997 }, { "x": 0.6999986000000149, "y": -1.099997799999997 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -0.6999986000000007, "y": 1.099997799999997 }, { "x": 0.6999986000000149, "y": 1.099997799999997 }] }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": 1.0909300000000144, "y": -1.0942066000000068 }, { "x": 0.9672082130372104, "y": -0.9685846439124361 }, { "x": 1.0922000000000054, "y": -0.844226252107191 }, { "x": 1.2171917869628146, "y": -0.9685846439124361 }, { "x": 1.0934700000000106, "y": -1.0942066000000068 }] }), jsxRuntime.jsx("silkscreentext", { text: "{NAME}", pcbX: "0.101346mm", pcbY: "2.1049mm", anchorAlignment: "center", fontSize: "1mm" }), jsxRuntime.jsx("courtyardoutline", { outline: [{ "x": -1.5075539999999847, "y": 1.3549000000000007 }, { "x": 1.710245999999998, "y": 1.3549000000000007 }, { "x": 1.710245999999998, "y": -1.583500000000015 }, { "x": -1.5075539999999847, "y": -1.583500000000015 }, { "x": -1.5075539999999847, "y": 1.3549000000000007 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2149796.obj?uuid=a5d40c04f23243b2af27dc3bf34f18d3",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2149796.step?uuid=a5d40c04f23243b2af27dc3bf34f18d3",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0.000012700000013410317, y: 0, z: -0.1 },
        }, ...props }));
};

var index = () => (jsxRuntime.jsxs("board", { width: "52mm", height: "30mm", children: [jsxRuntime.jsx(TPS22919, { name: "U1", schPinArrangement: {
                leftSide: {
                    direction: "top-to-bottom",
                    pins: ["IN", "ON", "GND"],
                },
                rightSide: {
                    direction: "top-to-bottom",
                    pins: ["OUT", "QOD"],
                },
            }, schWidth: "2mm", schHeight: "3mm", schPinStyle: {
                IN: {
                    marginTop: 0.1,
                },
                OUT: {
                    marginTop: -0.6,
                },
                ON: {
                    marginTop: 0.8,
                },
                GND: {
                    marginTop: 0.8,
                },
                QOD: {
                    marginTop: 1.1,
                },
            }, schX: 0, schY: 0, pcbX: 0, pcbY: 0 }), jsxRuntime.jsx("voltagesource", { name: "V_IN", voltage: "5V", schX: -4.8, connections: { pin2: "U1.pin1", pin1: "net.GND" }, schY: 0.4, pcbX: -18, pcbY: 3, footprint: "0402", schRotation: 90 }), jsxRuntime.jsx("capacitor", { name: "C_IN", footprint: "0402", capacitance: "1uF", polarized: true, schOrientation: "pos_top", connections: { pos: "U1.pin1", pin2: "net.GND" }, schX: -3.3, schY: 0.4, pcbX: -9, pcbY: 2 }), jsxRuntime.jsx("schematictext", { schX: -1.6, schY: 0.45, text: "H", fontSize: 0.22 }), jsxRuntime.jsx("schematictext", { schX: -1.8, schY: -0.45, text: "L", fontSize: 0.22 }), jsxRuntime.jsx("schematicpath", { strokeWidth: 0.05, points: [
                { x: -2, y: -0.2 },
                { x: -1.7, y: -0.2 },
                { x: -1.7, y: 0.2 },
                { x: -1.4, y: 0.2 },
            ] }), jsxRuntime.jsx("resistor", { name: "R_QOD", footprint: "0402", resistance: "100k", connections: { pin1: "U1.QOD", pin2: "U1.OUT" }, schX: 2, schY: 0.2, schRotation: 90, pcbX: 6, pcbY: 1.5 }), jsxRuntime.jsx("capacitor", { name: "C_L", footprint: "0603", capacitance: "10uF", schOrientation: "pos_top", polarized: true, connections: { pos: "U1.OUT", pin2: "net.GND" }, schX: 4, schY: 0.4, schRotation: 90, pcbX: 12, pcbY: 2 }), jsxRuntime.jsx("resistor", { name: "R_L", footprint: "0402", resistance: "10k", connections: { pin2: "U1.OUT", pin1: "net.GND" }, schX: 5, schY: 0.4, pcbX: 16, pcbY: 2, schRotation: 90 }), jsxRuntime.jsx("netlabel", { net: "GND", connection: "U1.GND", schX: -1.5, schY: -1.45 })] }));

module.exports = index;