mohan-bee/speaker

This code defines configurable 3D models and PCB footprints for various electronic components, including a battery charger IC, a dual Hall sensor, a dual power switch, and a voltage regulator, with detailed pinouts, footprints, and CAD models for schematic and physical design.

Version
0.0.2
License
unset
Stars
0

dist/index.js

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

var pcb_placements = [
	{
		selector: "Charger",
		center: {
			x: -16.070562483599918,
			y: -8.124064156677253
		},
		relative_to: "group_center"
	},
	{
		selector: "Speaker_L",
		center: {
			x: 31.076467102212504,
			y: 2.518857744348848
		},
		relative_to: "group_center"
	}
];
var manualEdits = {
	pcb_placements: pcb_placements
};

const pinLabels$5 = {
    pin1: ["GND1"],
    pin2: ["3V3"],
    pin3: ["EN"],
    pin4: ["SENSOR_VP"],
    pin5: ["SENSOR_VN"],
    pin6: ["IO34"],
    pin7: ["IO35"],
    pin8: ["IO32"],
    pin9: ["IO33"],
    pin10: ["IO25"],
    pin11: ["IO26"],
    pin12: ["IO27"],
    pin13: ["IO14"],
    pin14: ["IO12"],
    pin15: ["GND2"],
    pin16: ["IO13"],
    pin17: ["NC1"],
    pin18: ["NC2"],
    pin19: ["NC3"],
    pin20: ["NC4"],
    pin21: ["NC5"],
    pin22: ["NC6"],
    pin23: ["IO15"],
    pin24: ["IO2"],
    pin25: ["IO0"],
    pin26: ["IO4"],
    pin27: ["IO16"],
    pin28: ["IO17"],
    pin29: ["IO5"],
    pin30: ["IO18"],
    pin31: ["IO19"],
    pin32: ["NC7"],
    pin33: ["IO21"],
    pin34: ["RXD0"],
    pin35: ["TXD0"],
    pin36: ["IO22"],
    pin37: ["IO23"],
    pin38: ["GND3"],
    pin39: ["GND4"],
    pin40: ["pin39_alt1"],
    pin41: ["pin39_alt1"],
    pin42: ["pin39_alt1"],
    pin43: ["pin39_alt1"],
    pin44: ["pin39_alt1"],
    pin45: ["pin39_alt1"],
    pin46: ["pin39_alt1"],
    pin47: ["pin39_alt1"]
};
const ESP32_WROOM_32E_N4 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$5, supplierPartNumbers: {
            "jlcpcb": [
                "C701341"
            ]
        }, manufacturerPartNumber: "ESP32_WROOM_32E_N4", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-9.29001825mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-8.02001825mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-6.75001825mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-5.48001825mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-4.21001825mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-2.94001825mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-1.67001825mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "-0.40001825mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "0.86998175mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "2.13998175mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "3.40998175mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "4.67998175mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], pcbX: "5.94998175mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin14"], pcbX: "7.21998175mm", pcbY: "-9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin15"], pcbX: "8.71502575mm", pcbY: "-5.714873mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin16"], pcbX: "8.71502575mm", pcbY: "-4.444873mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin17"], pcbX: "8.71502575mm", pcbY: "-3.174873mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin18"], pcbX: "8.71502575mm", pcbY: "-1.904873mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin19"], pcbX: "8.71502575mm", pcbY: "-0.634873mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin20"], pcbX: "8.71502575mm", pcbY: "0.635127mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin21"], pcbX: "8.71502575mm", pcbY: "1.905127mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin22"], pcbX: "8.71502575mm", pcbY: "3.175127mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin23"], pcbX: "8.71502575mm", pcbY: "4.445127mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin24"], pcbX: "8.71502575mm", pcbY: "5.715127mm", width: "2.0999958mm", height: "0.9500108mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin25"], pcbX: "7.21998175mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin26"], pcbX: "5.94998175mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin27"], pcbX: "4.67998175mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin28"], pcbX: "3.40998175mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin29"], pcbX: "2.13998175mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin30"], pcbX: "0.86998175mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin31"], pcbX: "-0.40001825mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin32"], pcbX: "-1.67001825mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin33"], pcbX: "-2.94001825mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin34"], pcbX: "-4.21001825mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin35"], pcbX: "-5.48001825mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin36"], pcbX: "-6.75001825mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin37"], pcbX: "-8.02001825mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin38"], pcbX: "-9.29001825mm", pcbY: "9.000109mm", width: "0.9500108mm", height: "2.0999958mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin39"], pcbX: "-1.60905825mm", pcbY: "-1.500251mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin40"], pcbX: "-1.60905825mm", pcbY: "-2.900045mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin41"], pcbX: "-1.60905825mm", pcbY: "-0.099949mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin42"], pcbX: "-3.00910625mm", pcbY: "-0.099949mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin43"], pcbX: "-3.00910625mm", pcbY: "-1.499997mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin44"], pcbX: "-3.00910625mm", pcbY: "-2.900045mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin45"], pcbX: "-0.20901025mm", pcbY: "-2.900045mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin46"], pcbX: "-0.20901025mm", pcbY: "-1.499997mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin47"], pcbX: "-0.20901025mm", pcbY: "-0.099949mm", width: "0.8999982mm", height: "0.8999982mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -16.764019050000115, "y": 9.000083599999925 }, { "x": -10.298118850000037, "y": 9.000083599999925 }] }), jsx("silkscreenpath", { route: [{ "x": -16.764019050000115, "y": -8.999931199999992 }, { "x": -10.314044649999914, "y": -8.999931199999992 }] }), jsx("silkscreenpath", { route: [{ "x": -16.764019050000115, "y": 9.000083599999925 }, { "x": -16.764019050000115, "y": -8.999931199999992 }] }), jsx("silkscreenpath", { route: [{ "x": -10.480059050000023, "y": 9.000083599999925 }, { "x": -10.480059050000023, "y": -8.999931199999992 }] }), jsx("silkscreenpath", { route: [{ "x": -9.971195449999868, "y": 9.01707620000002 }, { "x": -10.480059050000023, "y": 9.01707620000002 }] }), jsx("silkscreenpath", { route: [{ "x": 8.73595535000004, "y": 6.396227999999837 }, { "x": 8.73595535000004, "y": 9.01707620000002 }, { "x": 7.901158950000081, "y": 9.01707620000002 }] }), jsx("silkscreenpath", { route: [{ "x": 7.901158950000081, "y": -8.999931199999992 }, { "x": 8.73595535000004, "y": -8.999931199999992 }, { "x": 8.73595535000004, "y": -6.396050199999991 }] }), jsx("silkscreenpath", { route: [{ "x": -10.480059050000023, "y": -8.999931199999992 }, { "x": -9.971195449999868, "y": -8.999931199999992 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-3.53768025mm", pcbY: "11.040747mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -17.09728025000004, "y": 10.29074700000001 }, { "x": 10.021919750000052, "y": 10.29074700000001 }, { "x": 10.021919750000052, "y": -10.427652999999964 }, { "x": -17.09728025000004, "y": -10.427652999999964 }, { "x": -17.09728025000004, "y": 10.29074700000001 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C701341.obj?uuid=cad43509223249168514859e4520db8a",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C701341.step?uuid=cad43509223249168514859e4520db8a",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0, y: 0, z: 0 },
        }, ...props }));
};

