hrithik18k/smart-switch-pcb

The AO3400A component models a SOT-23 N-channel MOSFET with labeled pins for Gate, Source, and Drain, including 3D CAD models and schematic symbols for electronic circuit design.

Version
1.0.1
License
unset
Stars
0

dist/index.js

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

const pinLabels$3 = {
    pin1: ["GND1"],
    pin2: ["GND2"],
    pin3: ["3V3"],
    pin4: ["NC1"],
    pin5: ["IO2"],
    pin6: ["IO3"],
    pin7: ["NC2"],
    pin8: ["EN"],
    pin9: ["NC3"],
    pin10: ["NC4"],
    pin11: ["GND3"],
    pin12: ["IO0"],
    pin13: ["IO1"],
    pin14: ["GND4"],
    pin15: ["NC5"],
    pin16: ["IO10"],
    pin17: ["NC6"],
    pin18: ["IO4"],
    pin19: ["IO5"],
    pin20: ["IO6"],
    pin21: ["IO7"],
    pin22: ["IO8"],
    pin23: ["IO9"],
    pin24: ["NC7"],
    pin25: ["NC8"],
    pin26: ["IO18"],
    pin27: ["IO19"],
    pin28: ["NC9"],
    pin29: ["NC10"],
    pin30: ["RXD0"],
    pin31: ["TXD0"],
    pin32: ["NC11"],
    pin33: ["NC12"],
    pin34: ["NC13"],
    pin35: ["NC14"],
    pin36: ["GND5"],
    pin37: ["GND6"],
    pin38: ["GND7"],
    pin39: ["GND8"],
    pin40: ["GND9"],
    pin41: ["GND10"],
    pin42: ["GND11"],
    pin43: ["GND12"],
    pin44: ["GND13"],
    pin45: ["GND14"],
    pin46: ["GND15"],
    pin47: ["GND16"],
    pin48: ["GND17"],
    pin49: ["GND22"],
    pin50: ["GND18"],
    pin51: ["GND19"],
    pin52: ["GND20"],
    pin53: ["GND21"],
    pin54: ["pin49_alt1"],
    pin55: ["pin49_alt1"],
    pin56: ["pin49_alt1"],
    pin57: ["pin49_alt1"],
    pin58: ["pin49_alt1"],
    pin59: ["pin49_alt1"],
    pin60: ["pin49_alt1"],
    pin61: ["pin49_alt1"]
};
const ESP32_C3_MINI_1_N4 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$3, supplierPartNumbers: {
            "jlcpcb": [
                "C2838502"
            ]
        }, manufacturerPartNumber: "ESP32_C3_MINI_1_N4", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-5.899912mm", pcbY: "3.999992mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-5.899912mm", pcbY: "3.199892mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-5.899912mm", pcbY: "2.400046mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-5.899912mm", pcbY: "1.599946mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-5.899912mm", pcbY: "0.8001mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-5.899912mm", pcbY: "0mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-5.899912mm", pcbY: "-0.8001mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "-5.899912mm", pcbY: "-1.599946mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "-5.899912mm", pcbY: "-2.400046mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "-5.899912mm", pcbY: "-3.199892mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "-5.899912mm", pcbY: "-3.999992mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "-4.800092mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], pcbX: "-3.999992mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin14"], pcbX: "-3.199892mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin15"], pcbX: "-2.400046mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin16"], pcbX: "-1.599946mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin17"], pcbX: "-0.8001mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin18"], pcbX: "0mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin19"], pcbX: "0.8001mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin20"], pcbX: "1.599946mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin21"], pcbX: "2.400046mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin22"], pcbX: "3.199892mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin23"], pcbX: "3.999992mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin24"], pcbX: "4.800092mm", pcbY: "-4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin25"], pcbX: "5.899912mm", pcbY: "-3.999992mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin26"], pcbX: "5.899912mm", pcbY: "-3.199892mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin27"], pcbX: "5.899912mm", pcbY: "-2.400046mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin28"], pcbX: "5.899912mm", pcbY: "-1.599946mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin29"], pcbX: "5.899912mm", pcbY: "-0.8001mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin30"], pcbX: "5.899912mm", pcbY: "0mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin31"], pcbX: "5.899912mm", pcbY: "0.8001mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin32"], pcbX: "5.899912mm", pcbY: "1.599946mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin33"], pcbX: "5.899912mm", pcbY: "2.400046mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin34"], pcbX: "5.899912mm", pcbY: "3.199892mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin35"], pcbX: "5.899912mm", pcbY: "3.999992mm", width: "0.7999984mm", height: "0.3999992mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin36"], pcbX: "4.800092mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin37"], pcbX: "3.999992mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin38"], pcbX: "3.199892mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin39"], pcbX: "2.400046mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin40"], pcbX: "1.599946mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin41"], pcbX: "0.8001mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin42"], pcbX: "0mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin43"], pcbX: "-0.8001mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin44"], pcbX: "-1.599946mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin45"], pcbX: "-2.400046mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin46"], pcbX: "-3.199892mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin47"], pcbX: "-3.999992mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin48"], pcbX: "-4.800092mm", pcbY: "4.899914mm", width: "0.3999992mm", height: "0.7999984mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin50"], pcbX: "5.94995mm", pcbY: "4.949952mm", width: "0.6999986mm", height: "0.6999986mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin51"], pcbX: "5.94995mm", pcbY: "-4.949952mm", width: "0.6999986mm", height: "0.6999986mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin52"], pcbX: "-5.94995mm", pcbY: "-4.949952mm", width: "0.6999986mm", height: "0.6999986mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin53"], pcbX: "-5.94995mm", pcbY: "4.949952mm", width: "0.6999986mm", height: "0.6999986mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin49"], points: [{ x: "-2.7001216mm", y: "2.099945mm" }, { x: "-2.1001228mm", y: "2.6999438mm" }, { x: "-1.2501372mm", y: "2.6999438mm" }, { x: "-1.2501372mm", y: "1.2499594mm" }, { x: "-2.7001216mm", y: "1.2499594mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin54"], pcbX: "1.97485mm", pcbY: "-1.975104mm", width: "1.4500098mm", height: "1.4500098mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin55"], pcbX: "0mm", pcbY: "-1.975104mm", width: "1.4500098mm", height: "1.4500098mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin56"], pcbX: "-1.975104mm", pcbY: "-1.975104mm", width: "1.4500098mm", height: "1.4500098mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin57"], pcbX: "-1.975104mm", pcbY: "0mm", width: "1.4500098mm", height: "1.4500098mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin58"], pcbX: "0mm", pcbY: "1.97485mm", width: "1.4500098mm", height: "1.4500098mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin59"], pcbX: "1.97485mm", pcbY: "1.97485mm", width: "1.4500098mm", height: "1.4500098mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin60"], pcbX: "1.97485mm", pcbY: "0mm", width: "1.4500098mm", height: "1.4500098mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin61"], pcbX: "0mm", pcbY: "0mm", width: "1.4500098mm", height: "1.4500098mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": 6.600012199999924, "y": -5.5999888000000055 }, { "x": 6.6000375999999505, "y": 11.000054200000022 }] }), jsx("silkscreenpath", { route: [{ "x": 6.6000375999999505, "y": 5.599988800000119 }, { "x": -6.6000375999999505, "y": 5.599988800000119 }] }), jsx("silkscreenpath", { route: [{ "x": -6.6000375999999505, "y": 11.000028799999995 }, { "x": 6.6000375999999505, "y": 11.000028799999995 }] }), jsx("silkscreenpath", { route: [{ "x": -6.600012200000037, "y": -5.5999888000000055 }, { "x": -6.6000375999999505, "y": 11.000028799999995 }] }), jsx("silkscreenpath", { route: [{ "x": -6.600012200000037, "y": -5.5999888000000055 }, { "x": 6.600012199999924, "y": -5.5999888000000055 }] }), jsx("silkscreenpath", { route: [{ "x": -6.899910000000091, "y": 3.99999200000002 }, { "x": -6.90332000700846, "y": 3.974090425242366 }, { "x": -6.913317641691037, "y": 3.9499539999999342 }, { "x": -6.9292215817661145, "y": 3.9292275817660993 }, { "x": -6.949948000000063, "y": 3.913323641691022 }, { "x": -6.974084425242381, "y": 3.9033260070084452 }, { "x": -6.999986000000035, "y": 3.8999160000000757 }, { "x": -7.025887574757689, "y": 3.9033260070084452 }, { "x": -7.050024000000121, "y": 3.913323641691022 }, { "x": -7.07075041823407, "y": 3.9292275817660993 }, { "x": -7.086654358309147, "y": 3.9499539999999342 }, { "x": -7.096651992991724, "y": 3.974090425242366 }, { "x": -7.10006199999998, "y": 3.99999200000002 }, { "x": -7.096651992991724, "y": 4.025893574757674 }, { "x": -7.086654358309147, "y": 4.050030000000106 }, { "x": -7.07075041823407, "y": 4.070756418234055 }, { "x": -7.050024000000121, "y": 4.086660358309132 }, { "x": -7.025887574757689, "y": 4.096657992991709 }, { "x": -6.999986000000035, "y": 4.100067999999965 }, { "x": -6.974084425242381, "y": 4.096657992991709 }, { "x": -6.949948000000063, "y": 4.086660358309132 }, { "x": -6.9292215817661145, "y": 4.070756418234055 }, { "x": -6.913317641691037, "y": 4.050030000000106 }, { "x": -6.90332000700846, "y": 4.025893574757674 }, { "x": -6.899910000000091, "y": 3.99999200000002 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.3429mm", pcbY: "12.0998mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -7.641399999999976, "y": 11.349800000000073 }, { "x": 6.955600000000004, "y": 11.349800000000073 }, { "x": 6.955600000000004, "y": -5.939599999999928 }, { "x": -7.641399999999976, "y": -5.939599999999928 }, { "x": -7.641399999999976, "y": 11.349800000000073 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2838502.obj?uuid=789e2235438340f8bef14c336f136f9e",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2838502.step?uuid=789e2235438340f8bef14c336f136f9e",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: -2.7150060000000167, z: 0 },
        }, ...props }));
};

