ShiboSoftwareDev/solar-battery-charger-module

This hardware setup integrates a solar panel, a lithium-ion battery, and a multi-rail buck converter with a battery charging IC, protection circuitry, and monitoring components, enabling solar power harvesting, battery charging, and power distribution in an embedded system.

Version
1.0.4
License
unset
Stars
0

dist/index.js

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

const pinLabels$7 = {
    pin1: ["pin1"],
    pin2: ["pin2"],
    pin3: ["pin3"],
    pin4: ["pin4"],
    pin5: ["pin5"]
};
const B3B_PH_SM4_TB_LF__SN_ = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$7, supplierPartNumbers: {
            "jlcpcb": [
                "C160353"
            ]
        }, manufacturerPartNumber: "B3B-PH-SM4-TB(LF)(SN)", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin3"], pcbX: "-1.999996mm", pcbY: "0.5125593mm", width: "0.999998mm", height: "5.999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "0mm", pcbY: "0.5125593mm", width: "0.999998mm", height: "5.999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "1.999996mm", pcbY: "0.5125593mm", width: "0.999998mm", height: "5.999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-4.350004mm", pcbY: "-1.8125567mm", width: "1.7999964mm", height: "3.3999932mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "4.350004mm", pcbY: "-1.8125567mm", width: "1.7999964mm", height: "3.3999932mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": 4.999939199999858, "y": -4.312475500000005 }, { "x": -5.000015400000052, "y": -4.312475500000005 }] }), jsx("silkscreenpath", { route: [{ "x": -5.001234600000089, "y": 0.6875653000000739 }, { "x": -2.7311349999999948, "y": 0.6875653000000739 }] }), jsx("silkscreenpath", { route: [{ "x": -1.2688570000000254, "y": 0.6875653000000739 }, { "x": -0.7311389999999847, "y": 0.6875653000000739 }] }), jsx("silkscreenpath", { route: [{ "x": 0.731138999999871, "y": 0.6875653000000739 }, { "x": 1.2688570000000254, "y": 0.6875653000000739 }] }), jsx("silkscreenpath", { route: [{ "x": 2.7311349999999948, "y": 0.6875653000000739 }, { "x": 5.000015399999938, "y": 0.6875653000000739 }] }), jsx("silkscreenpath", { route: [{ "x": 5.000015399999938, "y": 0.6875653000000739 }, { "x": 5.000015399999938, "y": 0.11868150000009337 }] }), jsx("silkscreenpath", { route: [{ "x": 5.000015399999938, "y": -3.7435917000000245 }, { "x": 5.000015399999938, "y": -4.312475500000005 }] }), jsx("silkscreenpath", { route: [{ "x": -5.001234600000089, "y": 0.6875653000000739 }, { "x": -5.001234600000089, "y": 0.11868150000009337 }] }), jsx("silkscreenpath", { route: [{ "x": -5.001234600000089, "y": -3.7435917000000245 }, { "x": -5.001234600000089, "y": -4.312475500000005 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "4.8049073mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -5.507800000000088, "y": 4.054907299999968 }, { "x": 5.482400000000098, "y": 4.054907299999968 }, { "x": 5.482400000000098, "y": -4.598492699999952 }, { "x": -5.507800000000088, "y": -4.598492699999952 }, { "x": -5.507800000000088, "y": 4.054907299999968 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C160353.obj?uuid=d10deedf4da34c2eb61f609712952df0",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C160353.step?uuid=d10deedf4da34c2eb61f609712952df0",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 2, y: -2.340942999999948, z: 0 },
        }, ...props }));
};

const pinLabels$6 = {
    pin1: ["VCC"],
    pin2: ["MPPSET"],
    pin3: ["STAT1"],
    pin4: ["TS"],
    pin5: ["STAT2"],
    pin6: ["VREF"],
    pin7: ["TERM_EN"],
    pin8: ["VFB"],
    pin9: ["SRN"],
    pin10: ["SRP"],
    pin11: ["GND"],
    pin12: ["REGN"],
    pin13: ["LODRV"],
    pin14: ["PH"],
    pin15: ["HIDRV"],
    pin16: ["BTST"],
    pin17: ["EP"]
};
const BQ24650RVAR = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$6, supplierPartNumbers: {
            "jlcpcb": [
                "C53712"
            ]
        }, manufacturerPartNumber: "BQ24650RVAR", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.750062mm", pcbY: "-1.657604mm", width: "0.2800096mm", height: "0.6649974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-0.249936mm", pcbY: "-1.657604mm", width: "0.2800096mm", height: "0.6649974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0.249936mm", pcbY: "-1.657604mm", width: "0.2800096mm", height: "0.6649974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "0.750062mm", pcbY: "-1.657604mm", width: "0.2800096mm", height: "0.6649974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "1.657604mm", pcbY: "-0.750062mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "1.657604mm", pcbY: "-0.249936mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "1.657604mm", pcbY: "0.249936mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "1.657604mm", pcbY: "0.750062mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "0.750062mm", pcbY: "1.657604mm", width: "0.2800096mm", height: "0.6649974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "0.249936mm", pcbY: "1.657604mm", width: "0.2800096mm", height: "0.6649974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "-0.249936mm", pcbY: "1.657604mm", width: "0.2800096mm", height: "0.6649974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "-0.750062mm", pcbY: "1.657604mm", width: "0.2800096mm", height: "0.6649974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], pcbX: "-1.657604mm", pcbY: "0.750062mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin14"], pcbX: "-1.657604mm", pcbY: "0.249936mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin15"], pcbX: "-1.657604mm", pcbY: "-0.249936mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin16"], pcbX: "-1.657604mm", pcbY: "-0.750062mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin17"], pcbX: "0mm", pcbY: "0mm", width: "2.1400008mm", height: "2.1400008mm", shape: "rect" }), jsx("platedhole", { portHints: ["pin17"], pcbX: "-0.5mm", pcbY: "-0.5mm", outerDiameter: "0.45mm", holeDiameter: "0.2mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin17"], pcbX: "0.5mm", pcbY: "-0.5mm", outerDiameter: "0.45mm", holeDiameter: "0.2mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin17"], pcbX: "-0.5mm", pcbY: "0.5mm", outerDiameter: "0.45mm", holeDiameter: "0.2mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin17"], pcbX: "0.5mm", pcbY: "0.5mm", outerDiameter: "0.45mm", holeDiameter: "0.2mm", shape: "circle" }), jsx("silkscreenpath", { route: [{ "x": -1.8262092000001076, "y": 1.0804906000000756 }, { "x": -1.8262092000001076, "y": 1.8262091999999939 }, { "x": -1.0804906000000756, "y": 1.8262091999999939 }] }), jsx("silkscreenpath", { route: [{ "x": 1.8262091999999939, "y": 1.0804906000000756 }, { "x": 1.8262091999999939, "y": 1.8262091999999939 }, { "x": 1.0804905999999619, "y": 1.8262091999999939 }] }), jsx("silkscreenpath", { route: [{ "x": -1.8262092000001076, "y": -1.0804906000000756 }, { "x": -1.8262092000001076, "y": -1.8262091999999939 }, { "x": -1.0804906000000756, "y": -1.8262091999999939 }] }), jsx("silkscreenpath", { route: [{ "x": 1.8262091999999939, "y": -1.0804906000000756 }, { "x": 1.8262091999999939, "y": -1.8262091999999939 }, { "x": 1.0804905999999619, "y": -1.8262091999999939 }] }), jsx("silkscreenpath", { route: [{ "x": -0.6751319999999623, "y": -2.2900640000000294 }, { "x": -0.6776851778361106, "y": -2.3094573110495276 }, { "x": -0.6851707164944401, "y": -2.327528999999913 }, { "x": -0.6970784888857224, "y": -2.343047511114264 }, { "x": -0.7125970000000734, "y": -2.3549552835055465 }, { "x": -0.7306686889505727, "y": -2.362440822163876 }, { "x": -0.7500620000000708, "y": -2.3649940000000242 }, { "x": -0.769455311049569, "y": -2.362440822163876 }, { "x": -0.7875269999999546, "y": -2.3549552835055465 }, { "x": -0.8030455111143056, "y": -2.343047511114264 }, { "x": -0.8149532835055879, "y": -2.327528999999913 }, { "x": -0.8224388221639174, "y": -2.3094573110495276 }, { "x": -0.8249920000000657, "y": -2.2900640000000294 }, { "x": -0.8224388221639174, "y": -2.2706706889504176 }, { "x": -0.8149532835055879, "y": -2.252599000000032 }, { "x": -0.8030455111143056, "y": -2.237080488885681 }, { "x": -0.7875269999999546, "y": -2.2251727164943986 }, { "x": -0.769455311049569, "y": -2.217687177836069 }, { "x": -0.7500620000000708, "y": -2.215133999999921 }, { "x": -0.7306686889505727, "y": -2.217687177836069 }, { "x": -0.7125970000000734, "y": -2.2251727164943986 }, { "x": -0.6970784888857224, "y": -2.237080488885681 }, { "x": -0.6851707164944401, "y": -2.252599000000032 }, { "x": -0.6776851778361106, "y": -2.2706706889504176 }, { "x": -0.6751319999999623, "y": -2.2900640000000294 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.0127mm", pcbY: "2.9812mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.231200000000058, "y": 2.2312000000001717 }, { "x": 2.256599999999935, "y": 2.2312000000001717 }, { "x": 2.256599999999935, "y": -2.612199999999916 }, { "x": -2.231200000000058, "y": -2.612199999999916 }, { "x": -2.231200000000058, "y": 2.2312000000001717 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C53712.obj?uuid=0248695823ff4ca7a70eb2f6fde20dd2",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C53712.step?uuid=0248695823ff4ca7a70eb2f6fde20dd2",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: 0, y: 0, z: -0.02 },
        }, ...props }));
};