const pinLabels$4 = {
    pin1: ["TEMP"],
    pin2: ["PROG"],
    pin3: ["GND"],
    pin4: ["VCC"],
    pin5: ["BAT"],
    pin6: ["STDBY"],
    pin7: ["CHRG"],
    pin8: ["CE"],
    pin9: ["EP"]
};
const TP4056 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$4, supplierPartNumbers: {
            "jlcpcb": [
                "C725790"
            ]
        }, manufacturerPartNumber: "TP4056", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.905mm", pcbY: "-2.9083mm", width: "0.5999988mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-0.635mm", pcbY: "-2.9083mm", width: "0.5999988mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0.635mm", pcbY: "-2.9083mm", width: "0.5999988mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "1.905mm", pcbY: "-2.9083mm", width: "0.5999988mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "1.905mm", pcbY: "2.9083mm", width: "0.5999988mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "0.635mm", pcbY: "2.9083mm", width: "0.5999988mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-0.635mm", pcbY: "2.9083mm", width: "0.5999988mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "-1.905mm", pcbY: "2.9083mm", width: "0.5999988mm", height: "1.1999976mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "0mm", pcbY: "-0mm", width: "3.2999934mm", height: "2.3999952mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -2.549906000000007, "y": 2.0500339999999966 }, { "x": 2.5501600000000053, "y": 2.0500339999999966 }] }), jsx("silkscreenpath", { route: [{ "x": 2.549905999999993, "y": 2.0500339999999966 }, { "x": 2.549905999999993, "y": -2.050034000000011 }] }), jsx("silkscreenpath", { route: [{ "x": 2.549905999999993, "y": -2.050034000000011 }, { "x": -2.5501600000000053, "y": -2.050034000000011 }] }), jsx("silkscreenpath", { route: [{ "x": -2.549906000000007, "y": 0.8000999999999863 }, { "x": -2.549906000000007, "y": 2.0500339999999966 }] }), jsx("silkscreenpath", { route: [{ "x": -2.549906000000007, "y": -0.8001000000000005 }, { "x": -2.549906000000007, "y": -2.050034000000011 }] }), jsx("silkscreenpath", { route: [{ "x": -2.499867999999992, "y": 0.8000999999999863 }, { "x": -2.291342700086574, "y": 0.6634482479307593 }, { "x": -2.1292805398622647, "y": 0.47399546154056793 }, { "x": -2.0265793598305777, "y": 0.24681938518638447 }, { "x": -1.9914127116567215, "y": -14210854715202004e-30 }, { "x": -2.0265793598305777, "y": -0.24681938518639868 }, { "x": -2.1292805398622647, "y": -0.47399546154058214 }, { "x": -2.291342700086574, "y": -0.6634482479307735 }, { "x": -2.499867999999992, "y": -0.8001000000000005 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.3302mm", pcbY: "4.5052mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -3.450400000000002, "y": 3.755199999999988 }, { "x": 2.7900000000000063, "y": 3.755199999999988 }, { "x": 2.7900000000000063, "y": -3.755200000000002 }, { "x": -3.450400000000002, "y": -3.755200000000002 }, { "x": -3.450400000000002, "y": 3.755199999999988 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C725790.obj?uuid=9e2b03dd4dce46a190ce3fa245369fb2",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C725790.step?uuid=9e2b03dd4dce46a190ce3fa245369fb2",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: 0, y: 0, z: -0.099425 },
        }, ...props }));
};

