aj0070/dual-motor-encoder

A 60×45 mm dual-motor controller board built around an RP2040 MCU with QSPI flash, USB‑C, encoder inputs, dual DRV8871 H‑bridge drivers, protected power input, 5 V buck and 3.3 V LDO rails, connectors, filtering, and status LEDs.

Version
1.0.0
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone aj0070/dual-motor-encoder  # download the package files into ./dual-motor-encoder
tsci add aj0070/dual-motor-encoder    # add it to your project as @tsci/aj0070.dual-motor-encoder

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

dist/index.js

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

const pinLabels$4 = {
    pin1: ["pin1"],
    pin2: ["pin2"]
};
const pinAttributes$4 = {
    pin1: { isPassive: true },
    pin2: { isPassive: true }
};
const KF128_5_08_2P_AA = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$4, pinAttributes: pinAttributes$4, supplierPartNumbers: {
            "jlcpcb": [
                "C474952"
            ]
        }, manufacturerPartNumber: "KF128-5.08-2P-AA", footprint: "pinrow2_nosquareplating_p5.08mm_od2.4mm_id1.6mm", cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C474952.obj?uuid=be36e72b75ac4dee8d6e181eb7e8d784",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C474952.step?uuid=be36e72b75ac4dee8d6e181eb7e8d784",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: 0.0000621000000036176, y: -0.01501149999994622, z: -6999999999646178e-21 },
        }, ...props }));
};

const pinLabels$3 = {
    pin1: ["BOOT"],
    pin2: ["NC1"],
    pin3: ["NC2"],
    pin4: ["VSENSE"],
    pin5: ["ENA"],
    pin6: ["GND"],
    pin7: ["VIN"],
    pin8: ["PH"],
    pin9: ["PowerPAD"]
};
const pinAttributes$3 = {
    pin2: { doNotConnect: true },
    pin3: { doNotConnect: true },
    pin6: { requiresGround: true },
    pin7: { requiresPower: true }
};
const footprinterPinLabels$2 = {
    ...pinLabels$3,
    "pin9": [...pinLabels$3["pin9"], "thermalpad"],
};
const TPS5430DDAR = (props) => {
    return (jsx("chip", { pinLabels: footprinterPinLabels$2, pinAttributes: pinAttributes$3, supplierPartNumbers: {
            "jlcpcb": [
                "C9864"
            ]
        }, manufacturerPartNumber: "TPS5430DDAR", footprint: "dfn8_thermalpad2.5mmx3.5mm_w6.7mm_pl1.3mm", cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C9864.obj?uuid=f5377fc2ccbb41ff8aa998b5ab8a4f05",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C9864.step?uuid=f5377fc2ccbb41ff8aa998b5ab8a4f05",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0, y: 0.000012700000013410317, z: -0.825 },
        }, ...props }));
};

const SLW6028S150MST = (props) => {
    return (jsx("inductor", { inductance: "15uH", supplierPartNumbers: {
            "jlcpcb": [
                "C206362"
            ]
        }, manufacturerPartNumber: "SLW6028S150MST", footprint: "smdpads2_p4.8499mm_pw2.2mm_ph5.2mm_cyw7.5499mm_cyh6.5mm", cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C206362.obj?uuid=88eed52d6bd8464b98f5d3cad6789cb2",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C206362.step?uuid=88eed52d6bd8464b98f5d3cad6789cb2",
            pcbRotationOffset: 90,
            modelOriginPosition: { x: 0, y: 0, z: -0.01 },
        }, ...props }));
};