const pinLabels$5 = {
    pin1: ["pin1"],
    pin2: ["pin2"]
};
const DFE252012P_1R5M_P2 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$5, supplierPartNumbers: {
            "jlcpcb": [
                "C161084"
            ]
        }, manufacturerPartNumber: "DFE252012P-1R5M=P2", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "1.167511mm", pcbY: "0mm", width: "1.634998mm", height: "2.1599906mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.167511mm", pcbY: "0mm", width: "1.634998mm", height: "2.1599906mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": 0.6349999999999909, "y": 1.2953999999999724 }, { "x": 0.6349999999999909, "y": 1.2953999999999724 }, { "x": 2.032000000000039, "y": 1.2953999999999724 }, { "x": 2.2732999999998356, "y": 1.0541000000000622 }, { "x": 2.2732999999998356, "y": -1.0032999999998538 }, { "x": 2.0066000000000486, "y": -1.2699999999999818 }, { "x": 0.6349999999999909, "y": -1.2699999999999818 }] }), jsx("silkscreenpath", { route: [{ "x": -0.635127000000125, "y": -1.2699999999999818 }, { "x": -0.635127000000125, "y": -1.2699999999999818 }, { "x": -2.0321270000000595, "y": -1.2699999999999818 }, { "x": -2.2734270000000834, "y": -1.028699999999958 }, { "x": -2.2734270000000834, "y": 1.0287000000000717 }, { "x": -2.006727000000069, "y": 1.2953999999999724 }, { "x": -0.635127000000125, "y": 1.2953999999999724 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.012573mm", pcbY: "2.2954mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.510727000000088, "y": 1.5453999999999724 }, { "x": 2.535872999999924, "y": 1.5453999999999724 }, { "x": 2.535872999999924, "y": -1.5199999999999818 }, { "x": -2.510727000000088, "y": -1.5199999999999818 }, { "x": -2.510727000000088, "y": 1.5453999999999724 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C161084.obj?uuid=8f47eb01ab4b4bacaa4f20f2f35bc0ed",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C161084.step?uuid=8f47eb01ab4b4bacaa4f20f2f35bc0ed",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0.000012700000070253736, y: 0, z: 0 },
        }, ...props }));
};

const pinLabels$4 = {
    pin1: ["pin1"],
    pin2: ["pin2"]
};
const IHLP2525CZER100M01 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$4, supplierPartNumbers: {
            "jlcpcb": [
                "C540965"
            ]
        }, manufacturerPartNumber: "IHLP2525CZER100M01", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin2"], pcbX: "2.924556mm", pcbY: "0mm", width: "2.4200104mm", height: "3.4299906mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-2.924556mm", pcbY: "0mm", width: "2.4200104mm", height: "3.4299906mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -3.2500569999999698, "y": 1.946173399999907 }, { "x": -3.2500569999999698, "y": 3.250031599999943 }] }), jsx("silkscreenpath", { route: [{ "x": 3.2499553999998625, "y": -1.9461734000000206 }, { "x": 3.2499553999998625, "y": -3.2500316000000566 }, { "x": -3.2500569999999698, "y": -3.2500316000000566 }, { "x": -3.2500569999999698, "y": -1.9461734000000206 }] }), jsx("silkscreenpath", { route: [{ "x": -3.2500569999999698, "y": 3.250031599999943 }, { "x": 3.2499553999998625, "y": 3.250031599999943 }, { "x": 3.2499553999998625, "y": 1.946173399999907 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.003556mm", pcbY: "4.2766mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -4.393756000000167, "y": 3.5265999999999167 }, { "x": 4.386643999999933, "y": 3.5265999999999167 }, { "x": 4.386643999999933, "y": -3.4758000000000493 }, { "x": -4.393756000000167, "y": -3.4758000000000493 }, { "x": -4.393756000000167, "y": 3.5265999999999167 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C540965.obj?uuid=d8fe5a721fb74861950175f59612a6b5",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C540965.step?uuid=d8fe5a721fb74861950175f59612a6b5",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0, z: -2.495 },
        }, ...props }));
};

const pinLabels$3 = {
    pin1: ["pin1"],
    pin2: ["pin2"]
};
const KF127S_5_08_2P = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$3, supplierPartNumbers: {
            "jlcpcb": [
                "C2974924"
            ]
        }, manufacturerPartNumber: "KF127S-5.08-2P", footprint: jsxs("footprint", { children: [jsx("platedhole", { portHints: ["pin1"], pcbX: "-2.54mm", pcbY: "0mm", outerDiameter: "2.3999952mm", holeDiameter: "1.5999968mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin2"], pcbX: "2.54mm", pcbY: "0mm", outerDiameter: "2.3999952mm", holeDiameter: "1.5999968mm", shape: "circle" }), jsx("silkscreenpath", { route: [{ "x": -5.499988999999914, "y": 4.199991600000203 }, { "x": 5.599988799999892, "y": 4.199991600000203 }] }), jsx("silkscreenpath", { route: [{ "x": 1.080007999999907, "y": -5.8999882000000525 }, { "x": 1.080007999999907, "y": -4.399991199999931 }, { "x": 1.5800070000000233, "y": -3.8999921999999287 }, { "x": 3.180003799999895, "y": -3.8999921999999287 }, { "x": 3.5800029999999197, "y": -4.2999913999999535 }, { "x": 3.5800029999999197, "y": -5.8999882000000525 }] }), jsx("silkscreenpath", { route: [{ "x": -3.99999200000002, "y": -5.8999882000000525 }, { "x": -3.99999200000002, "y": -4.399991199999931 }, { "x": -3.4999930000001314, "y": -3.8999921999999287 }, { "x": -1.899996200000146, "y": -3.8999921999999287 }, { "x": -1.4999970000000076, "y": -4.2999913999999535 }, { "x": -1.4999970000000076, "y": -5.8999882000000525 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0mm", pcbY: "6.9944mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -5.86340000000007, "y": 6.2444000000000415 }, { "x": 5.863399999999956, "y": 6.2444000000000415 }, { "x": 5.863399999999956, "y": -6.2952000000000226 }, { "x": -5.86340000000007, "y": -6.2952000000000226 }, { "x": -5.86340000000007, "y": 6.2444000000000415 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2974924.obj?uuid=0afa546b54f0487bab1478d858b86b96",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2974924.step?uuid=0afa546b54f0487bab1478d858b86b96",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0.000500000000000167, y: 0, z: -6999999999646178e-21 },
        }, ...props }));
};