const pinLabels$3 = {
    pin1: ["EH2"],
    pin2: ["EH1"],
    pin3: ["EH4"],
    pin4: ["EH3"],
    pin5: ["B8"],
    pin6: ["A5"],
    pin7: ["B7"],
    pin8: ["A6"],
    pin9: ["A7"],
    pin10: ["B6"],
    pin11: ["A8"],
    pin12: ["B5"],
    pin13: ["A1B12"],
    pin14: ["B1A12"],
    pin15: ["B4A9"],
    pin16: ["A4B9"]
};
const TYPE_C_31_M_12 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$3, supplierPartNumbers: {
            "jlcpcb": [
                "C165948"
            ]
        }, manufacturerPartNumber: "TYPE_C_31_M_12", footprint: jsxs("footprint", { children: [jsx("hole", { pcbX: "-2.899918mm", pcbY: "0.9055672mm", diameter: "0.7500112mm" }), jsx("hole", { pcbX: "2.899918mm", pcbY: "0.9055672mm", diameter: "0.7500112mm" }), jsx("platedhole", { portHints: ["pin2"], pcbX: "4.325112mm", pcbY: "-2.7741308mm", holeWidth: "0.7999984mm", holeHeight: "1.3999972mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin1"], pcbX: "4.325112mm", pcbY: "1.4056932mm", holeWidth: "0.7999984mm", holeHeight: "1.5999968mm", outerWidth: "1.1999976mm", outerHeight: "1.999996mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin4"], pcbX: "-4.325112mm", pcbY: "1.4056932mm", holeWidth: "0.7999984mm", holeHeight: "1.5999968mm", outerWidth: "1.1999976mm", outerHeight: "1.999996mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin3"], pcbX: "-4.325112mm", pcbY: "-2.7741308mm", holeWidth: "0.7999984mm", holeHeight: "1.3999972mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-1.75006mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-1.249934mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-0.750062mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "-0.249936mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "0.249936mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "0.750062mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "1.24968mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "1.75006mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], points: [{ x: "-2.8999688mm", y: "1.524108mm" }, { x: "-2.8999688mm", y: "2.8241308mm" }, { x: "-2.8999688mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8239784mm" }, { x: "-3.1999682mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "1.5239556mm" }, { x: "-3.4999422mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.524108mm" }, { x: "-3.1999428mm", y: "1.524108mm" }, { x: "-2.8999688mm", y: "1.524108mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin14"], points: [{ x: "2.8999942mm", y: "2.8241308mm" }, { x: "2.8999942mm", y: "1.5241588mm" }, { x: "2.8999942mm", y: "1.5241588mm" }, { x: "3.1999936mm", y: "1.5241588mm" }, { x: "3.1999936mm", y: "1.5241588mm" }, { x: "3.200019mm", y: "1.5241588mm" }, { x: "3.200019mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "2.8241308mm" }, { x: "3.5000184mm", y: "2.8241308mm" }, { x: "3.200019mm", y: "2.8241308mm" }, { x: "3.200019mm", y: "2.8241308mm" }, { x: "3.1999936mm", y: "2.8241308mm" }, { x: "3.1999936mm", y: "2.8241308mm" }, { x: "2.8999942mm", y: "2.8241308mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin15"], points: [{ x: "2.7001724mm", y: "1.5241588mm" }, { x: "2.7001724mm", y: "2.8241308mm" }, { x: "2.7001724mm", y: "2.8241308mm" }, { x: "2.400173mm", y: "2.8241308mm" }, { x: "2.400173mm", y: "2.8241308mm" }, { x: "2.4001476mm", y: "2.8241308mm" }, { x: "2.4001476mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "1.5241588mm" }, { x: "2.1001482mm", y: "1.5241588mm" }, { x: "2.4001476mm", y: "1.5241588mm" }, { x: "2.4001476mm", y: "1.5241588mm" }, { x: "2.400173mm", y: "1.5241588mm" }, { x: "2.400173mm", y: "1.5241588mm" }, { x: "2.7001724mm", y: "1.5241588mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin16"], points: [{ x: "-2.0999704mm", y: "1.5240064mm" }, { x: "-2.0999704mm", y: "2.8239784mm" }, { x: "-2.0999704mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.823953mm" }, { x: "-2.3999952mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "1.523981mm" }, { x: "-2.6999438mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.5240064mm" }, { x: "-2.399919mm", y: "1.5240064mm" }, { x: "-2.0999704mm", y: "1.5240064mm" }], shape: "polygon" }), jsx("silkscreenpath", { route: [{ "x": -4.4689776000000165, "y": -1.6757585999999947 }, { "x": -4.4689776000000165, "y": 0.18715359999987413 }] }), jsx("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -5.394140800000059 }, { "x": -4.4689776000000165, "y": -5.394140800000059 }, { "x": -4.4689776000000165, "y": -3.91283820000001 }] }), jsx("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -1.676114200000029 }, { "x": 4.471009600000116, "y": 0.18750920000002225 }] }), jsx("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -5.394140800000059 }, { "x": 4.471009600000116, "y": -3.912482600000203 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.002794mm", pcbY: "3.8286012mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -5.174805999999876, "y": 3.0786011999998664 }, { "x": 5.180394000000092, "y": 3.0786011999998664 }, { "x": 5.180394000000092, "y": -5.650998800000025 }, { "x": -5.174805999999876, "y": -5.650998800000025 }, { "x": -5.174805999999876, "y": 3.0786011999998664 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.obj?uuid=617b05f9bba7410b96c001093d8189e4",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.step?uuid=617b05f9bba7410b96c001093d8189e4",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0, y: -2.4499977999999945, z: 0.000010999999999872223 },
        }, ...props }));
};