const PowerInputs = () => (jsxs(Fragment, { children: [jsx("schematicsheet", { name: "POWER", displayName: "Power input and rails", sheetIndex: 0 }), jsx("schematicsection", { name: "PWR_IN", displayName: "Input protection" }), jsx("schematicsection", { name: "PWR_BUCK", displayName: "5V buck" }), jsx("schematicsection", { name: "PWR_LDO", displayName: "3V3 LDO" }), jsx(KF128_5_08_2P_AA, { name: "J1", pinLabels: { pin1: "VIN", pin2: "GND" }, schSheetName: "POWER", schSectionName: "PWR_IN", schX: -14, schY: 8, schWidth: 0.84, pcbX: -26.9, pcbY: 6.0, pcbRotation: 90, connections: { pin1: "net.VIN_RAW", pin2: "net.GND" }, schRotation: 0, schPinArrangement: { topSide: { pins: ["VIN"], direction: "left-to-right" }, bottomSide: { pins: ["GND"], direction: "left-to-right" } } }), jsx("fuse", { name: "F1", currentRating: "2A", voltageRating: "32V", footprint: "1206", schSheetName: "POWER", schSectionName: "PWR_IN", schX: -11, schY: 8, schRotation: 0, pcbX: -20.02, pcbY: -19.5, connections: { pin1: "net.VIN_RAW", pin2: "net.VIN_F" } }), jsx("chip", { name: "Q1", footprint: "sot23", manufacturerPartNumber: "DMP3098L", pinLabels: { pin1: "GATE", pin2: "SOURCE", pin3: "DRAIN" }, schSheetName: "POWER", schSectionName: "PWR_IN", schX: -8, schY: 8, pcbX: -15.48, pcbY: -19.98, connections: {
                pin1: "net.VM_GATE",
                pin2: "net.VM",
                pin3: "net.VIN_F",
            }, pcbRotation: 180 }), jsx("resistor", { name: "R1", resistance: "100k", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_IN", schX: -8, schY: 5.2, schRotation: 270, pcbX: -11.5, pcbY: -19.63, connections: { pin1: "net.VM_GATE", pin2: "net.GND" }, pcbRotation: 90 }), jsx("diode", { name: "D1", variant: "zener", footprint: "sod123", schSheetName: "POWER", schSectionName: "PWR_IN", schX: -8, schY: 2.5, pcbX: -8.5, pcbY: -19.5, connections: { pin1: "net.VM_GATE", pin2: "net.VM" }, schRotation: 90, pcbRotation: 90 }), jsx("diode", { name: "D2", variant: "tvs", footprint: "smb", schSheetName: "POWER", schSectionName: "PWR_IN", schX: -4, schY: 8, pcbX: -22, pcbY: -14.35, connections: { pin1: "net.GND", pin2: "net.VM" }, schRotation: 90 }), jsx("capacitor", { name: "C1", capacitance: "100uF", footprint: "electrolytic_d6.3mm_p2.5mm", schSheetName: "POWER", schSectionName: "PWR_IN", schX: -14.8, schY: -2, schRotation: 270, pcbX: -14.04, pcbY: -14.59, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx("capacitor", { name: "C2", capacitance: "10uF", footprint: "1206", schSheetName: "POWER", schSectionName: "PWR_IN", schX: -13.4, schY: -2, schRotation: 270, pcbX: -20.52, pcbY: -1.5, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx("capacitor", { name: "C3", capacitance: "100nF", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_IN", schX: -12, schY: -2, schRotation: 270, pcbX: -16.61, pcbY: -1.5, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx(TPS5430DDAR, { name: "U5", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: -5, schY: 3, schWidth: 2.53, schHeight: 1.2, pcbX: -24, pcbY: -6.5, connections: {
                VIN: "net.VM",
                GND: "net.GND",
                ENA: "net.ENA",
                BOOT: "net.BOOT",
                PH: "net.PH",
                VSENSE: "net.FB",
                PowerPAD: "net.GND",
            } }), jsx(SLW6028S150MST, { name: "L1", inductance: "15uH", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: -5, schY: 0.5, pcbX: -15.14, pcbY: -7.4, connections: { pin1: "net.PH", pin2: "net.V5" } }), jsx("diode", { name: "D3", variant: "schottky", footprint: "sma", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: -11.5, schY: 3, pcbX: -26.45, pcbY: -1.5, connections: { pin1: "net.GND", pin2: "net.PH" }, schRotation: 90 }), jsx("capacitor", { name: "C4", capacitance: "10nF", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: -1.5, schY: 6, pcbX: -13.5, pcbY: -1.5, connections: { pin1: "net.BOOT", pin2: "net.PH" } }), jsx("resistor", { name: "R2", resistance: "100k", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: 1, schY: 6, schRotation: 270, pcbX: -6.5, pcbY: -13.15, connections: { pin1: "net.VM", pin2: "net.ENA" } }), jsx("resistor", { name: "R3", resistance: "27k", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: 1, schY: 3.5, schRotation: 270, pcbX: -3.5, pcbY: -13.15, connections: { pin1: "net.ENA", pin2: "net.GND" } }), jsx("resistor", { name: "R4", resistance: "10k", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: 4, schY: 6, pcbX: -0.5, pcbY: -13.15, connections: { pin1: "net.V5", pin2: "net.FB" }, schRotation: 270 }), jsx("resistor", { name: "R5", resistance: "3.16k", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: 4, schY: 3.5, schRotation: 270, pcbX: 2.5, pcbY: -13.15, connections: { pin1: "net.FB", pin2: "net.GND" } }), jsx("capacitor", { name: "C5", capacitance: "22uF", footprint: "1210", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: 7, schY: -2, schRotation: 270, pcbX: 16, pcbY: 2, connections: { pin1: "net.V5", pin2: "net.GND" } }), jsx("capacitor", { name: "C6", capacitance: "22uF", footprint: "1210", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: 8.2, schY: -2, schRotation: 270, pcbX: 16.2, pcbY: -1.5, connections: { pin1: "net.V5", pin2: "net.GND" } }), jsx("capacitor", { name: "C7", capacitance: "100nF", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: 9.4, schY: -2, schRotation: 270, pcbX: 18.6, pcbY: 5.1, connections: { pin1: "net.V5", pin2: "net.GND" } }), jsx("capacitor", { name: "C8", capacitance: "4.7uF", footprint: "1206", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: -10.6, schY: -2, schRotation: 270, pcbX: -9.58, pcbY: -1.55, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx("capacitor", { name: "C9", capacitance: "100nF", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: -9.2, schY: -2, schRotation: 270, pcbX: -5.75, pcbY: -1.5, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx("chip", { name: "U6", footprint: "sot223", manufacturerPartNumber: "AMS1117-3.3", pinLabels: { pin1: "GND", pin2: "VOUT", pin3: "VIN", pin4: "VOUT2" }, schSheetName: "POWER", schSectionName: "PWR_LDO", schX: 12, schY: 4, pcbX: 9.0, pcbY: 2.26, connections: {
                pin1: "net.GND",
                pin2: "net.V3_3",
                pin3: "net.V5",
                pin4: "net.V3_3",
            } }), jsx("capacitor", { name: "C10", capacitance: "10uF", footprint: "0805", schSheetName: "POWER", schSectionName: "PWR_LDO", schX: 10.6, schY: -2, schRotation: 270, pcbX: 6.34, pcbY: 7.9, connections: { pin1: "net.V5", pin2: "net.GND" } }), jsx("capacitor", { name: "C11", capacitance: "10uF", footprint: "0805", schSheetName: "POWER", schSectionName: "PWR_LDO", schX: 12, schY: -2, schRotation: 270, pcbX: 9.86, pcbY: 6.96, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C12", capacitance: "100nF", footprint: "0603", schSheetName: "POWER", schSectionName: "PWR_LDO", schX: 13.2, schY: -2, schRotation: 270, pcbX: 12.4, pcbY: 8.8, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("diode", { name: "D4", variant: "schottky", footprint: "sma", schSheetName: "POWER", schSectionName: "PWR_BUCK", schX: 8, schY: 6, pcbX: 2, pcbY: -10.4, connections: { pin1: "net.VBUS", pin2: "net.V5" }, pcbRotation: 180 })] }));

const pinLabels$2 = {
    pin1: ["IOVDD6"],
    pin2: ["GPIO0"],
    pin3: ["GPIO1"],
    pin4: ["GPIO2"],
    pin5: ["GPIO3"],
    pin6: ["GPIO4"],
    pin7: ["GPIO5"],
    pin8: ["GPIO6"],
    pin9: ["GPIO7"],
    pin10: ["IOVDD5"],
    pin11: ["GPIO8"],
    pin12: ["GPIO9"],
    pin13: ["GPIO10"],
    pin14: ["GPIO11"],
    pin15: ["GPIO12"],
    pin16: ["GPIO13"],
    pin17: ["GPIO14"],
    pin18: ["GPIO15"],
    pin19: ["TESTEN"],
    pin20: ["XIN"],
    pin21: ["XOUT"],
    pin22: ["IOVDD4"],
    pin23: ["DVDD2"],
    pin24: ["SWCLK"],
    pin25: ["SWD"],
    pin26: ["RUN"],
    pin27: ["GPIO16"],
    pin28: ["GPIO17"],
    pin29: ["GPIO18"],
    pin30: ["GPIO19"],
    pin31: ["GPIO20"],
    pin32: ["GPIO21"],
    pin33: ["IOVDD3"],
    pin34: ["GPIO22"],
    pin35: ["GPIO23"],
    pin36: ["GPIO24"],
    pin37: ["GPIO25"],
    pin38: ["GPIO26_ADC0"],
    pin39: ["GPIO27_ADC1"],
    pin40: ["GPIO28_ADC2"],
    pin41: ["GPIO29_ADC3"],
    pin42: ["IOVDD2"],
    pin43: ["ADC_AVDD"],
    pin44: ["VREG_IN"],
    pin45: ["VREG_VOUT"],
    pin46: ["USB_DM"],
    pin47: ["USB_DP"],
    pin48: ["USB_VDD"],
    pin49: ["IOVDD1"],
    pin50: ["DVDD1"],
    pin51: ["QSPI_SD3"],
    pin52: ["QSPI_SCLK"],
    pin53: ["QSPI_SD0"],
    pin54: ["QSPI_SD2"],
    pin55: ["QSPI_SD1"],
    pin56: ["QSPI_SS"],
    pin57: ["GND"]
};
const pinAttributes$2 = {
    pin57: { capabilities: [], requiresGround: true, requiresVoltage: 0, mustBeConnected: true },
    pin56: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin55: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin54: { isInput: true, isOutput: true, isBidirectional: true, capabilities: [], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin53: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_mosi"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin52: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_sck"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin51: { isInput: true, isOutput: true, isBidirectional: true, capabilities: [], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin50: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin49: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin48: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin47: { isInput: true, isOutput: true, isBidirectional: true, capabilities: [], canUseInternalPullup: true, canUseInternalPulldown: true },
    pin46: { isInput: true, isOutput: true, isBidirectional: true, capabilities: [], canUseInternalPullup: true, canUseInternalPulldown: true },
    pin45: { isOutput: true, canUseTriState: true, capabilities: [], providesPower: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "1uF" },
    pin44: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "1uF" },
    pin43: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin42: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin41: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs", "i2c_scl", "uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin40: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso", "i2c_sda", "uart_tx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin39: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_mosi", "i2c_scl"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin38: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_sck", "i2c_sda"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin37: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs", "i2c_scl", "uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin36: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso", "i2c_sda", "uart_tx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin35: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_mosi", "i2c_scl"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin34: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_sck", "i2c_sda"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin33: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin32: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs", "i2c_scl", "uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin31: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso", "i2c_sda", "uart_tx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin30: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_mosi", "i2c_scl"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin29: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_sck", "i2c_sda"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin28: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs", "i2c_scl", "uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin27: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso", "i2c_sda", "uart_tx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin26: { isInput: true, capabilities: [], canUseInternalPullup: true },
    pin25: { isInput: true, isOutput: true, isBidirectional: true, capabilities: [], canUseInternalPullup: true, canUseInternalPulldown: true },
    pin24: { isInput: true, capabilities: [], canUseInternalPullup: true, canUseInternalPulldown: true },
    pin23: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin22: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin21: { isOutput: true, capabilities: [] },
    pin20: { isInput: true, capabilities: [] },
    pin19: { isInput: true, capabilities: [], requiresGround: true, requiresVoltage: 0, mustBeConnected: true },
    pin18: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_mosi", "i2c_scl"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin17: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_sck", "i2c_sda"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin16: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs", "i2c_scl", "uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin15: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso", "i2c_sda", "uart_tx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin14: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_mosi", "i2c_scl"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin13: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_sck", "i2c_sda"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin12: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs", "i2c_scl", "uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin11: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso", "i2c_sda", "uart_tx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin10: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" },
    pin9: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_mosi", "i2c_scl"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin8: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_sck", "i2c_sda"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin7: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs", "i2c_scl", "uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin6: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso", "i2c_sda", "uart_tx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin5: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_mosi", "i2c_scl"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin4: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_sck", "i2c_sda"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin3: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_cs", "i2c_scl", "uart_rx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin2: { isInput: true, isOutput: true, isBidirectional: true, capabilities: ["spi_miso", "i2c_sda", "uart_tx"], canUseInternalPullup: true, canUseInternalPulldown: true, canUsePushPull: true, isGpio: true },
    pin1: { isInput: true, capabilities: [], requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "100nF" }
};
const footprinterPinLabels$1 = {
    ...pinLabels$2,
    "pin57": [...pinLabels$2["pin57"], "thermalpad"],
};
const RP2040 = (props) => {
    return (jsx("chip", { pinLabels: footprinterPinLabels$1, pinAttributes: pinAttributes$2, supplierPartNumbers: {
            "jlcpcb": [
                "C2040"
            ]
        }, manufacturerPartNumber: "RP2040", footprint: "qfn56_thermalpad3.1mmx3.1mm_p0.4mm_h7.9mm_pw0.2mm_pl0.85mm", cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2040.obj?uuid=76b360a9d4c54384a4e47d7e5af156df",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2040.step?uuid=76b360a9d4c54384a4e47d7e5af156df",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0.000012699999956566899, y: -1269999999067295e-19, z: -0.02 },
        }, ...props }));
};

const pinLabels$1 = {
    pin1: ["CS"],
    pin2: ["DO", "IO1"],
    pin3: ["IO2"],
    pin4: ["GND"],
    pin5: ["DI", "IO0"],
    pin6: ["CLK"],
    pin7: ["IO3"],
    pin8: ["VCC"]
};
const pinAttributes$1 = {
    pin4: { requiresGround: true },
    pin8: { requiresPower: true, shouldHaveDecouplingCapacitor: true },
    pin1: { isInput: true, capabilities: ["spi_cs"] },
    pin2: { isBidirectional: true, canUseTriState: true, capabilities: ["spi_miso"], canUsePushPull: true },
    pin3: { isBidirectional: true, canUseTriState: true, canUsePushPull: true },
    pin7: { isBidirectional: true, canUseTriState: true, canUsePushPull: true },
    pin6: { isInput: true, capabilities: ["spi_sck"] },
    pin5: { isBidirectional: true, canUseTriState: true, capabilities: ["spi_mosi"], canUsePushPull: true }
};
const W25Q16JVSSIQ = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$1, pinAttributes: pinAttributes$1, supplierPartNumbers: {
            "jlcpcb": [
                "C131025"
            ]
        }, manufacturerPartNumber: "W25Q16JVSSIQ", footprint: "soic8_pillpads_w9.31mm_pw0.63mm_pl2.25mm_pin1location(leftside,bottom)", cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C131025.obj?uuid=4652e19b90fa4dbb8662aa4cba61a532",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C131025.step?uuid=4652e19b90fa4dbb8662aa4cba61a532",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0.000012700000070253736, y: -12699999956566899e-21, z: -0.069425 },
        }, ...props }));
};

const Mcu = () => (jsxs(Fragment, { children: [jsx("schematicsheet", { name: "MCU", displayName: "RP2040, flash and clock", sheetIndex: 1 }), jsx("schematicsection", { name: "MCU_CORE", displayName: "RP2040" }), jsx("schematicsection", { name: "MCU_FLASH", displayName: "QSPI flash" }), jsx("schematicsection", { name: "MCU_CLOCK", displayName: "12 MHz crystal" }), jsx(RP2040, { name: "U1", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: -8, schY: 0, schWidth: 2.815, schHeight: 6, pcbX: 0.0, pcbY: 3.0, connections: {
                IOVDD6: "net.V3_3",
                IOVDD5: "net.V3_3",
                IOVDD4: "net.V3_3",
                IOVDD3: "net.V3_3",
                IOVDD2: "net.V3_3",
                IOVDD1: "net.V3_3",
                USB_VDD: "net.V3_3",
                ADC_AVDD: "net.V3_3",
                VREG_IN: "net.V3_3",
                VREG_VOUT: "net.V1_1",
                DVDD2: "net.V1_1",
                DVDD1: "net.V1_1",
                GND: "net.GND",
                TESTEN: "net.GND",
                RUN: "net.RUN",
                SWCLK: "net.SWCLK",
                SWD: "net.SWDIO",
                USB_DP: "net.USB_DP",
                USB_DM: "net.USB_DM",
                QSPI_SS: "net.FLASH_CS",
                QSPI_SCLK: "net.FLASH_SCLK",
                QSPI_SD0: "net.FLASH_D0",
                QSPI_SD1: "net.FLASH_D1",
                QSPI_SD2: "net.FLASH_D2",
                QSPI_SD3: "net.FLASH_D3",
                GPIO0: "net.ENC1_IDX",
                GPIO1: "net.ENC1_A",
                GPIO2: "net.ENC1_B",
                GPIO4: "net.MOTA_IN1",
                GPIO5: "net.MOTA_IN2",
                GPIO6: "net.MOTB_IN1",
                GPIO7: "net.MOTB_IN2",
                GPIO8: "net.ENC2_A",
                GPIO9: "net.ENC2_B",
                GPIO10: "net.ENC2_IDX",
                GPIO16: "net.I2C_SDA",
                GPIO17: "net.I2C_SCL",
                GPIO25: "net.STAT_LED",
            } }), jsx(W25Q16JVSSIQ, { name: "U2", schSheetName: "MCU", schSectionName: "MCU_FLASH", schX: 2, schY: 7, schWidth: 1.77, schHeight: 1, pcbX: 0.0, pcbY: 12.35, pcbRotation: 0, connections: {
                CS: "net.FLASH_CS",
                CLK: "net.FLASH_SCLK",
                DI: "net.FLASH_D0",
                DO: "net.FLASH_D1",
                IO2: "net.FLASH_D2",
                IO3: "net.FLASH_D3",
                VCC: "net.V3_3",
                GND: "net.GND",
            } }), jsx("resistor", { name: "R7", resistance: "10k", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_FLASH", schX: 2, schY: 9.5, schRotation: 270, pcbX: 6.5, pcbY: 11.5, connections: { pin1: "net.V3_3", pin2: "net.FLASH_CS" } }), jsx("capacitor", { name: "C26", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_FLASH", schX: 5.3, schY: -5.5, schRotation: 270, pcbX: 11.0, pcbY: 14.43, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("crystal", { name: "Y1", frequency: "12MHz", loadCapacitance: "15pF", pinVariant: "four_pin", footprint: "crystal4_px3.2mm_py2.5mm", schSheetName: "MCU", schSectionName: "MCU_CLOCK", schX: -8, schY: -7, schWidth: 2, pcbX: 0, pcbY: -3.8, connections: {
                pin2: "net.GND",
                pin4: "net.GND",
            }, pcbRotation: 270 }), jsx("capacitor", { name: "C24", capacitance: "15pF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CLOCK", schX: -10, schY: -8, schRotation: 270, pcbX: -4.9, pcbY: -3.4, connections: { pin2: "net.GND" }, pcbRotation: 180 }), jsx("capacitor", { name: "C25", capacitance: "15pF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CLOCK", schX: -6, schY: -8, schRotation: 270, pcbX: 3.9, pcbY: -5.6, connections: { pin2: "net.GND" } }), jsx("resistor", { name: "R8", resistance: "10k", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: -13, schY: 6, schRotation: 270, pcbX: 6.5, pcbY: 14.0, connections: { pin1: "net.V3_3", pin2: "net.RUN" } }), jsx("capacitor", { name: "C13", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 0.5, schY: -4, schRotation: 270, pcbX: -12.66, pcbY: 0.99, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C14", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 1.7, schY: -4, schRotation: 270, pcbX: -12.66, pcbY: 3.09, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C15", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 2.9, schY: -4, schRotation: 270, pcbX: -12.66, pcbY: 5.19, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C16", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 4.1, schY: -4, schRotation: 270, pcbX: -6.19, pcbY: 0.52, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C17", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 5.3, schY: -4, schRotation: 270, pcbX: -6.2, pcbY: 2.6, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C18", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 0.5, schY: -5.5, schRotation: 270, pcbX: -6.2, pcbY: 4.7, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C19", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 1.7, schY: -5.5, schRotation: 270, pcbX: -6.2, pcbY: 6.8, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C20", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 2.9, schY: -5.5, schRotation: 270, pcbX: -9.54, pcbY: 0.54, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C21", capacitance: "100nF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: -8, schY: -4.5, schRotation: 270, pcbX: -9.54, pcbY: 2.61, connections: { pin1: "net.V1_1", pin2: "net.GND" } }), jsx("capacitor", { name: "C22", capacitance: "1uF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: 4.1, schY: -5.5, schRotation: 270, pcbX: -9.54, pcbY: 4.71, connections: { pin1: "net.V3_3", pin2: "net.GND" } }), jsx("capacitor", { name: "C23", capacitance: "1uF", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CORE", schX: -6.8, schY: -4.5, schRotation: 270, pcbX: -9.6, pcbY: 6.81, connections: { pin1: "net.V1_1", pin2: "net.GND" } }), jsx("pinheader", { name: "J8", pinCount: 5, pitch: "2.54mm", footprint: "pinrow5_p2.54mm", pinLabels: ["3V3", "SWDIO", "SWCLK", "GND", "RUN"], schWidth: 0.675, schSheetName: "MCU", schSectionName: "MCU_CORE", schX: -13, schY: 3, pcbX: 12.2, pcbY: -19.89, pcbRotation: 0, connections: {
                pin1: "net.V3_3",
                pin2: "net.SWDIO",
                pin3: "net.SWCLK",
                pin4: "net.GND",
                pin5: "net.RUN",
            } }), jsx("resistor", { name: "R31", resistance: "33", footprint: "0603", schSheetName: "MCU", schSectionName: "MCU_CLOCK", schX: 3.6, schY: -3.3, pcbX: 3.6, pcbY: -7.4 }), jsx("trace", { from: "U1.XIN", to: "Y1.pin1" }), jsx("trace", { from: "U1.XOUT", to: "R31.pin2" }), jsx("trace", { from: "R31.pin1", to: "Y1.pin3" }), jsx("trace", { from: "Y1.pin1", to: "C24.pin1" }), jsx("trace", { from: "Y1.pin3", to: "C25.pin1" })] }));

const Usb = () => (jsxs(Fragment, { children: [jsx("schematicsheet", { name: "USB", displayName: "USB-C device port", sheetIndex: 2 }), jsx("schematicsection", { name: "USB_PORT", displayName: "USB-C" }), jsx("connector", { name: "J2", standard: "usb_c", schSheetName: "USB", schSectionName: "USB_PORT", schX: -4, schY: 0, pcbX: 0.0, pcbY: -16.9, pcbRotation: 0, connections: {
                VBUS1: "net.VBUS",
                VBUS2: "net.VBUS",
                DP1: "net.USB_DP_C",
                DP2: "net.USB_DP_C",
                DM1: "net.USB_DM_C",
                DM2: "net.USB_DM_C",
                CC1: "net.USB_CC1",
                CC2: "net.USB_CC2",
                GND1: "net.GND",
                GND2: "net.GND",
                SHELL1: "net.GND",
                SHELL2: "net.GND",
            }, schWidth: 1.575 }), jsx("resistor", { name: "R9", resistance: "5.1k", footprint: "0603", schSheetName: "USB", schSectionName: "USB_PORT", schX: -1, schY: 3, schRotation: 270, pcbX: 7.23, pcbY: -16.4, connections: { pin1: "net.USB_CC1", pin2: "net.GND" } }), jsx("resistor", { name: "R10", resistance: "5.1k", footprint: "0603", schSheetName: "USB", schSectionName: "USB_PORT", schX: -1, schY: 0.5, schRotation: 270, pcbX: 10.35, pcbY: -17.23, connections: { pin1: "net.USB_CC2", pin2: "net.GND" } }), jsx("resistor", { name: "R11", resistance: "27", footprint: "0603", schSheetName: "USB", schSectionName: "USB_PORT", schX: 1.5, schY: 3, pcbX: 13.46, pcbY: -17.23, connections: { pin1: "net.USB_DP_C", pin2: "net.USB_DP" } }), jsx("resistor", { name: "R12", resistance: "27", footprint: "0603", schSheetName: "USB", schSectionName: "USB_PORT", schX: 1.5, schY: 0.5, pcbX: 16.58, pcbY: -16.4, connections: { pin1: "net.USB_DM_C", pin2: "net.USB_DM" } }), jsx("capacitor", { name: "C27", capacitance: "1uF", footprint: "0603", schSheetName: "USB", schSectionName: "USB_PORT", schX: -6, schY: -3, schRotation: 270, pcbX: 19.69, pcbY: -16.4, connections: { pin1: "net.VBUS", pin2: "net.GND" } })] }));

const pinLabels = {
    pin1: ["GND"],
    pin2: ["IN2"],
    pin3: ["IN1"],
    pin4: ["ILIM"],
    pin5: ["VM"],
    pin6: ["OUT1"],
    pin7: ["PGND"],
    pin8: ["OUT2"],
    pin9: ["EP"]
};
const pinAttributes = {
    pin1: { requiresGround: true, mustBeConnected: true },
    pin7: { requiresGround: true, mustBeConnected: true },
    pin8: { isOutput: true, canUseTriState: true },
    pin6: { isOutput: true, canUseTriState: true },
    pin5: { requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true, recommendedDecouplingCapacitorCapacitance: "0.1uF" },
    pin2: { isInput: true, canUseInternalPulldown: true },
    pin3: { isInput: true, canUseInternalPulldown: true },
    pin4: { isInput: true, mustBeConnected: true },
    pin9: { requiresGround: true, mustBeConnected: true }
};
const footprinterPinLabels = {
    ...pinLabels,
    "pin9": [...pinLabels["pin9"], "thermalpad"],
};
const DRV8871DDAR = (props) => {
    return (jsx("chip", { pinLabels: footprinterPinLabels, pinAttributes: pinAttributes, supplierPartNumbers: {
            "jlcpcb": [
                "C75864"
            ]
        }, manufacturerPartNumber: "DRV8871DDAR", footprint: "soic8_thermalpad2.5mmx3.2mm_pillpads_w7.6mm_pl1.6mm_pin1location(leftside,bottom)", cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C75864.obj?uuid=3936dbd423424b148317d27cdee29b93",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C75864.step?uuid=3936dbd423424b148317d27cdee29b93",
            pcbRotationOffset: 270,
            modelOriginPosition: { x: -6349999999599731e-20, y: -8889999999439624e-20, z: -0.049425 },
        }, ...props }));
};

const Drivers = () => (jsxs(Fragment, { children: [jsx("schematicsheet", { name: "MOTOR", displayName: "Motor drivers", sheetIndex: 3 }), jsx("schematicsection", { name: "MOT_A", displayName: "Motor A" }), jsx("schematicsection", { name: "MOT_B", displayName: "Motor B" }), jsx(DRV8871DDAR, { name: "U3", schSheetName: "MOTOR", schSectionName: "MOT_A", schX: -8, schY: 4, schWidth: 1.96, schHeight: 1.2, pcbX: 17.0, pcbY: 10.0, connections: {
                IN1: "net.MOTA_IN1",
                IN2: "net.MOTA_IN2",
                VM: "net.VM",
                GND: "net.GND",
                PGND: "net.GND",
                EP: "net.GND",
                ILIM: "net.MOTA_ILIM",
                OUT1: "net.MOTA1",
                OUT2: "net.MOTA2",
            } }), jsx("resistor", { name: "R13", resistance: "33k", footprint: "0603", schSheetName: "MOTOR", schSectionName: "MOT_A", schX: -11.4, schY: 4, schRotation: 270, pcbX: 11.5, pcbY: 16.8, connections: { pin1: "net.MOTA_ILIM", pin2: "net.GND" }, pcbRotation: 90 }), jsx("capacitor", { name: "C28", capacitance: "10uF", footprint: "1206", schSheetName: "MOTOR", schSectionName: "MOT_A", schX: 4, schY: 4, schRotation: 270, pcbX: 11.0, pcbY: 12.42, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx("capacitor", { name: "C30", capacitance: "100nF", footprint: "0603", schSheetName: "MOTOR", schSectionName: "MOT_A", schX: 5.2, schY: 4, schRotation: 270, pcbX: 11.0, pcbY: 10.41, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx(KF128_5_08_2P_AA, { name: "J3", pinLabels: { pin1: "MOTA1", pin2: "MOTA2" }, schSheetName: "MOTOR", schSectionName: "MOT_A", schX: 2, schY: 8, schWidth: 1.341, pcbX: 26.9, pcbY: 10.0, pcbRotation: 90, connections: { pin1: "net.MOTA1", pin2: "net.MOTA2" }, schHeight: 0.4 }), jsx(DRV8871DDAR, { name: "U4", schSheetName: "MOTOR", schSectionName: "MOT_B", schX: -8, schY: -4, schWidth: 1.96, schHeight: 1.2, pcbX: 17.0, pcbY: -10, connections: {
                IN1: "net.MOTB_IN1",
                IN2: "net.MOTB_IN2",
                VM: "net.VM",
                GND: "net.GND",
                PGND: "net.GND",
                EP: "net.GND",
                ILIM: "net.MOTB_ILIM",
                OUT1: "net.MOTB1",
                OUT2: "net.MOTB2",
            } }), jsx("resistor", { name: "R14", resistance: "33k", footprint: "0603", schSheetName: "MOTOR", schSectionName: "MOT_B", schX: -11.4, schY: -4, schRotation: 270, pcbX: 12.0, pcbY: -14.87, connections: { pin1: "net.MOTB_ILIM", pin2: "net.GND" }, pcbRotation: 90 }), jsx("capacitor", { name: "C29", capacitance: "10uF", footprint: "1206", schSheetName: "MOTOR", schSectionName: "MOT_B", schX: 4, schY: 2.5, schRotation: 270, pcbX: 11.0, pcbY: -12.1, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx("capacitor", { name: "C31", capacitance: "100nF", footprint: "0603", schSheetName: "MOTOR", schSectionName: "MOT_B", schX: 5.2, schY: 2.5, schRotation: 270, pcbX: 11.09, pcbY: -10.09, connections: { pin1: "net.VM", pin2: "net.GND" } }), jsx(KF128_5_08_2P_AA, { name: "J4", pinLabels: { pin1: "MOTB1", pin2: "MOTB2" }, schSheetName: "MOTOR", schSectionName: "MOT_B", schX: 2, schY: -8, schWidth: 1.341, pcbX: 26.9, pcbY: -10, pcbRotation: 90, connections: { pin1: "net.MOTB1", pin2: "net.MOTB2" }, schHeight: 0.4 })] }));

const Encoders = () => (jsxs(Fragment, { children: [jsx("schematicsheet", { name: "ENC", displayName: "Quadrature encoders", sheetIndex: 4 }), jsx("schematicsection", { name: "ENC1", displayName: "Encoder 1" }), jsx("schematicsection", { name: "ENC2", displayName: "Encoder 2" }), jsx("pinheader", { name: "J5", pinCount: 6, pitch: "2.54mm", gender: "male", footprint: "pinrow6_p2.54mm", showSilkscreenPinLabels: true, pinLabels: ["5V", "GND", "A", "B", "IDX", "GND2"], schWidth: 0.58, schSheetName: "ENC", schSectionName: "ENC1", schX: -13, schY: 6, pcbX: -12, pcbY: 20.2, connections: {
                pin1: "net.V5",
                pin2: "net.GND",
                pin3: "net.ENC1_A_H",
                pin4: "net.ENC1_B_H",
                pin5: "net.ENC1_IDX_H",
                pin6: "net.GND",
            } }), jsx("resistor", { name: "R15", resistance: "10k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -9, schY: 9, schRotation: 270, pcbX: -21, pcbY: 16.71, connections: { pin1: "net.V3_3", pin2: "net.ENC1_A_H" }, pcbRotation: 90 }), jsx("resistor", { name: "R16", resistance: "10k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -7, schY: 9, schRotation: 270, pcbX: -17.8, pcbY: 16.75, connections: { pin1: "net.V3_3", pin2: "net.ENC1_B_H" }, pcbRotation: 90 }), jsx("resistor", { name: "R17", resistance: "10k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -5, schY: 9, schRotation: 270, pcbX: -14.6, pcbY: 16.75, connections: { pin1: "net.V3_3", pin2: "net.ENC1_IDX_H" }, pcbRotation: 90 }), jsx("resistor", { name: "R21", resistance: "1k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -9, schY: 6, pcbX: -11.4, pcbY: 16.92, connections: { pin1: "net.ENC1_A_H", pin2: "net.ENC1_A" } }), jsx("resistor", { name: "R22", resistance: "1k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -9, schY: 4, pcbX: -8.2, pcbY: 16.5, connections: { pin1: "net.ENC1_B_H", pin2: "net.ENC1_B" } }), jsx("resistor", { name: "R23", resistance: "1k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -9, schY: 2, pcbX: -21, pcbY: 14.29, connections: { pin1: "net.ENC1_IDX_H", pin2: "net.ENC1_IDX" } }), jsx("capacitor", { name: "C32", capacitance: "10nF", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -6, schY: 6, schRotation: 270, pcbX: -14.6, pcbY: 11.18, connections: { pin1: "net.ENC1_A", pin2: "net.GND" } }), jsx("capacitor", { name: "C33", capacitance: "10nF", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -6, schY: 4, schRotation: 270, pcbX: -11.4, pcbY: 12.09, connections: { pin1: "net.ENC1_B", pin2: "net.GND" } }), jsx("capacitor", { name: "C34", capacitance: "10nF", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC1", schX: -6, schY: 2, schRotation: 270, pcbX: -8.2, pcbY: 12.5, connections: { pin1: "net.ENC1_IDX", pin2: "net.GND" }, pcbRotation: 180 }), jsx("pinheader", { name: "J6", pinCount: 6, pitch: "2.54mm", gender: "male", footprint: "pinrow6_p2.54mm", showSilkscreenPinLabels: true, pinLabels: ["5V", "GND", "A", "B", "IDX", "GND2"], schWidth: 0.58, schSheetName: "ENC", schSectionName: "ENC2", schX: 5, schY: 6, pcbX: 12.0, pcbY: 20.2, connections: {
                pin1: "net.V5",
                pin2: "net.GND",
                pin3: "net.ENC2_A_H",
                pin4: "net.ENC2_B_H",
                pin5: "net.ENC2_IDX_H",
                pin6: "net.GND",
            } }), jsx("resistor", { name: "R18", resistance: "10k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 1, schY: 9, schRotation: 270, pcbX: -17.8, pcbY: 13.59, connections: { pin1: "net.V3_3", pin2: "net.ENC2_A_H" }, pcbRotation: 90 }), jsx("resistor", { name: "R19", resistance: "10k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 3, schY: 9, schRotation: 270, pcbX: -14.6, pcbY: 13.59, connections: { pin1: "net.V3_3", pin2: "net.ENC2_B_H" }, pcbRotation: 180 }), jsx("resistor", { name: "R20", resistance: "10k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 5, schY: 9, schRotation: 270, pcbX: -11.4, pcbY: 14.5, connections: { pin1: "net.V3_3", pin2: "net.ENC2_IDX_H" }, pcbRotation: 90 }), jsx("resistor", { name: "R24", resistance: "1k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 9, schY: 6, pcbX: -8.2, pcbY: 14.5, connections: { pin1: "net.ENC2_A_H", pin2: "net.ENC2_A" } }), jsx("resistor", { name: "R25", resistance: "1k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 9, schY: 4, pcbX: -21, pcbY: 12.5, connections: { pin1: "net.ENC2_B_H", pin2: "net.ENC2_B" } }), jsx("resistor", { name: "R26", resistance: "1k", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 9, schY: 2, pcbX: -17.8, pcbY: 11.18, connections: { pin1: "net.ENC2_IDX_H", pin2: "net.ENC2_IDX" } }), jsx("capacitor", { name: "C35", capacitance: "10nF", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 12, schY: 6, schRotation: 270, pcbX: -21, pcbY: 10.5, connections: { pin1: "net.ENC2_A", pin2: "net.GND" } }), jsx("capacitor", { name: "C36", capacitance: "10nF", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 12, schY: 4, schRotation: 270, pcbX: -17.8, pcbY: 9.51, connections: { pin1: "net.ENC2_B", pin2: "net.GND" } }), jsx("capacitor", { name: "C37", capacitance: "10nF", footprint: "0603", schSheetName: "ENC", schSectionName: "ENC2", schX: 12, schY: 2, schRotation: 270, pcbX: -14.6, pcbY: 9.51, connections: { pin1: "net.ENC2_IDX", pin2: "net.GND" } })] }));

const Io = () => (jsxs(Fragment, { children: [jsx("schematicsheet", { name: "IO", displayName: "I2C, LEDs, mounting", sheetIndex: 5 }), jsx("schematicsection", { name: "IO_I2C", displayName: "I2C / IMU" }), jsx("schematicsection", { name: "IO_LED", displayName: "Status LEDs" }), jsx("connector", { name: "J7", footprint: "jst4_p1mm_sh", pinLabels: { pin1: "GND", pin2: "3V3", pin3: "SDA", pin4: "SCL", pin5: "MP1", pin6: "MP2" }, schSheetName: "IO", schSectionName: "IO_I2C", schX: -6, schY: 4, pcbX: 26.8, pcbY: 0.0, pcbRotation: 270, connections: {
                pin1: "net.GND",
                pin2: "net.V3_3",
                pin3: "net.I2C_SDA",
                pin4: "net.I2C_SCL",
                pin5: "net.GND",
                pin6: "net.GND",
            } }), jsx("resistor", { name: "R29", resistance: "4.7k", footprint: "0603", schSheetName: "IO", schSectionName: "IO_I2C", schX: -3, schY: 7, schRotation: 270, pcbX: 22.0, pcbY: 0.0, connections: { pin1: "net.V3_3", pin2: "net.I2C_SDA" } }), jsx("resistor", { name: "R30", resistance: "4.7k", footprint: "0603", schSheetName: "IO", schSectionName: "IO_I2C", schX: -1, schY: 7, schRotation: 270, pcbX: 22.0, pcbY: -2.5, connections: { pin1: "net.V3_3", pin2: "net.I2C_SCL" } }), jsx("resistor", { name: "R27", resistance: "1k", footprint: "0603", schSheetName: "IO", schSectionName: "IO_LED", schX: 3, schY: 7, schRotation: 270, pcbX: 22.0, pcbY: 8.0, connections: { pin1: "net.V3_3", pin2: "net.LED_PWR" } }), jsx("led", { name: "D5", color: "green", footprint: "0805", schSheetName: "IO", schSectionName: "IO_LED", schX: 3, schY: 3, schRotation: 270, pcbX: 22.0, pcbY: 5.0, connections: { pin1: "net.LED_PWR", pin2: "net.GND" } }), jsx("resistor", { name: "R28", resistance: "1k", footprint: "0603", schSheetName: "IO", schSectionName: "IO_LED", schX: 6, schY: 7, schRotation: 270, pcbX: 22.0, pcbY: 10.5, connections: { pin1: "net.V3_3", pin2: "net.LED_STAT" } }), jsx("led", { name: "D6", color: "red", footprint: "0805", schSheetName: "IO", schSectionName: "IO_LED", schX: 6, schY: 3, schRotation: 270, pcbX: 22.0, pcbY: 2.5, connections: { pin1: "net.LED_STAT", pin2: "net.STAT_LED" } }), jsx("hole", { name: "H1", diameter: "3.2mm", pcbX: -26, pcbY: 19 }), jsx("hole", { name: "H2", diameter: "3.2mm", pcbX: 26, pcbY: 19 }), jsx("hole", { name: "H3", diameter: "3.2mm", pcbX: -26, pcbY: -19 }), jsx("hole", { name: "H4", diameter: "3.2mm", pcbX: 26, pcbY: -19 })] }));

var index_circuit = () => (jsxs("board", { width: "60mm", height: "45mm", layers: 2, title: "Dual motor encoder controller", defaultTraceWidth: "0.2mm", minTraceWidth: "0.15mm", routeRemaining: true, children: [jsx("net", { name: "GND", isGroundNet: true }), jsx("net", { name: "VM", isPowerNet: true }), jsx("net", { name: "V5", isPowerNet: true }), jsx("net", { name: "V3_3", isPowerNet: true }), jsx("net", { name: "V1_1", isPowerNet: true }), jsx("net", { name: "VBUS", isPowerNet: true }), jsx("net", { name: "VIN_RAW", isPowerNet: true }), jsx("net", { name: "VIN_F", isPowerNet: true }), jsx(PowerInputs, {}), jsx(Mcu, {}), jsx(Usb, {}), jsx(Drivers, {}), jsx(Encoders, {}), jsx(Io, {})] }));

export { index_circuit as default };