const pinLabels$2 = {
    pin1: ["OUT"],
    pin2: ["GND"],
    pin3: ["SO"],
    pin4: ["SLH"],
    pin5: ["VDD"],
    pin6: ["STG"]
};
const TTP223_TD = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$2, supplierPartNumbers: {
            "jlcpcb": [
                "C42422128"
            ]
        }, manufacturerPartNumber: "TTP223_TD", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin6"], pcbX: "-0.94996mm", pcbY: "1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-0mm", pcbY: "1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "0.94996mm", pcbY: "1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0.94996mm", pcbY: "-1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-0mm", pcbY: "-1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.94996mm", pcbY: "-1.149096mm", width: "0.532003mm", height: "1.072007mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": 1.5264892000001282, "y": -0.8892032000002246 }, { "x": 1.5264892000001282, "y": 0.8892031999998835 }] }), jsx("silkscreenpath", { route: [{ "x": -1.5264892000000145, "y": -0.8892032000002246 }, { "x": -1.5264892000000145, "y": 0.8892031999998835 }] }), jsx("silkscreenpath", { route: [{ "x": -1.518158000000085, "y": -1.3014960000001565 }, { "x": -1.5232730105125256, "y": -1.3403483621366377 }, { "x": -1.5382694625362774, "y": -1.3765530000001718 }, { "x": -1.562125372648893, "y": -1.4076426273512652 }, { "x": -1.5932149999999865, "y": -1.431498537463881 }, { "x": -1.6294196378635206, "y": -1.4464949894876327 }, { "x": -1.6682720000000018, "y": -1.4516100000000733 }, { "x": -1.7071243621365966, "y": -1.4464949894876327 }, { "x": -1.743329000000017, "y": -1.431498537463881 }, { "x": -1.7744186273511104, "y": -1.4076426273512652 }, { "x": -1.7982745374637261, "y": -1.3765530000001718 }, { "x": -1.813270989487478, "y": -1.3403483621366377 }, { "x": -1.8183860000000323, "y": -1.3014960000001565 }, { "x": -1.813270989487478, "y": -1.2626436378635617 }, { "x": -1.7982745374637261, "y": -1.2264390000000276 }, { "x": -1.7744186273511104, "y": -1.1953493726491615 }, { "x": -1.743329000000017, "y": -1.1714934625365458 }, { "x": -1.7071243621365966, "y": -1.1564970105125667 }, { "x": -1.6682720000000018, "y": -1.151382000000126 }, { "x": -1.6294196378635206, "y": -1.1564970105125667 }, { "x": -1.5932149999999865, "y": -1.1714934625365458 }, { "x": -1.562125372648893, "y": -1.1953493726491615 }, { "x": -1.5382694625362774, "y": -1.2264390000000276 }, { "x": -1.5232730105125256, "y": -1.2626436378635617 }, { "x": -1.518158000000085, "y": -1.3014960000001565 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.13716mm", pcbY: "2.682496mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.0635600000000522, "y": 1.932495999999901 }, { "x": 1.7892399999999498, "y": 1.932495999999901 }, { "x": 1.7892399999999498, "y": -2.021904000000063 }, { "x": -2.0635600000000522, "y": -2.021904000000063 }, { "x": -2.0635600000000522, "y": 1.932495999999901 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C42422128.obj?uuid=6f37130fd61d48febac97e962793fd76",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C42422128.step?uuid=6f37130fd61d48febac97e962793fd76",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0.000012699999956566899, y: -12699999842880061e-21, z: -0.75 },
        }, ...props }));
};