const pinLabels$2 = {
    pin1: ["OD"],
    pin2: ["CS"],
    pin3: ["OC"],
    pin4: ["TD"],
    pin5: ["VCC"],
    pin6: ["GND"]
};
const DW01 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$2, supplierPartNumbers: {
            "jlcpcb": [
                "C686633"
            ]
        }, manufacturerPartNumber: "DW01", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin3"], pcbX: "1.35001mm", pcbY: "0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "1.35001mm", pcbY: "-0mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "1.35001mm", pcbY: "-0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-1.35001mm", pcbY: "-0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-1.35001mm", pcbY: "-0mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-1.35001mm", pcbY: "0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -0.899998200000141, "y": 1.5499080000000731 }, { "x": 0.9000236000000541, "y": 1.5499080000000731 }] }), jsx("silkscreenpath", { route: [{ "x": -0.899998200000141, "y": -1.5501111999999466 }, { "x": 0.9000236000000541, "y": -1.5501111999999466 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.012446mm", pcbY: "2.562354mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.1425540000000183, "y": 1.8123540000000276 }, { "x": 2.167445999999927, "y": 1.8123540000000276 }, { "x": 2.167445999999927, "y": -2.015045999999984 }, { "x": -2.1425540000000183, "y": -2.015045999999984 }, { "x": -2.1425540000000183, "y": 1.8123540000000276 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C686633.obj?uuid=229b69761e2c45dba6a83d8866dec72d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C686633.step?uuid=229b69761e2c45dba6a83d8866dec72d",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0, y: 0, z: -0.048939 },
        }, ...props }));
};