const pinLabels$2 = {
    pin1: ["S1"],
    pin2: ["G1"],
    pin3: ["S2"],
    pin4: ["G2"],
    pin5: ["D2"],
    pin6: ["D1"]
};
const SI7288DP_T1_GE3 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$2, supplierPartNumbers: {
            "jlcpcb": [
                "C126988"
            ]
        }, manufacturerPartNumber: "SI7288DP-T1-GE3", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin4"], pcbX: "1.9050254mm", pcbY: "-2.8284043mm", width: "0.6096mm", height: "1.397mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0.6350254mm", pcbY: "-2.8284043mm", width: "0.6096mm", height: "1.397mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-0.6349746mm", pcbY: "-2.8284043mm", width: "0.6096mm", height: "1.397mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.9049746mm", pcbY: "-2.8284043mm", width: "0.6096mm", height: "1.397mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], points: [{ x: "0.286004mm", y: "-1.4260703mm" }, { x: "0.286004mm", y: "2.4089233mm" }, { x: "0.324993mm", y: "2.4089233mm" }, { x: "0.324993mm", y: "3.5269043mm" }, { x: "0.9489948mm", y: "3.5269043mm" }, { x: "0.9489948mm", y: "2.4089233mm" }, { x: "1.5990062mm", y: "2.4089233mm" }, { x: "1.5990062mm", y: "3.5269043mm" }, { x: "2.223008mm", y: "3.5269043mm" }, { x: "2.223008mm", y: "2.4089233mm" }, { x: "2.3139908mm", y: "2.4089233mm" }, { x: "2.3139908mm", y: "-1.4260703mm" }, { x: "0.286004mm", y: "-1.4260703mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin6"], points: [{ x: "-2.3139908mm", y: "-1.4260703mm" }, { x: "-2.3139908mm", y: "2.4089233mm" }, { x: "-2.223008mm", y: "2.4089233mm" }, { x: "-2.223008mm", y: "3.5269043mm" }, { x: "-1.5860014mm", y: "3.5269043mm" }, { x: "-1.5860014mm", y: "2.4089233mm" }, { x: "-0.9619996mm", y: "2.4089233mm" }, { x: "-0.9619996mm", y: "3.5269043mm" }, { x: "-0.3119882mm", y: "3.5269043mm" }, { x: "-0.3119882mm", y: "2.4089233mm" }, { x: "-0.286004mm", y: "2.4089233mm" }, { x: "-0.286004mm", y: "-1.4260703mm" }, { x: "-2.3139908mm", y: "-1.4260703mm" }], shape: "polygon" }), jsx("silkscreenpath", { route: [{ "x": -2.6288745999999037, "y": 2.990634099999852 }, { "x": -2.454148000000032, "y": 2.990634099999852 }] }), jsx("silkscreenpath", { route: [{ "x": -1.3548614000000043, "y": 2.990634099999852 }, { "x": -1.193139599999995, "y": 2.990634099999852 }] }), jsx("silkscreenpath", { route: [{ "x": -0.08082279999985076, "y": 2.990634099999852 }, { "x": 0.09385299999996732, "y": 2.990634099999852 }] }), jsx("silkscreenpath", { route: [{ "x": 1.1801856000000726, "y": 2.990634099999852 }, { "x": 1.3678916000000072, "y": 2.990634099999852 }] }), jsx("silkscreenpath", { route: [{ "x": 2.454097200000092, "y": 2.990634099999852 }, { "x": 2.66705079999997, "y": 2.990634099999852 }] }), jsx("silkscreenpath", { route: [{ "x": -2.6288745999999037, "y": -3.008871299999896 }, { "x": -2.440914600000042, "y": -3.008871299999896 }] }), jsx("silkscreenpath", { route: [{ "x": -1.3690599999999904, "y": -3.008871299999896 }, { "x": -1.17091460000006, "y": -3.008871299999896 }] }), jsx("silkscreenpath", { route: [{ "x": -0.0990599999998949, "y": -3.008871299999896 }, { "x": 0.0990854000000354, "y": -3.008871299999896 }] }), jsx("silkscreenpath", { route: [{ "x": 1.1709399999999732, "y": -3.008871299999896 }, { "x": 1.3690854000000172, "y": -3.008871299999896 }] }), jsx("silkscreenpath", { route: [{ "x": 2.440939999999955, "y": -3.008871299999896 }, { "x": 2.628900000000044, "y": -3.008871299999896 }] }), jsx("silkscreenpath", { route: [{ "x": 2.66705079999997, "y": 2.990634099999852 }, { "x": 2.66705079999997, "y": -3.008871299999896 }] }), jsx("silkscreenpath", { route: [{ "x": -2.6288745999999037, "y": 2.990634099999852 }, { "x": -2.6288745999999037, "y": -3.008871299999896 }] }), jsx("silkscreenpath", { route: [{ "x": -2.4764999999999873, "y": -3.907980500000008 }, { "x": -2.3514114714953394, "y": -3.78479211995068 }, { "x": -2.227586479760589, "y": -3.9092505000000983 }, { "x": -2.3514114714953394, "y": -4.033708880049289 }, { "x": -2.4764999999999873, "y": -3.9105204999999614 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0208534mm", pcbY: "4.5389693mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.963253399999985, "y": 3.7889692999999625 }, { "x": 2.9215465999999424, "y": 3.7889692999999625 }, { "x": 2.9215465999999424, "y": -4.280230699999947 }, { "x": -2.963253399999985, "y": -4.280230699999947 }, { "x": -2.963253399999985, "y": 3.7889692999999625 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C126988.obj?uuid=83463f7a75184531a270461904c35924",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C126988.step?uuid=83463f7a75184531a270461904c35924",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: 0.00906780000013896, y: 0.000012700000070253736, z: 0 },
        }, ...props }));
};

const pinLabels$1 = {
    pin1: ["ALM"],
    pin2: ["SDA"],
    pin3: ["SCL"],
    pin4: ["NC"],
    pin5: ["GND"],
    pin6: ["CG"],
    pin7: ["RSTIO"],
    pin8: ["pin8"],
    pin9: ["VCC"],
    pin10: ["VIN"]
};
const STC3115AIQT = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$1, supplierPartNumbers: {
            "jlcpcb": [
                "C2688637"
            ]
        }, manufacturerPartNumber: "STC3115AIQT", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.999998mm", pcbY: "-0.8000365mm", width: "0.229997mm", height: "0.999998mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "-0.999998mm", pcbY: "0.8875395mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-0.499872mm", pcbY: "-0.8874125mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "-0.499872mm", pcbY: "0.8875395mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0mm", pcbY: "-0.8874125mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "0mm", pcbY: "0.8875395mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "0.500126mm", pcbY: "-0.8874125mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "0.500126mm", pcbY: "0.8875395mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "0.999998mm", pcbY: "-0.8874125mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "0.999998mm", pcbY: "0.8875395mm", width: "0.229997mm", height: "0.824992mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -1.2860019999999963, "y": -1.0159364999999951 }, { "x": -1.5400020000000012, "y": -1.0159364999999951 }, { "x": -1.5400020000000012, "y": 1.0160635000000013 }, { "x": -1.2860019999999963, "y": 1.0160635000000013 }] }), jsx("silkscreenpath", { route: [{ "x": 1.269999999999996, "y": 1.0160635000000013 }, { "x": 1.524000000000001, "y": 1.0160635000000013 }, { "x": 1.524000000000001, "y": -1.0159364999999951 }, { "x": 1.269999999999996, "y": -1.0159364999999951 }] }), jsx("silkscreenpath", { route: [{ "x": -1.3970000000000056, "y": -1.5239364999999907 }, { "x": -1.4013274200612784, "y": -1.556806518728024 }, { "x": -1.414014773719373, "y": -1.5874364999999955 }, { "x": -1.4341974387893117, "y": -1.613739061210694 }, { "x": -1.4604999999999961, "y": -1.6339217262806187 }, { "x": -1.4911299812719676, "y": -1.6466090799387132 }, { "x": -1.524000000000001, "y": -1.6509365000000003 }, { "x": -1.55687001872802, "y": -1.6466090799387132 }, { "x": -1.5875000000000057, "y": -1.6339217262806187 }, { "x": -1.61380256121069, "y": -1.613739061210694 }, { "x": -1.6339852262806147, "y": -1.5874364999999955 }, { "x": -1.6466725799387092, "y": -1.556806518728024 }, { "x": -1.6509999999999962, "y": -1.5239364999999907 }, { "x": -1.6466725799387092, "y": -1.4910664812719716 }, { "x": -1.6339852262806147, "y": -1.4604365000000001 }, { "x": -1.61380256121069, "y": -1.4341339387893015 }, { "x": -1.5875000000000057, "y": -1.413951273719377 }, { "x": -1.55687001872802, "y": -1.4012639200612824 }, { "x": -1.524000000000001, "y": -1.3969364999999954 }, { "x": -1.4911299812719676, "y": -1.4012639200612824 }, { "x": -1.4604999999999961, "y": -1.413951273719377 }, { "x": -1.4341974387893117, "y": -1.4341339387893015 }, { "x": -1.414014773719373, "y": -1.4604365000000001 }, { "x": -1.4013274200612784, "y": -1.4910664812719716 }, { "x": -1.3970000000000056, "y": -1.5239364999999907 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0635mm", pcbY: "2.2954635mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -1.9009999999999962, "y": 1.545463500000011 }, { "x": 1.774000000000001, "y": 1.545463500000011 }, { "x": 1.774000000000001, "y": -1.9009365000000003 }, { "x": -1.9009999999999962, "y": -1.9009365000000003 }, { "x": -1.9009999999999962, "y": 1.545463500000011 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2688637.obj?uuid=aff07f3c4c46474d8298bcc3ae1a4775",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2688637.step?uuid=aff07f3c4c46474d8298bcc3ae1a4775",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: -6350000001020817e-20, z: -0.01 },
        }, ...props }));
};