const pinLabels$1 = {
    pin1: ["VIN"],
    pin2: ["GND"],
    pin3: ["EN"],
    pin4: ["NC"],
    pin5: ["VOUT"]
};
const AP2112K_3_3TRG1 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$1, supplierPartNumbers: {
            "jlcpcb": [
                "C51118"
            ]
        }, manufacturerPartNumber: "AP2112K_3_3TRG1", footprint: "dfn6_missing(5)_p0.9502mm_w3.7048mm_pw0.6223mm_pl1.1049mm_pin1location(leftside,bottom)", cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C51118.obj?uuid=6d166d1d6c064b99aa79465714e989c1",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C51118.step?uuid=6d166d1d6c064b99aa79465714e989c1",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: -12700000070253736e-21, y: 0, z: -0.15 },
        }, ...props }));
};

const pinLabels = {
    pin1: ["G"],
    pin2: ["S"],
    pin3: ["D"],
};
const AO3400A = (props) => {
    return (jsx("chip", { pinLabels: pinLabels, symbol: jsxs("symbol", { children: [jsx("schematicpath", { points: [
                        { x: 0, y: 0 },
                        { x: 0.12, y: -0.04 },
                        { x: 0.12, y: 0.04 },
                        { x: 0, y: 0 },
                    ], strokeColor: "#880000", isFilled: true, fillColor: "#FEFEFE" }), jsx("schematicpath", { points: [
                        { x: 0.4, y: 0.04 },
                        { x: 0.34, y: -0.06 },
                        { x: 0.46, y: -0.06 },
                        { x: 0.4, y: 0.04 },
                    ], strokeColor: "#880000", isFilled: true, fillColor: "#FEFEFE" }), jsx("schematicpath", { points: [
                        { x: 0, y: 0.14 },
                        { x: 0.2, y: 0.14 },
                        { x: 0.2, y: 0.2 },
                        { x: 0.4, y: 0.2 },
                        { x: 0.4, y: 0.04 },
                    ], strokeColor: "#880000" }), jsx("schematicpath", { points: [
                        { x: 0, y: 0 },
                        { x: 0.2, y: 0 },
                        { x: 0.2, y: -0.2 },
                        { x: 0.4, y: -0.2 },
                        { x: 0.4, y: -0.06 },
                    ], strokeColor: "#880000" }), jsx("schematicpath", { points: [
                        { x: 0.2, y: -0.14 },
                        { x: 0, y: -0.14 },
                    ], strokeColor: "#880000" }), jsx("schematicpath", { points: [
                        { x: -0.04, y: 0.18 },
                        { x: -0.04, y: -0.18 },
                    ], strokeColor: "#880000" }), jsx("schematicpath", { points: [
                        { x: 0, y: 0.18 },
                        { x: 0, y: 0.1 },
                    ], strokeColor: "#880000" }), jsx("schematicpath", { points: [
                        { x: 0, y: -0.04 },
                        { x: 0, y: 0.04 },
                    ], strokeColor: "#880000" }), jsx("schematicpath", { points: [
                        { x: 0, y: -0.18 },
                        { x: 0, y: -0.1 },
                    ], strokeColor: "#880000" }), jsx("schematicpath", { points: [
                        { x: -0.2, y: 0 },
                        { x: -0.04, y: 0 },
                    ], strokeColor: "#880000" }), jsx("schematicpath", { points: [
                        { x: 0.48, y: 0.04 },
                        { x: 0.44, y: 0.04 },
                        { x: 0.36, y: 0.04 },
                        { x: 0.32, y: 0.04 },
                    ], strokeColor: "#880000" }), jsx("port", { name: "pin3", pinNumber: 3, aliases: ["D"], direction: "up", schX: 0.2, schY: 0.4, schStemLength: 0.2 }), jsx("port", { name: "pin1", pinNumber: 1, aliases: ["G"], direction: "left", schX: -0.4, schY: 0, schStemLength: 0.2 }), jsx("port", { name: "pin2", pinNumber: 2, aliases: ["S"], direction: "down", schX: 0.2, schY: -0.4, schStemLength: 0.2 })] }), supplierPartNumbers: {
            jlcpcb: ["C20917"],
        }, manufacturerPartNumber: "AO3400A", footprint: "sot23w_p1mm_pw0.65mm_pin1location(rightside,bottom)", cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C20917.obj?uuid=d777607a152f4f3aac9bb0d0c14ed6fd",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C20917.step?uuid=d777607a152f4f3aac9bb0d0c14ed6fd",
            pcbRotationOffset: 180,
            modelOriginPosition: {
                x: 0.000012700000070253736,
                y: -12699999956566899e-21,
                z: 0.050795,
            },
        }, ...props }));
};