const pinLabels$1 = {
    pin1: ["S1"],
    pin2: ["D1"],
    pin3: ["S2"],
    pin4: ["G2"],
    pin5: ["NC"],
    pin6: ["G1"]
};
const A_8205A = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$1, supplierPartNumbers: {
            "jlcpcb": [
                "C2762931"
            ]
        }, manufacturerPartNumber: "A_8205A", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin3"], pcbX: "1.35001mm", pcbY: "0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "1.35001mm", pcbY: "-0mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "1.35001mm", pcbY: "-0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-1.35001mm", pcbY: "-0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-1.35001mm", pcbY: "-0mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-1.35001mm", pcbY: "0.94996mm", width: "1.0999978mm", height: "0.5999988mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -0.899998200000141, "y": 1.5499080000000731 }, { "x": 0.9000236000000541, "y": 1.5499080000000731 }] }), jsx("silkscreenpath", { route: [{ "x": -0.899998200000141, "y": -1.5501111999999466 }, { "x": 0.9000236000000541, "y": -1.5501111999999466 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.012446mm", pcbY: "2.562354mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.1425540000000183, "y": 1.8123540000000276 }, { "x": 2.167445999999927, "y": 1.8123540000000276 }, { "x": 2.167445999999927, "y": -2.015045999999984 }, { "x": -2.1425540000000183, "y": -2.015045999999984 }, { "x": -2.1425540000000183, "y": 1.8123540000000276 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2762931.obj?uuid=229b69761e2c45dba6a83d8866dec72d",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2762931.step?uuid=229b69761e2c45dba6a83d8866dec72d",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0, y: 0, z: -0.048939 },
        }, ...props }));
};

const pinLabels = {
    pin1: ["GND"],
    pin2: ["Vin"],
    pin3: ["Vout"]
};
const XC6206P332MR_G = (props) => {
    return (jsx("chip", { pinLabels: pinLabels, supplierPartNumbers: {
            "jlcpcb": [
                "C5446"
            ]
        }, manufacturerPartNumber: "XC6206P332MR_G", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "1.235075mm", pcbY: "-0.94996mm", width: "1.0700004mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "1.235075mm", pcbY: "0.94996mm", width: "1.0700004mm", height: "0.5999988mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-1.235075mm", pcbY: "0mm", width: "1.0700004mm", height: "0.5999988mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": 0.8760714000002281, "y": 1.5361919999999145 }, { "x": -0.8763253999998142, "y": 1.5361919999999145 }, { "x": -0.8763253999998142, "y": 0.49458879999997407 }] }), jsx("silkscreenpath", { route: [{ "x": 0.8760714000002281, "y": -1.5361920000000282 }, { "x": -0.8763253999998142, "y": -1.5361920000000282 }, { "x": -0.8763253999998142, "y": -0.49458879999997407 }] }), jsx("silkscreenpath", { route: [{ "x": 0.8760714000002281, "y": 0.45539659999997184 }, { "x": 0.8760714000002281, "y": -0.45539659999985815 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.012827mm", pcbY: "2.524mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.0281269999999267, "y": 1.774000000000001 }, { "x": 2.0024730000002364, "y": 1.774000000000001 }, { "x": 2.0024730000002364, "y": -1.7993999999999915 }, { "x": -2.0281269999999267, "y": -1.7993999999999915 }, { "x": -2.0281269999999267, "y": 1.774000000000001 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5446.obj?uuid=cefd4596db214da394d9632b2b88f8f2",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C5446.step?uuid=cefd4596db214da394d9632b2b88f8f2",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: 0, y: 0, z: 0 },
        }, ...props }));
};