const pinLabels = {
    pin1: ["VOUT"],
    pin2: ["L2"],
    pin3: ["PGND"],
    pin4: ["L1"],
    pin5: ["VIN"],
    pin6: ["EN"],
    pin7: ["PS_SYNC"],
    pin8: ["VINA"],
    pin9: ["GND"],
    pin10: ["FB"],
    pin11: ["EP"]
};
const TPS63031DSKR = (props) => {
    return (jsx("chip", { pinLabels: pinLabels, supplierPartNumbers: {
            "jlcpcb": [
                "C15516"
            ]
        }, manufacturerPartNumber: "TPS63031DSKR", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.157478mm", pcbY: "0.999998mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-1.157478mm", pcbY: "0.499872mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-1.157478mm", pcbY: "0mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-1.157478mm", pcbY: "-0.500126mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-1.157478mm", pcbY: "-0.999998mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "1.157478mm", pcbY: "0.999998mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "1.157478mm", pcbY: "0.499872mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "1.157478mm", pcbY: "0mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "1.157478mm", pcbY: "-0.500126mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "1.157478mm", pcbY: "-0.999998mm", width: "0.6649974mm", height: "0.2800096mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "0mm", pcbY: "0mm", width: "1.1999976mm", height: "2.4mm", shape: "rect" }), jsx("platedhole", { portHints: ["pin11"], pcbX: "0mm", pcbY: "-0.65mm", outerDiameter: "0.45mm", holeDiameter: "0.2mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin11"], pcbX: "0mm", pcbY: "0mm", outerDiameter: "0.45mm", holeDiameter: "0.2mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin11"], pcbX: "0mm", pcbY: "0.65mm", outerDiameter: "0.45mm", holeDiameter: "0.2mm", shape: "circle" }), jsx("silkscreenpath", { route: [{ "x": -1.326210200000105, "y": 1.326210200000105 }, { "x": 1.3262101999999913, "y": 1.326210200000105 }] }), jsx("silkscreenpath", { route: [{ "x": 1.3262101999999913, "y": -1.326210200000105 }, { "x": -1.326210200000105, "y": -1.326210200000105 }] }), jsx("silkscreenpath", { route: [{ "x": -1.6898620000001756, "y": 0.999998000000005 }, { "x": -1.6932720070084315, "y": 0.974096425242351 }, { "x": -1.7032696416910085, "y": 0.9499599999999191 }, { "x": -1.7191735817660856, "y": 0.9292335817660842 }, { "x": -1.7398999999999205, "y": 0.913329641691007 }, { "x": -1.764036425242466, "y": 0.9033320070084301 }, { "x": -1.7899380000001202, "y": 0.8999220000000605 }, { "x": -1.8158395747577742, "y": 0.9033320070084301 }, { "x": -1.8399759999999787, "y": 0.913329641691007 }, { "x": -1.860702418234041, "y": 0.9292335817660842 }, { "x": -1.8766063583091181, "y": 0.9499599999999191 }, { "x": -1.8866039929916951, "y": 0.974096425242351 }, { "x": -1.8900140000000647, "y": 0.999998000000005 }, { "x": -1.8866039929916951, "y": 1.0258995747576591 }, { "x": -1.8766063583091181, "y": 1.0500359999999773 }, { "x": -1.860702418234041, "y": 1.0707624182340396 }, { "x": -1.8399759999999787, "y": 1.0866663583091167 }, { "x": -1.8158395747577742, "y": 1.0966639929916937 }, { "x": -1.7899380000001202, "y": 1.1000739999999496 }, { "x": -1.764036425242466, "y": 1.0966639929916937 }, { "x": -1.7398999999999205, "y": 1.0866663583091167 }, { "x": -1.7191735817660856, "y": 1.0707624182340396 }, { "x": -1.7032696416910085, "y": 1.0500359999999773 }, { "x": -1.6932720070084315, "y": 1.0258995747576591 }, { "x": -1.6898620000001756, "y": 0.999998000000005 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.1905mm", pcbY: "2.3208mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.129600000000096, "y": 1.570799999999963 }, { "x": 1.7486000000000104, "y": 1.570799999999963 }, { "x": 1.7486000000000104, "y": -1.5708000000000766 }, { "x": -2.129600000000096, "y": -1.5708000000000766 }, { "x": -2.129600000000096, "y": 1.570799999999963 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C15516.obj?uuid=12c631ea46604e478703d8e42e76d1d7",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C15516.step?uuid=12c631ea46604e478703d8e42e76d1d7",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0.000012699999842880061, z: 0 },
        }, ...props }));
};

const jlc = (code) => ({ jlcpcb: [code] });
const arcPoints = (centerX, centerY, radius, startDegrees, endDegrees, segments = 8) => Array.from({ length: segments + 1 }, (_, index) => {
    const degrees = startDegrees + ((endDegrees - startDegrees) * index) / segments;
    const radians = (degrees * Math.PI) / 180;
    return {
        x: centerX + radius * Math.cos(radians),
        y: centerY + radius * Math.sin(radians),
    };
});
// The reference PCB is a 30 mm square core with four castellated contact tabs
// on each side. Each tab protrudes from the core and has an inward semicircular
// edge cut through its exposed top-and-bottom copper.
const referenceBoardOutline = [
    { x: -15, y: 15 },
    { x: 15, y: 15 },
    { x: 15, y: 14.5 },
    { x: 17.2, y: 14.5 },
    { x: 17.2, y: 12.2 },
    ...arcPoints(17.2, 11.3, 0.9, 90, 270).slice(1),
    { x: 17.2, y: 8.1 },
    { x: 15.1, y: 8.1 },
    { x: 15.1, y: 7 },
    { x: 17.4, y: 7 },
    { x: 17.4, y: 4.7 },
    ...arcPoints(17.4, 3.8, 0.9, 90, 270).slice(1),
    { x: 17.4, y: 0.6 },
    { x: 15.1, y: 0.6 },
    { x: 15.1, y: -0.6 },
    { x: 17.4, y: -0.6 },
    { x: 17.4, y: -2.9 },
    ...arcPoints(17.4, -3.8, 0.9, 90, 270).slice(1),
    { x: 17.4, y: -7 },
    { x: 15, y: -7 },
    { x: 15, y: -8 },
    { x: 17.3, y: -8 },
    { x: 17.3, y: -10.3 },
    ...arcPoints(17.3, -11.2, 0.9, 90, 270).slice(1),
    { x: 17.3, y: -14.4 },
    { x: 15, y: -14.4 },
    { x: 15, y: -15 },
    { x: -15, y: -15 },
    { x: -15, y: -14.4 },
    { x: -17.4, y: -14.4 },
    { x: -17.4, y: -12.1 },
    ...arcPoints(-17.4, -11.2, 0.9, -90, 90).slice(1),
    { x: -17.4, y: -8 },
    { x: -15.1, y: -8 },
    { x: -15.1, y: -6.8 },
    { x: -17.3, y: -6.8 },
    { x: -17.3, y: -4.5 },
    ...arcPoints(-17.3, -3.6, 0.9, -90, 90).slice(1),
    { x: -17.3, y: -0.4 },
    { x: -15, y: -0.4 },
    { x: -15, y: 0.6 },
    { x: -17.3, y: 0.6 },
    { x: -17.3, y: 2.9 },
    ...arcPoints(-17.3, 3.8, 0.9, -90, 90).slice(1),
    { x: -17.3, y: 7 },
    { x: -15, y: 7 },
    { x: -15, y: 8.1 },
    { x: -17.4, y: 8.1 },
    { x: -17.4, y: 10.4 },
    ...arcPoints(-17.4, 11.3, 0.9, -90, 90).slice(1),
    { x: -17.4, y: 14.5 },
    { x: -15, y: 14.5 },
];
const referenceOutlineScale = 1.9;
const boardOutline = referenceBoardOutline.map(({ x, y }) => ({
    x: Number((x * referenceOutlineScale).toFixed(4)),
    y: Number((y * referenceOutlineScale).toFixed(4)),
}));
const castellatedPadHalfWidth = 1.9;
const castellatedPadHalfHeight = 5.7;
const castellatedHoleCenterOffset = 2.28;
const castellatedHoleRadius = 1.71;
const castellatedOuterStripHeight = castellatedPadHalfHeight - castellatedHoleRadius;
const castellatedOuterStripY = (castellatedPadHalfHeight + castellatedHoleRadius) / 2;
const castellatedCenterStripWidth = castellatedPadHalfWidth +
    castellatedHoleCenterOffset -
    castellatedHoleRadius;