// CAD envelope: 17.5 x 40 x 1.6 mm, holes at (+/-5.75, +/-17) mm.
// SELV controller only: use an external certified isolated 5 V supply and relay.
const TouchElectrode = () => (jsx("chip", { name: "TP1", pcbX: 0, pcbY: 0, layer: "bottom", pinLabels: { pin1: ["SENSE"] }, footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], layer: "bottom", shape: "rect", width: "9mm", height: "11mm", rectBorderRadius: "1.5mm", coveredWithSolderMask: true }), jsx("silkscreenrect", { layer: "bottom", width: "10mm", height: "12mm", strokeWidth: "0.2mm" }), jsx("silkscreentext", { text: "TOUCH", pcbY: "-6.8mm", layer: "bottom", fontSize: "0.8mm" })] }) }));
function SmartSwitchController() {
    return (jsxs("board", { width: "17.5mm", height: "40mm", thickness: "1.6mm", borderRadius: "0.6mm", schAutoLayoutEnabled: true, children: [jsx("net", { name: "V5", isPowerNet: true }), jsx("net", { name: "V3V3", isPowerNet: true }), jsx("net", { name: "GND", isGroundNet: true }), jsx("schematicsection", { name: "power", displayName: "SELV power" }), jsx("schematicsection", { name: "control", displayName: "ESP32-C3 control" }), jsx("schematicsection", { name: "touch", displayName: "Capacitive touch" }), jsx("schematicsection", { name: "output", displayName: "Power-board relay driver" }), jsx("hole", { name: "H1", pcbX: -5.75, pcbY: -17, diameter: "1.8mm" }), jsx("hole", { name: "H2", pcbX: 5.75, pcbY: -17, diameter: "1.8mm" }), jsx("hole", { name: "H3", pcbX: -5.75, pcbY: 17, diameter: "1.8mm" }), jsx("hole", { name: "H4", pcbX: 5.75, pcbY: 17, diameter: "1.8mm" }), jsx("pinheader", { name: "J1", pinCount: 3, pitch: "2.54mm", pcbX: 0, pcbY: -17, schX: -10.42, schY: 1, schHeight: 0.6, schSectionName: "power", connections: {
                    pin1: "net.V5",
                    pin2: "net.GND",
                    pin3: "net.RELAY_LOW",
                } }), jsx(AP2112K_3_3TRG1, { name: "U2", pcbX: 0, pcbY: 16.5, pcbRotation: 0, schX: -6.58, schY: 1, schHeight: 0.6, schSectionName: "power", connections: {
                    VIN: "net.V5",
                    EN: "net.V5",
                    GND: "net.GND",
                    VOUT: "net.V3V3",
                } }), jsx("capacitor", { name: "C1", capacitance: "10uF", footprint: "0603", pcbX: -3.5, pcbY: 15, schX: -4.8, schY: 2.5, schOrientation: "vertical", schSectionName: "power", connections: { pin1: "net.V5", pin2: "net.GND" } }), jsx("capacitor", { name: "C2", capacitance: "10uF", footprint: "0603", pcbX: 3.5, pcbY: 15, schX: 1.82, schY: 1, schOrientation: "vertical", schSectionName: "power", connections: { pin1: "net.V3V3", pin2: "net.GND" } }), jsx(ESP32_C3_MINI_1_N4, { name: "U1", pcbX: 0, pcbY: 8.2, pcbRotation: 180, schX: -2.42, schY: 0, schHeight: 6.2, schSectionName: "control", connections: {
                    "3V3": "net.V3V3",
                    GND1: "net.GND",
                    GND2: "net.GND",
                    GND3: "net.GND",
                    GND4: "net.GND",
                    GND5: "net.GND",
                    GND6: "net.GND",
                    GND7: "net.GND",
                    GND8: "net.GND",
                    GND9: "net.GND",
                    GND10: "net.GND",
                    GND11: "net.GND",
                    GND12: "net.GND",
                    GND13: "net.GND",
                    GND14: "net.GND",
                    GND15: "net.GND",
                    GND16: "net.GND",
                    GND17: "net.GND",
                    GND18: "net.GND",
                    GND19: "net.GND",
                    GND20: "net.GND",
                    GND21: "net.GND",
                    GND22: "net.GND",
                    EN: "net.EN",
                    IO4: "net.TOUCH_OUT",
                    IO5: "net.RELAY_EN",
                } }), jsx("resistor", { name: "R1", resistance: "10k", footprint: "0402", pcbX: 7.3, pcbY: 15.5, schX: 3, schY: 2, schSectionName: "control", connections: { pin1: "net.V3V3", pin2: "net.EN" } }), jsx("capacitor", { name: "C3", capacitance: "100nF", footprint: "0402", pcbX: -6.8, pcbY: -9, schX: 5, schY: 2, schOrientation: "vertical", schSectionName: "control", connections: { pin1: "net.V3V3", pin2: "net.GND" } }), jsx(TTP223_TD, { name: "U3", pcbX: -7.2, pcbY: -12, pcbRotation: 0, schX: 1.02, schY: 0, schSectionName: "touch", connections: {
                    OUT: "net.TOUCH_OUT",
                    GND: "net.GND",
                    SO: "net.TOUCH_SENSE",
                    SLH: "net.GND",
                    VDD: "net.V3V3",
                    STG: "net.GND",
                } }), jsx(TouchElectrode, {}), jsx("trace", { from: ".TP1 > .SENSE", to: "net.TOUCH_SENSE" }), jsx("capacitor", { name: "C4", capacitance: "100nF", footprint: "0402", pcbX: 6.8, pcbY: -4.5, schX: 7.38, schY: 0, schOrientation: "vertical", schSectionName: "touch", connections: { pin1: "net.V3V3", pin2: "net.GND" } }), jsx("resistor", { name: "R2", resistance: "100", footprint: "0402", pcbX: 6.8, pcbY: -7, schX: -6, schY: -2, schSectionName: "output", connections: { pin1: "net.RELAY_EN", pin2: "net.RELAY_GATE" } }), jsx("resistor", { name: "R3", resistance: "100k", footprint: "0402", pcbX: -6.8, pcbY: -5, schX: -5, schY: -1, schSectionName: "output", connections: { pin1: "net.RELAY_GATE", pin2: "net.GND" } }), jsx(AO3400A, { name: "Q1", pcbX: 7.2, pcbY: -12, pcbRotation: 90, schX: 4.77, schY: 0, symbol: undefined, schWidth: 0.8, schHeight: 0.4, schSectionName: "output", connections: { G: "net.RELAY_GATE", S: "net.GND", D: "net.RELAY_LOW" } }), jsx("diode", { name: "D1", footprint: "sod323", pcbX: 0, pcbY: -13, pcbRotation: 90, schX: 5.76, schY: 0.6, schSectionName: "output", connections: { cathode: "net.V5", anode: "net.RELAY_LOW" } }), jsx("silkscreentext", { text: "SMART SWITCH CTRL", pcbX: 0, pcbY: 19, fontSize: "0.65mm" }), jsx("silkscreentext", { text: "5V GND COIL", pcbX: 0, pcbY: -19, fontSize: "0.55mm" })] }));
}

export { SmartSwitchController as default };