const Battery18650 = ({ name, pcbX, pcbY, rotation }) => (jsx("chip", { name: name, pcbX: pcbX, pcbY: pcbY, rotation: rotation, pinLabels: { pin1: ["pos"], pin2: ["neg"] }, footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: 0, pcbY: 31, width: "5mm", height: "5mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: 0, pcbY: -31, width: "5mm", height: "5mm", shape: "rect" }), jsx("silkscreentext", { text: "BATT+", pcbX: 0, pcbY: 26, fontSize: "1mm" }), jsx("silkscreentext", { text: "BATT-", pcbX: 0, pcbY: -26, fontSize: "1mm" })] }) }));
const AudioAmp_MAX98357A = ({ name, pcbX, pcbY, rotation }) => (jsx("chip", { name: name, pcbX: pcbX, pcbY: pcbY, rotation: rotation, footprint: "qfn16_3x3_0.5mm", pinLabels: {
        pin1: ["DIN"], pin2: ["BCLK"], pin3: ["LRCLK"], pin4: ["GND"],
        pin7: ["OUT_P"], pin8: ["OUT_N"], pin9: ["VDD"], pin10: ["SD_MODE"]
    }, cadModel: null }));
var index = () => {
    return (jsxs("board", { width: "60mm", borderRadius: "10mm", height: "70mm", manualEdits: manualEdits, children: [jsx(TYPE_C_31_M_12, { name: "USBC", pcbX: 0, pcbY: -26, rotation: 0 }), jsx(ESP32_WROOM_32E_N4, { name: "MCU", pcbX: 0, pcbY: 15, rotation: 0 }), jsx("silkscreentext", { text: "\u0BAE\u0BCB\u0B95\u0BA9\u0BCD SPEAKER", fontSize: "5mm", pcbX: -25, pcbY: 2, pcbRotation: 90 }), jsx(Battery18650, { name: "Onboard_Battery", pcbX: -15, pcbY: 0, rotation: 0 }), jsx("pinheader", { name: "Speaker_L", pinCount: 2, rotation: -90 }), jsx(AudioAmp_MAX98357A, { name: "AudioAmp", pcbX: 15, pcbY: 2, rotation: 0 }), jsx(TP4056, { name: "Charger", pcbX: -8, pcbY: -14 }), jsx(DW01, { name: "Protect_IC", pcbX: 10, pcbY: -24 }), jsx(A_8205A, { name: "Mosfet", pcbX: 18, pcbY: -24 }), jsx(XC6206P332MR_G, { name: "LDO_3V3", pcbX: 16, pcbY: -14 }), jsx("net", { name: "power", nets: ["BATT+", "BATT-", "VBUS", "VCHG"], trace_width: "0.2mm" }), jsx("net", { name: "signal", nets: ["*"], trace_width: "0.2mm" }), jsx("hole", { name: "Mount1", pcbX: -24, pcbY: 28, diameter: "3.2mm" }), jsx("hole", { name: "Mount2", pcbX: 24, pcbY: 28, diameter: "3.2mm" }), jsx("hole", { name: "Mount3", pcbX: -24, pcbY: -28, diameter: "3.2mm" }), jsx("hole", { name: "Mount4", pcbX: 24, pcbY: -28, diameter: "3.2mm" }), jsx("trace", { from: ".USBC > .B4A9", to: ".Charger > .VCC", thickness: "1mm" }), jsx("trace", { from: ".USBC > .A1B12", to: ".Charger > .GND", thickness: "1mm" }), jsx("trace", { from: ".Onboard_Battery > .pin1", to: ".Charger > .BAT", thickness: "1mm" }), jsx("trace", { from: ".Charger > .BAT", to: ".Protect_IC > .VCC", thickness: "1mm" }), jsx("trace", { from: ".Onboard_Battery > .pin2", to: ".Protect_IC > .GND", thickness: "1mm" }), jsx("trace", { from: ".Mosfet > .D1", to: ".LDO_3V3 > .Vin", thickness: "1mm" }), jsx("trace", { from: ".Mosfet > .D1", to: ".AudioAmp > .VDD", thickness: "1mm" }), jsx("trace", { from: ".LDO_3V3 > .Vout", to: ".MCU > .3V3", thickness: "1mm" }), jsx("trace", { from: ".AudioAmp > .OUT_P", to: ".Speaker_L > .pin1", thickness: "1mm" }), jsx("trace", { from: ".AudioAmp > .OUT_N", to: ".Speaker_L > .pin2", thickness: "1mm" }), jsx("trace", { from: ".Charger > .GND", to: ".MCU > .GND1", thickness: "1mm" }), jsx("trace", { from: ".LDO_3V3 > .GND", to: ".MCU > .GND2", thickness: "1mm" }), jsx("trace", { from: ".MCU > .GND2", to: ".AudioAmp > .GND", thickness: "1mm" })] }));
};

export { index as default };