const CastellatedPadPair = ({ x, y, pin, side, }) => {
    const direction = side === "left" ? -1 : 1;
    const padRegions = [
        {
            x: direction * castellatedPadHalfWidth,
            y: castellatedOuterStripY,
            width: castellatedPadHalfWidth * 2,
            height: castellatedOuterStripHeight,
        },
        {
            x: direction * castellatedPadHalfWidth,
            y: -castellatedOuterStripY,
            width: castellatedPadHalfWidth * 2,
            height: castellatedOuterStripHeight,
        },
        {
            x: direction * (castellatedCenterStripWidth / 2),
            y: 0,
            width: castellatedCenterStripWidth,
            height: castellatedHoleRadius * 2,
        },
    ];
    const [upperRegion, lowerRegion, centerRegion] = padRegions;
    return (jsxs(Fragment, { children: [jsx("smtpad", { shape: "rect", width: upperRegion.width, height: upperRegion.height, pcbX: x + upperRegion.x, pcbY: y + upperRegion.y, layer: "top", portHints: [pin], coveredWithSolderMask: false, solderMaskMargin: "0mm" }), jsx("smtpad", { shape: "rect", width: lowerRegion.width, height: lowerRegion.height, pcbX: x + lowerRegion.x, pcbY: y + lowerRegion.y, layer: "top", portHints: [pin], coveredWithSolderMask: false, solderMaskMargin: "0mm" }), jsx("smtpad", { shape: "rect", width: centerRegion.width, height: centerRegion.height, pcbX: x + centerRegion.x, pcbY: y + centerRegion.y, layer: "top", portHints: [pin], coveredWithSolderMask: false, solderMaskMargin: "0mm" }), jsx("smtpad", { shape: "rect", width: upperRegion.width, height: upperRegion.height, pcbX: x + upperRegion.x, pcbY: y + upperRegion.y, layer: "bottom", portHints: [pin], coveredWithSolderMask: false, solderMaskMargin: "0mm" }), jsx("smtpad", { shape: "rect", width: lowerRegion.width, height: lowerRegion.height, pcbX: x + lowerRegion.x, pcbY: y + lowerRegion.y, layer: "bottom", portHints: [pin], coveredWithSolderMask: false, solderMaskMargin: "0mm" }), jsx("smtpad", { shape: "rect", width: centerRegion.width, height: centerRegion.height, pcbX: x + centerRegion.x, pcbY: y + centerRegion.y, layer: "bottom", portHints: [pin], coveredWithSolderMask: false, solderMaskMargin: "0mm" })] }));
};
const CastellatedContactFootprint = ({ side, contacts, }) => {
    return (jsxs("footprint", { insertionDirection: "from_above", children: [jsx(CastellatedPadPair, { x: contacts[0].x, y: contacts[0].y, pin: "pin1", side: side }), jsx(CastellatedPadPair, { x: contacts[1].x, y: contacts[1].y, pin: "pin2", side: side }), jsx(CastellatedPadPair, { x: contacts[2].x, y: contacts[2].y, pin: "pin3", side: side }), jsx(CastellatedPadPair, { x: contacts[3].x, y: contacts[3].y, pin: "pin4", side: side })] }));
};
const traces = {
    SOLAR_IN: [".J_SOLAR > .pin1", ".D_REV > .pin2"],
    VIN_PROTECTED: [
        ".D_REV > .pin1",
        ".Q12 > .D1",
        ".C_IN1 > .pin1",
        ".C_IN2 > .pin1",
        ".R_DAMP > .pin1",
        ".R_VCC > .pin1",
    ],
    DAMP_NODE: [".R_DAMP > .pin2", ".C_DAMP > .pin1"],
    VCC_SENSE: [
        ".R_VCC > .pin2",
        ".C_VCC > .pin1",
        ".U_CHG > .VCC",
        ".R_MPPT_TOP > .pin1",
    ],
    MPPSET: [
        ".U_CHG > .MPPSET",
        ".R_MPPT_TOP > .pin2",
        ".R_MPPT_BOTTOM > .pin1",
        ".Q_CE > .D",
    ],
    CE_GATE: [
        ".J_CTRL > .pin1",
        ".Q_CE > .G",
        ".D_GAUGE_CE > .pin1",
        ".R_CE_PD > .pin1",
    ],
    HIDRV: [".U_CHG > .HIDRV", ".Q12 > .G1"],
    LODRV: [".U_CHG > .LODRV", ".Q12 > .G2"],
    PH: [
        ".U_CHG > .PH",
        ".Q12 > .S1",
        ".Q12 > .D2",
        ".C_BOOT > .pin2",
        ".L_CHG > .pin1",
    ],
    CHG_POWER_PRE_SENSE: [
        ".L_CHG > .pin2",
        ".R_CHG_SENSE > .pin1",
        ".R_SRP_KELVIN > .pin1",
    ],
    SRP_KELVIN: [
        ".R_SRP_KELVIN > .pin2",
        ".U_CHG > .SRP",
        ".C_SENSE_DIFF > .pin1",
        ".C_SRP_GND > .pin1",
    ],
    BATTERY_POWER: [
        ".R_CHG_SENSE > .pin2",
        ".J_BAT > .pin1",
        ".C_BAT > .pin1",
        ".R_SRN_KELVIN > .pin1",
        ".R_VBAT_KELVIN > .pin1",
        ".R_BUCK_INPUT > .pin1",
    ],
    BUCK_INPUT: [
        ".R_BUCK_INPUT > .pin2",
        ".U_3V3 > .VIN",
        ".U_3V3 > .VINA",
        ".C_3V3_IN > .pin1",
        ".C_3V3_BYP > .pin1",
    ],
    SRN_KELVIN: [
        ".R_SRN_KELVIN > .pin2",
        ".U_CHG > .SRN",
        ".C_SENSE_DIFF > .pin2",
        ".C_SRN_GND > .pin1",
    ],
    BATTERY_SENSE: [
        ".R_VBAT_KELVIN > .pin2",
        ".R_VFB_TOP > .pin1",
        ".C_VFB > .pin1",
        ".U_GAUGE > .VCC",
        ".C_GAUGE_VCC > .pin1",
        ".R_GAUGE_VIN > .pin1",
    ],
    VFB: [
        ".U_CHG > .VFB",
        ".R_VFB_TOP > .pin2",
        ".R_VFB_BOTTOM > .pin1",
        ".C_VFB > .pin2",
    ],
    REGN: [
        ".U_CHG > .REGN",
        ".C_REGN > .pin1",
        ".D_BOOT > .pin2",
    ],
    BTST: [".U_CHG > .BTST", ".D_BOOT > .pin1", ".C_BOOT > .pin1"],
    VREF: [
        ".U_CHG > .VREF",
        ".U_CHG > .TERM_EN",
        ".C_VREF > .pin1",
        ".R_TS_PULLUP > .pin1",
        ".R_STAT1 > .pin1",
        ".R_STAT2 > .pin1",
    ],
    CHG_AGND: [
        ".U_CHG > .GND",
        ".C_VCC > .pin2",
        ".R_MPPT_BOTTOM > .pin2",
        ".R_VFB_BOTTOM > .pin2",
        ".C_VREF > .pin2",
        ".R_TS_BOTTOM > .pin2",
        ".C_SRP_GND > .pin2",
        ".C_SRN_GND > .pin2",
        ".R_CHG_AGND > .pin2",
    ],
    TS: [
        ".U_CHG > .TS",
        ".J_BAT > .pin2",
        ".R_TS_PULLUP > .pin2",
        ".R_TS_BOTTOM > .pin1",
    ],
    STAT1_LED_A: [".R_STAT1 > .pin2", ".D_STAT1 > .pin2"],
    STAT1: [".D_STAT1 > .pin1", ".U_CHG > .STAT1"],
    STAT2_LED_A: [".R_STAT2 > .pin2", ".D_STAT2 > .pin2"],
    STAT2: [".D_STAT2 > .pin1", ".U_CHG > .STAT2"],
    BAT_NEG: [".J_BAT > .pin3", ".R_GAUGE_SENSE > .pin1", ".R_CG_KELVIN > .pin1"],
    GAUGE_CG: [".R_CG_KELVIN > .pin2", ".U_GAUGE > .CG"],
    GAUGE_GND_KELVIN: [
        ".R_GND_KELVIN > .pin2",
        ".U_GAUGE > .GND",
        ".C_GAUGE_VCC > .pin2",
        ".C_GAUGE_VIN > .pin2",
        ".R_BATD > .pin2",
    ],
    GAUGE_VIN: [
        ".R_GAUGE_VIN > .pin2",
        ".C_GAUGE_VIN > .pin1",
        ".U_GAUGE > .VIN",
    ],
    GAUGE_BATD: [".R_BATD > .pin1", ".U_GAUGE > .pin8", ".D_GAUGE_CE > .pin2"],
    ALM: [".U_GAUGE > .ALM", ".R_ALM > .pin2", ".J_CTRL > .pin3"],
    SDA: [".U_GAUGE > .SDA", ".R_SDA > .pin2", ".J_IO > .pin3"],
    SCL: [".U_GAUGE > .SCL", ".R_SCL > .pin2", ".J_IO > .pin4"],
    OUT_EN: [".U_3V3 > .EN", ".R_OUT_EN_PD > .pin1", ".J_CTRL > .pin2"],
    BUCK_L1: [".U_3V3 > .L1", ".L_3V3 > .pin1"],
    BUCK_L2: [".U_3V3 > .L2", ".L_3V3 > .pin2"],
    PS_SYNC_LOW: [".U_3V3 > .PS_SYNC", ".R_PS_SYNC > .pin1"],
    TPS_AGND: [
        ".U_3V3 > .GND",
        ".R_TPS_AGND > .pin2",
    ],
    VOUT_3V3: [
        ".U_3V3 > .VOUT",
        ".U_3V3 > .FB",
        ".C_3V3_OUT1 > .pin1",
        ".C_3V3_OUT2 > .pin1",
        ".R_ALM > .pin1",
        ".R_SDA > .pin1",
        ".R_SCL > .pin1",
        ".J_IO > .pin1",
    ],
    GND: [
        ".J_SOLAR > .pin2",
        ".C_IN1 > .pin2",
        ".C_IN2 > .pin2",
        ".C_DAMP > .pin2",
        ".Q_CE > .S",
        ".R_CE_PD > .pin2",
        ".Q12 > .S2",
        ".U_CHG > .EP",
        ".C_BAT > .pin2",
        ".C_REGN > .pin2",
        ".R_GAUGE_SENSE > .pin2",
        ".R_GND_KELVIN > .pin1",
        ".R_CHG_AGND > .pin1",
        ".U_3V3 > .PGND",
        ".U_3V3 > .EP",
        ".C_3V3_IN > .pin2",
        ".C_3V3_BYP > .pin2",
        ".C_3V3_OUT1 > .pin2",
        ".C_3V3_OUT2 > .pin2",
        ".R_TPS_AGND > .pin1",
        ".R_PS_SYNC > .pin2",
        ".R_OUT_EN_PD > .pin2",
        ".J_CTRL > .pin4",
        ".J_IO > .pin2",
    ],
};
const powerNets = new Set([
    "SOLAR_IN",
    "VIN_PROTECTED",
    "PH",
    "CHG_POWER_PRE_SENSE",
    "BATTERY_POWER",
    "BAT_NEG",
]);
const mediumPowerNets = new Set(["BUCK_INPUT", "VOUT_3V3", "GND", "BUCK_L1", "BUCK_L2"]);
const traceThickness = (netName) => {
    if (powerNets.has(netName))
        return "0.6mm";
    if (netName === "VOUT_3V3")
        return "0.3mm";
    if (mediumPowerNets.has(netName))
        return "0.4mm";
    return "0.15mm";
};
const Resistor = ({ name, resistance, footprint, mpn, lcsc, pcbX, pcbY, pcbRotation = 0, schX, schY, schSectionName, }) => (jsx("resistor", { name: name, resistance: resistance, footprint: footprint, manufacturerPartNumber: mpn, supplierPartNumbers: jlc(lcsc), pcbX: pcbX, pcbY: pcbY, pcbRotation: pcbRotation, schX: schX, schY: schY, schSectionName: schSectionName }));
const Capacitor = ({ name, capacitance, footprint, mpn, lcsc, pcbX, pcbY, pcbRotation = 0, schX, schY, schSectionName, }) => (jsx("capacitor", { name: name, capacitance: capacitance, footprint: footprint, manufacturerPartNumber: mpn, supplierPartNumbers: jlc(lcsc), pcbX: pcbX, pcbY: pcbY, pcbRotation: pcbRotation, schX: schX, schY: schY, schOrientation: "vertical", schSectionName: schSectionName }));
var index_circuit = () => (jsxs("board", { title: "Solar Battery Charger Module - fabrication revision", outline: boardOutline, layers: 2, thickness: "1.2mm", solderMaskColor: "black", silkscreenColor: "white", defaultTraceWidth: "0.15mm", minTraceWidth: "0.15mm", minTraceToPadEdgeClearance: "0.1mm", minPadEdgeToPadEdgeClearance: "0.15mm", minBoardEdgeClearance: "0mm", minViaHoleDiameter: "0.15mm", minViaPadDiameter: "0.35mm", minViaEdgeToPadEdgeClearance: "0.1mm", isViaInPadAllowed: true, autorouter: { preset: "default", traceClearance: "0.1mm" }, schAutoLayoutEnabled: true, schTraceAutoLabelEnabled: true, children: [jsx("schematicsection", { name: "Solar", displayName: "Solar charger (BQ24650)" }), jsx("schematicsection", { name: "Gauge", displayName: "Battery gauge (STC3115)" }), jsx("schematicsection", { name: "Output", displayName: "3.3 V buck-boost output" }), jsx("schematicsection", { name: "IO", displayName: "Connectors and status" }), jsx(KF127S_5_08_2P, { name: "J_SOLAR", pcbX: -23, pcbY: 18, pcbRotation: 0, schX: -19, schY: 8, schSectionName: "Solar" }), jsx(B3B_PH_SM4_TB_LF__SN_, { name: "J_BAT", noConnect: ["pin4", "pin5"], pcbX: 20, pcbY: 23.5, pcbRotation: 0, schX: 18, schY: 7, schHeight: 0.6, schSectionName: "Gauge" }), jsx("chip", { name: "D_REV", pinLabels: { pin1: "K", pin2: "A" }, footprint: "sma", manufacturerPartNumber: "SS54", supplierPartNumbers: jlc("C22452"), pcbX: -23, pcbY: 9.5, pcbRotation: 0, schX: -17, schY: 8, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_IN1", capacitance: "10uF", footprint: "1210", mpn: "GRM32ER7YA106KA12L", lcsc: "C97973", pcbX: -6.5, pcbY: 16, pcbRotation: 180, schX: -15, schY: 9, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_IN2", capacitance: "10uF", footprint: "1210", mpn: "GRM32ER7YA106KA12L", lcsc: "C97973", pcbX: -17, pcbY: 7.5, pcbRotation: 180, schX: -15, schY: 7, schSectionName: "Solar" }), jsx(Resistor, { name: "R_DAMP", resistance: "2", footprint: "2512", mpn: "FRC2512F2R00TS", lcsc: "C3013321", pcbX: -13, pcbY: 20.5, schX: -13, schY: 9, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_DAMP", capacitance: "2.2uF", footprint: "1210", mpn: "1210B225K500NT", lcsc: "C1950", pcbX: -6.7, pcbY: 20.5, schX: -11, schY: 9, schSectionName: "Solar" }), jsx(Resistor, { name: "R_VCC", resistance: "10", footprint: "1206", mpn: "1206W4F100JT5E", lcsc: "C17903", pcbX: -12.5, pcbY: 12, schX: -13, schY: 6, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_VCC", capacitance: "1uF", footprint: "0805", mpn: "CL21B105KBFNNNE", lcsc: "C28323", pcbX: 4.5, pcbY: 11.8, schX: -11, schY: 6, schSectionName: "Solar" }), jsx(BQ24650RVAR, { name: "U_CHG", pcbX: 3.5, pcbY: 8.5, pcbRotation: 270, schX: -7.63, schY: 7, schWidth: 2.2, schHeight: 1.8, schSectionName: "Solar" }), jsx(SI7288DP_T1_GE3, { name: "Q12", pcbX: 0, pcbY: 17.2, pcbRotation: 0, schX: -3, schY: 9, schSectionName: "Solar" }), jsx("chip", { name: "Q_CE", manufacturerPartNumber: "2N7002", supplierPartNumbers: jlc("C8545"), footprint: "sot23", pinLabels: { pin1: "G", pin2: "S", pin3: "D" }, pcbX: -3, pcbY: 8.5, pcbRotation: 90, schX: -4.37, schY: 6, schHeight: 0.4, schSectionName: "Solar" }), jsx(Resistor, { name: "R_CE_PD", resistance: "100k", footprint: "0402", mpn: "0402WGF1003TCE", lcsc: "C25741", pcbX: -6, pcbY: 6, schX: 0, schY: 6, schSectionName: "Solar" }), jsx("chip", { name: "D_GAUGE_CE", pinLabels: { pin1: "K", pin2: "A" }, footprint: "sod123", manufacturerPartNumber: "MBR0540T1G", supplierPartNumbers: jlc("C21353"), pcbX: 26.5, pcbY: 14, pcbRotation: 270, schX: 3, schY: 6, schSectionName: "Gauge" }), jsx(IHLP2525CZER100M01, { name: "L_CHG", pcbX: 8.5, pcbY: 17.2, schX: 1, schY: 9, schSectionName: "Solar" }), jsx(Resistor, { name: "R_CHG_SENSE", resistance: "0.02", footprint: "1206", mpn: "WSL1206R0200FEA", lcsc: "C844895", pcbX: 15.5, pcbY: 17.2, schX: 4, schY: 9, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_BAT", capacitance: "10uF", footprint: "1210", mpn: "GRM32ER7YA106KA12L", lcsc: "C97973", pcbX: 14, pcbY: 10.5, schX: 7, schY: 9, schSectionName: "Solar" }), jsx(Resistor, { name: "R_SRP_KELVIN", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 14, pcbY: 13.5, pcbRotation: 90, schX: 2.6, schY: 7.8, schSectionName: "Solar" }), jsx(Resistor, { name: "R_SRN_KELVIN", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 19.2, pcbY: 15, pcbRotation: 90, schX: 5.4, schY: 7.8, schSectionName: "Solar" }), jsx(Resistor, { name: "R_VBAT_KELVIN", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 25.5, pcbY: 17.5, pcbRotation: 90, schX: 8, schY: 7.5, schSectionName: "Gauge" }), jsx(Capacitor, { name: "C_SENSE_DIFF", capacitance: "0.1uF", footprint: "0402", mpn: "CL05B104KB5NNNC", lcsc: "C960916", pcbX: 10, pcbY: 3.5, schX: 3.24, schY: 7, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_SRP_GND", capacitance: "0.1uF", footprint: "0402", mpn: "CL05B104KB5NNNC", lcsc: "C960916", pcbX: 8.5, pcbY: 7, schX: 3, schY: 4, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_SRN_GND", capacitance: "0.1uF", footprint: "0402", mpn: "CL05B104KB5NNNC", lcsc: "C960916", pcbX: 8.5, pcbY: 5.3, schX: 6, schY: 4, schSectionName: "Solar" }), jsx(Resistor, { name: "R_MPPT_TOP", resistance: "499k", footprint: "0402", mpn: "0402WGF4993TCE", lcsc: "C25793", pcbX: -7, pcbY: 9.5, schX: -9, schY: 4, schSectionName: "Solar" }), jsx(Resistor, { name: "R_MPPT_BOTTOM", resistance: "36k", footprint: "0402", mpn: "0402WGF3602TCE", lcsc: "C43676", pcbX: -7, pcbY: 7.5, schX: -7, schY: 4, schSectionName: "Solar" }), jsx(Resistor, { name: "R_VFB_TOP", resistance: "100k", footprint: "0402", mpn: "0402WGF1003TCE", lcsc: "C25741", pcbX: 10, pcbY: 0, schX: 7, schY: 7, schSectionName: "Solar" }), jsx(Resistor, { name: "R_VFB_BOTTOM", resistance: "100k", footprint: "0402", mpn: "0402WGF1003TCE", lcsc: "C25741", pcbX: 13, pcbY: 0, schX: 10, schY: 7, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_VFB", capacitance: "22pF", footprint: "0402", mpn: "0402CG220J500NT", lcsc: "C1555", pcbX: 11.5, pcbY: -1.5, schX: 8.5, schY: 4, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_REGN", capacitance: "1uF", footprint: "0805", mpn: "CL21B105KBFNNNE", lcsc: "C28323", pcbX: 8, pcbY: 9.25, schX: -5, schY: 4, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_VREF", capacitance: "1uF", footprint: "0805", mpn: "CL21B105KBFNNNE", lcsc: "C28323", pcbX: 3.5, pcbY: 4.5, schX: -4, schY: 2, schSectionName: "Solar" }), jsx(Resistor, { name: "R_CHG_AGND", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 6.5, pcbY: 4.2, schX: -1, schY: 0, schSectionName: "Solar" }), jsx("chip", { name: "D_BOOT", pinLabels: { pin1: "K", pin2: "A" }, footprint: "sod123", manufacturerPartNumber: "MBR0540T1G", supplierPartNumbers: jlc("C21353"), pcbX: -6.5, pcbY: 12.5, pcbRotation: 0, schX: -1.12, schY: 2, schSectionName: "Solar" }), jsx(Capacitor, { name: "C_BOOT", capacitance: "0.1uF", footprint: "0402", mpn: "CL05B104KB5NNNC", lcsc: "C960916", pcbX: 1.5, pcbY: 12.1, schX: 1.13, schY: 2, schSectionName: "Solar" }), jsx(Resistor, { name: "R_TS_PULLUP", resistance: "7.5k", footprint: "0402", mpn: "0402WGF7501TCE", lcsc: "C25918", pcbX: -11, pcbY: 2, schX: 1, schY: 0, schSectionName: "Solar" }), jsx(Resistor, { name: "R_TS_BOTTOM", resistance: "82k", footprint: "0402", mpn: "0402WGF8202TCE", lcsc: "C4142", pcbX: -9, pcbY: 2, schX: 4, schY: 0, schSectionName: "Solar" }), jsx(Resistor, { name: "R_STAT1", resistance: "10k", footprint: "0402", mpn: "0402WGF1002TCE", lcsc: "C25744", pcbX: -5, pcbY: 4.5, schX: -7, schY: -1, schSectionName: "Solar" }), jsx("chip", { name: "D_STAT1", pinLabels: { pin1: "K", pin2: "A" }, footprint: "0603", manufacturerPartNumber: "LTST-C190GKT", supplierPartNumbers: jlc("C125093"), pcbX: -2, pcbY: 4.5, schX: -3, schY: -1, schSectionName: "Solar" }), jsx(Resistor, { name: "R_STAT2", resistance: "10k", footprint: "0402", mpn: "0402WGF1002TCE", lcsc: "C25744", pcbX: -2, pcbY: -4, schX: 0, schY: -1, schSectionName: "Solar" }), jsx("chip", { name: "D_STAT2", pinLabels: { pin1: "K", pin2: "A" }, footprint: "0603", manufacturerPartNumber: "LTST-C190KRKT", supplierPartNumbers: jlc("C94869"), pcbX: 1, pcbY: -4, schX: 3, schY: -1, schSectionName: "Solar" }), jsx(Resistor, { name: "R_GAUGE_SENSE", resistance: "0.005", footprint: "1206", mpn: "HoLLR1206-1W-5mR-1%", lcsc: "C2988648", pcbX: 20.5, pcbY: 17.5, schX: 11.81, schY: 8, schSectionName: "Gauge" }), jsx(Resistor, { name: "R_CG_KELVIN", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 23.5, pcbY: 13.2, pcbRotation: 90, schX: 13.6, schY: 8, schSectionName: "Gauge" }), jsx(Resistor, { name: "R_GND_KELVIN", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 24.5, pcbY: 8, pcbRotation: 90, schX: 16.4, schY: 8, schSectionName: "Gauge" }), jsx(STC3115AIQT, { name: "U_GAUGE", noConnect: ["NC", "RSTIO"], pcbX: 20.5, pcbY: 9.5, pcbRotation: 0, schX: 14, schY: 5, schSectionName: "Gauge" }), jsx(Capacitor, { name: "C_GAUGE_VCC", capacitance: "1uF", footprint: "0402", mpn: "GRM155Z71A105KE01D", lcsc: "C528974", pcbX: 19.2, pcbY: 12.5, pcbRotation: 90, schX: 18, schY: 5, schSectionName: "Gauge" }), jsx(Resistor, { name: "R_GAUGE_VIN", resistance: "1k", footprint: "0402", mpn: "0402WGF1001TCE", lcsc: "C11702", pcbX: 17.5, pcbY: 10.2, schX: 11.95, schY: 2, schSectionName: "Gauge" }), jsx(Capacitor, { name: "C_GAUGE_VIN", capacitance: "220nF", footprint: "0402", mpn: "CC0402KRX7R6BB224", lcsc: "C705052", pcbX: 17.2, pcbY: 8.7, pcbRotation: 270, schX: 13.8, schY: 2, schSectionName: "Gauge" }), jsx(Resistor, { name: "R_BATD", resistance: "1k", footprint: "0402", mpn: "0402WGF1001TCE", lcsc: "C11702", pcbX: 23.5, pcbY: 11.2, pcbRotation: 90, schX: 16.25, schY: 2, schSectionName: "Gauge" }), jsx(TPS63031DSKR, { name: "U_3V3", pcbX: 9, pcbY: -10, pcbRotation: 0, schX: 5, schY: -6, schHeight: 1.2, schSectionName: "Output" }), jsx(DFE252012P_1R5M_P2, { name: "L_3V3", pcbX: 4, pcbY: -10, schX: 1, schY: -6, schSectionName: "Output" }), jsx(Resistor, { name: "R_BUCK_INPUT", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 11.7, pcbY: -13.5, pcbRotation: 180, schX: 0.5, schY: -8, schSectionName: "Output" }), jsx(Capacitor, { name: "C_3V3_IN", capacitance: "10uF", footprint: "0603", mpn: "CL10B106MQ8NRNC", lcsc: "C3039698", pcbX: 9, pcbY: -13.5, schX: 3, schY: -8, schSectionName: "Output" }), jsx(Capacitor, { name: "C_3V3_BYP", capacitance: "0.1uF", footprint: "0402", mpn: "CL05B104KB5NNNC", lcsc: "C960916", pcbX: 10.8, pcbY: -12.1, pcbRotation: 180, schX: 7, schY: -8, schSectionName: "Output" }), jsx(Capacitor, { name: "C_3V3_OUT1", capacitance: "10uF", footprint: "0603", mpn: "CL10B106MQ8NRNC", lcsc: "C3039698", pcbX: 9, pcbY: -7, schX: 9, schY: -6, schSectionName: "Output" }), jsx(Capacitor, { name: "C_3V3_OUT2", capacitance: "10uF", footprint: "0603", mpn: "CL10B106MQ8NRNC", lcsc: "C3039698", pcbX: 14.5, pcbY: -8, pcbRotation: 270, schX: 9, schY: -8, schSectionName: "Output" }), jsx(Resistor, { name: "R_TPS_AGND", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 11.8, pcbY: -9.2, pcbRotation: 180, schX: 6.38, schY: -4, schSectionName: "Output" }), jsx(Resistor, { name: "R_PS_SYNC", resistance: "0", footprint: "0402", mpn: "0402WGF0000TCE", lcsc: "C17168", pcbX: 13, pcbY: -10.5, schX: 8.62, schY: -4, schSectionName: "Output" }), jsx(Resistor, { name: "R_OUT_EN_PD", resistance: "1M", footprint: "0402", mpn: "0402WGF1004TCE", lcsc: "C26083", pcbX: 14, pcbY: -12, schX: 3, schY: -4, schSectionName: "Output" }), jsx(Resistor, { name: "R_ALM", resistance: "10k", footprint: "0402", mpn: "0402WGF1002TCE", lcsc: "C25744", pcbX: 16, pcbY: 6.5, schX: 13, schY: -1, schSectionName: "IO" }), jsx(Resistor, { name: "R_SDA", resistance: "10k", footprint: "0402", mpn: "0402WGF1002TCE", lcsc: "C25744", pcbX: 19.5, pcbY: 6.5, schX: 15, schY: -1, schSectionName: "IO" }), jsx(Resistor, { name: "R_SCL", resistance: "10k", footprint: "0402", mpn: "0402WGF1002TCE", lcsc: "C25744", pcbX: 22, pcbY: 6.5, schX: 17, schY: -1, schSectionName: "IO" }), jsx("connector", { name: "J_CTRL", displayName: "LEFT CASTELLATED CONTACTS", footprint: jsx(CastellatedContactFootprint, { side: "left", contacts: [
                    { x: -28.88, y: 21.47 },
                    { x: -28.69, y: 7.22 },
                    { x: -28.69, y: -6.84 },
                    { x: -28.88, y: -21.28 },
                ] }), pinLabels: { pin1: "CHARGE_DISABLE", pin2: "OUT_EN", pin3: "ALM", pin4: "GND" }, pcbX: 0, pcbY: 0, doNotPlace: true, allowOffBoard: true, obstructsWithinBounds: false, schX: 15, schY: -5, schSectionName: "IO" }), jsx("connector", { name: "J_IO", displayName: "RIGHT CASTELLATED CONTACTS", footprint: jsx(CastellatedContactFootprint, { side: "right", contacts: [
                    { x: 28.5, y: 21.47 },
                    { x: 28.88, y: 7.22 },
                    { x: 28.88, y: -7.22 },
                    { x: 28.69, y: -21.28 },
                ] }), pinLabels: { pin1: "3V3", pin2: "GND", pin3: "SDA", pin4: "SCL" }, pcbX: 0, pcbY: 0, doNotPlace: true, allowOffBoard: true, obstructsWithinBounds: false, schX: 19, schY: -5, schSectionName: "IO" }), jsx("silkscreentext", { text: "21V PANEL / 17.8V MPPT", fontSize: 0.9, pcbX: -23, pcbY: 23 }), jsx("silkscreentext", { text: "1S Li-ion: + NTC -", fontSize: 1.0, pcbX: 19, pcbY: 27 }), jsx("silkscreentext", { text: "3V3 / GND / SDA / SCL", fontSize: 0.8, pcbX: 27, pcbY: -19, pcbRotation: 90 }), jsx("silkscreentext", { text: "CHG_OFF / OUT_EN / ALM / GND", fontSize: 0.72, pcbX: -27, pcbY: -19, pcbRotation: 90 }), jsx("silkscreentext", { text: "2A SOLAR CHARGER - 3.3V OUT", fontSize: 1.1, pcbX: 0, pcbY: -22 }), jsx("tracehint", { for: ".J_CTRL > .pin1", offset: { x: -27, y: 21.47 } }), jsx("tracehint", { for: ".J_CTRL > .pin2", offset: { x: -27, y: 7.22 } }), jsx("tracehint", { for: ".J_CTRL > .pin3", offset: { x: -27, y: -6.84 } }), jsx("tracehint", { for: ".J_CTRL > .pin4", offset: { x: -27, y: -21.28 } }), jsx("tracehint", { for: ".J_IO > .pin1", offset: { x: 27, y: 21.47 } }), jsx("tracehint", { for: ".J_IO > .pin2", offset: { x: 27, y: 7.22 } }), jsx("tracehint", { for: ".J_IO > .pin3", offset: { x: 27, y: -7.22 } }), jsx("tracehint", { for: ".J_IO > .pin4", offset: { x: 27, y: -21.28 } }), jsx("tracehint", { for: ".J_BAT > .pin3", offset: { x: 18, y: 20 } }), Object.entries(traces).flatMap(([netName, pins]) => {
            return pins.map((pin, index) => (jsx("trace", { name: `T_${netName}_${index + 1}`, from: pin, to: `net.${netName}`, thickness: traceThickness(netName) }, `${netName}-${pin}`)));
        }), jsx("copperpour", { connectsTo: "net.GND", layer: "top", clearance: "0.2mm", boardEdgeMargin: "0.4mm" }), jsx("copperpour", { connectsTo: "net.GND", layer: "bottom", clearance: "0.2mm", boardEdgeMargin: "0.4mm" })] }));

export { index_circuit as default };