Ayushjhawar8/DRV8833-2X-Large

The code defines a PCB footprint and schematic representation for the DRV8833 motor driver IC, including its pin connections, supporting components, and physical layout.

Version
1.0.0
License
unset
Stars
0

dist/index.cjs

PCBPCB preview for dist/index.cjs
SchematicSchematic preview for dist/index.cjs
'use strict';

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

const pinLabels = {
    pin1: ["nSleep"],
    pin2: ["AOUT1"],
    pin3: ["AISEN"],
    pin4: ["AOUT2"],
    pin5: ["BOUT2"],
    pin6: ["BISEN"],
    pin7: ["BOUT1"],
    pin8: ["nFault"],
    pin9: ["BIN1"],
    pin10: ["BIN2"],
    pin11: ["VCP"],
    pin12: ["VM"],
    pin13: ["GND"],
    pin14: ["VINT"],
    pin15: ["AIN2"],
    pin16: ["AIN1"]
};
const DRV8833PWR = (props) => {
    return (jsxRuntime.jsx("chip", Object.assign({ pinLabels: pinLabels, supplierPartNumbers: {
            "jlcpcb": [
                "C544801"
            ]
        }, manufacturerPartNumber: "DRV8833PWR", footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "-2.2750780000000077mm", pcbY: "-2.865754999999922mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin2"], pcbX: "-1.6250920000001088mm", pcbY: "-2.865754999999922mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin3"], pcbX: "-0.9751059999999825mm", pcbY: "-2.865754999999922mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin4"], pcbX: "-0.32486600000004273mm", pcbY: "-2.865754999999922mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin5"], pcbX: "0.32512000000008356mm", pcbY: "-2.865754999999922mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin6"], pcbX: "0.9751059999999825mm", pcbY: "-2.865754999999922mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin7"], pcbX: "1.625091999999995mm", pcbY: "-2.865754999999922mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin8"], pcbX: "2.2750780000000077mm", pcbY: "-2.865754999999922mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin16"], pcbX: "-2.2750780000000077mm", pcbY: "2.8657550000000356mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin15"], pcbX: "-1.6250920000001088mm", pcbY: "2.8657550000000356mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin14"], pcbX: "-0.9751059999999825mm", pcbY: "2.8657550000000356mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin13"], pcbX: "-0.32486600000004273mm", pcbY: "2.8657550000000356mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin12"], pcbX: "0.32512000000008356mm", pcbY: "2.8657550000000356mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin11"], pcbX: "0.9751059999999825mm", pcbY: "2.8657550000000356mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin10"], pcbX: "1.625091999999995mm", pcbY: "2.8657550000000356mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin9"], pcbX: "2.2750780000000077mm", pcbY: "2.8657550000000356mm", width: "0.3430016mm", height: "1.7314926000000002mm", shape: "rect" }), jsxRuntime.jsx("silkscreenpath", { route: [{ "x": -2.5761949999999842, "y": -1.7712690000000748 }, { "x": -2.5761949999999842, "y": 1.771523000000002 }, { "x": 2.5761949999999842, "y": 1.771523000000002 }, { "x": 2.5761949999999842, "y": -1.7712690000000748 }, { "x": -2.5761949999999842, "y": -1.7712690000000748 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=534f03d8fe164fbab551f91e5a792e30&pn=C544801",
            rotationOffset: { x: 90, y: 270, z: 90 },
            positionOffset: { x: -914.4617982, y: 685.505233, z: 4.531501299999934 },
        } }, props)));
};

function AdafruitDRV8833Breakout() {
    return (jsxRuntime.jsxs("board", { width: "35.56mm", height: "50.80mm", schAutoLayoutEnabled: true, autorouter: "auto_jumper", children: [jsxRuntime.jsx("chip", { name: "JP5", footprint: "pinrow8", pcbX: -12.7, pcbY: 0, pcbRotation: 270, schX: -9, schY: 0.3, schWidth: 1, schHeight: 3, schPortArrangement: {
                    rightSide: {
                        pins: [1, 2, 3, 4, 5, 6, 7, 8],
                        direction: "top-to-bottom",
                    },
                }, pinLabels: {
                    1: "VMOTOR",
                    2: "GND",
                    3: "nFAULT",
                    4: "BIN1",
                    5: "BIN2",
                    6: "nSLEEP",
                    7: "AIN1",
                    8: "AIN2",
                } }), jsxRuntime.jsx("chip", { name: "JP2", footprint: "pinrow2", pcbX: 12.7, pcbY: -10.16, pcbRotation: 270, schX: 10, schY: 1, schWidth: 1.4, schHeight: 1.4, schPortArrangement: {
                    leftSide: {
                        pins: [1, 2],
                        direction: "top-to-bottom",
                    },
                }, pinLabels: {
                    1: "AOUT2",
                    2: "AOUT1",
                } }), jsxRuntime.jsx("chip", { name: "JP3", footprint: "pinrow2", pcbX: 12.7, pcbY: 0, pcbRotation: 270, schX: 10, schY: -1, schWidth: 1.4, schHeight: 1.4, schPortArrangement: {
                    leftSide: {
                        pins: [1, 2],
                        direction: "top-to-bottom",
                    },
                }, pinLabels: {
                    1: "BOUT1",
                    2: "BOUT2",
                } }), jsxRuntime.jsx("chip", { name: "JP4", footprint: "pinrow2", pcbX: 12.7, pcbY: 10.16, pcbRotation: 90, schX: -6, schY: -2, schWidth: 1, schHeight: 1, schPortArrangement: {
                    leftSide: {
                        pins: [1, 2],
                        direction: "top-to-bottom",
                    },
                }, pinLabels: {
                    1: "ASEN",
                    2: "BSEN",
                } }), jsxRuntime.jsx("chip", { name: "J1", footprint: "pinrow2", pcbX: 1.016, pcbY: 17.78, pcbRotation: 180, schX: 2, schY: -4.5, schWidth: 1, schHeight: 1, schPortArrangement: {
                    leftSide: {
                        pins: [1, 2],
                        direction: "top-to-bottom",
                    },
                }, pinLabels: {
                    1: "VMOTORIN",
                    2: "GND",
                } }), jsxRuntime.jsx("chip", { name: "Q1", footprint: "kicad:Package_TO_SOT_SMD/SOT-23", pcbX: 5.08, pcbY: 7.366, pcbRotation: 90, schX: 0, schY: -3.5, pinLabels: {
                    1: "G",
                    2: "S",
                    3: "D",
                } }), jsxRuntime.jsx(DRV8833PWR, { name: "U1", pcbX: 0.508, pcbY: -4.572, pcbRotation: 90, schX: 0, schY: 0, schWidth: 2.5, schHeight: 5, schPinSpacing: 0.5, schPortArrangement: {
                    leftSide: {
                        pins: [13, 10, 9, 15, 16, 1],
                        direction: "bottom-to-top",
                    },
                    rightSide: {
                        pins: [6, 3, 14, 8, 5, 7, 4, 2, 11, 12],
                        direction: "bottom-to-top",
                    },
                } }), jsxRuntime.jsx("capacitor", { name: "C1", capacitance: "10uF", footprint: "0805", pcbX: -8.382, pcbY: 21.082, pcbRotation: 90, schX: -4, schY: -4.5, schRotation: 270 }), jsxRuntime.jsx("capacitor", { name: "C4", capacitance: "10uF", footprint: "0805", pcbX: -1.27, pcbY: 7.112, pcbRotation: 270, schX: -2, schY: -4.5, schRotation: 270 }), jsxRuntime.jsx("capacitor", { name: "C2", capacitance: "10uF", footprint: "0805", pcbX: -4.318, pcbY: -12.446, pcbRotation: 0, schX: 8, schY: -2.5, schRotation: 270 }), jsxRuntime.jsx("capacitor", { name: "C3", capacitance: "0.1uF", footprint: "0805", pcbX: -5.08, pcbY: 7.112, pcbRotation: 270, schX: 4, schY: 1.4, schRotation: 90 }), jsxRuntime.jsx("resistor", { name: "R1", resistance: "0.2ohm", footprint: "1206", pcbX: -1.016, pcbY: -17.018, pcbRotation: 0, schX: 6, schY: -2.5, schRotation: 270 }), jsxRuntime.jsx("resistor", { name: "R2", resistance: "0.2ohm", footprint: "1206", pcbX: -1.016, pcbY: -21.844, pcbRotation: 0, schX: 7, schY: -2.5, schRotation: 270 }), jsxRuntime.jsx("solderjumper", { name: "SJ1", pcbX: -1.016, pcbY: -21.844, pcbRotation: 180, schX: 5, schY: -2.5, schRotation: 270 }), jsxRuntime.jsx("solderjumper", { name: "SJ2", pcbX: -1.016, pcbY: -17.018, pcbRotation: 180, schX: 4, schY: -2.5, schRotation: 270 }), jsxRuntime.jsx("hole", { name: "U$13", diameter: 2.5, pcbX: 14.48, pcbY: 22 }), jsxRuntime.jsx("hole", { name: "U$14", diameter: 2.5, pcbX: 14.48, pcbY: -22 }), jsxRuntime.jsx("trace", { from: ".JP5 > .GND", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".J1 > .GND", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".U1 > .GND", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".Q1 > .G", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".C1 > .neg", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".C4 > .neg", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".C2 > .neg", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".R1 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".R2 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".SJ1 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".SJ2 > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".U1 > .VM", to: "net.VMOTOR" }), jsxRuntime.jsx("trace", { from: ".JP5 > .VMOTOR", to: "net.VMOTOR" }), jsxRuntime.jsx("trace", { from: ".Q1 > .S", to: "net.VMOTOR" }), jsxRuntime.jsx("trace", { from: ".C1 > .pos", to: "net.VMOTOR" }), jsxRuntime.jsx("trace", { from: ".C4 > .pos", to: "net.VMOTOR" }), jsxRuntime.jsx("trace", { from: ".C3 > .pos", to: "net.VMOTOR" }), jsxRuntime.jsx("trace", { from: ".J1 > .VMOTORIN", to: ".Q1 > .D" }), jsxRuntime.jsx("trace", { from: ".U1 > .VCP", to: ".C3 > .neg" }), jsxRuntime.jsx("trace", { from: ".U1 > .VINT", to: ".C2 > .pos" }), jsxRuntime.jsx("trace", { from: ".JP5 > .AIN1", to: ".U1 > .AIN1" }), jsxRuntime.jsx("trace", { from: ".JP5 > .AIN2", to: ".U1 > .AIN2" }), jsxRuntime.jsx("trace", { from: ".JP5 > .BIN1", to: ".U1 > .BIN1" }), jsxRuntime.jsx("trace", { from: ".JP5 > .BIN2", to: ".U1 > .BIN2" }), jsxRuntime.jsx("trace", { from: ".JP5 > .nSLEEP", to: ".U1 > .nSleep" }), jsxRuntime.jsx("trace", { from: ".JP5 > .nFAULT", to: ".U1 > .nFault" }), jsxRuntime.jsx("trace", { from: ".JP2 > .AOUT2", to: ".U1 > .AOUT1" }), jsxRuntime.jsx("trace", { from: ".JP2 > .AOUT1", to: ".U1 > .AOUT2" }), jsxRuntime.jsx("trace", { from: ".JP3 > .BOUT1", to: ".U1 > .BOUT1" }), jsxRuntime.jsx("trace", { from: ".JP3 > .BOUT2", to: ".U1 > .BOUT2" }), jsxRuntime.jsx("trace", { from: ".U1 > .AISEN", to: "net.ASEN" }), jsxRuntime.jsx("trace", { from: ".U1 > .BISEN", to: "net.BSEN" }), jsxRuntime.jsx("trace", { from: ".R1 > .pin1", to: "net.BSEN" }), jsxRuntime.jsx("trace", { from: ".R2 > .pin1", to: "net.ASEN" }), jsxRuntime.jsx("trace", { from: ".SJ1 > .pin1", to: "net.ASEN" }), jsxRuntime.jsx("trace", { from: ".SJ2 > .pin1", to: "net.BSEN" }), jsxRuntime.jsx("trace", { from: ".JP4 > .ASEN", to: "net.ASEN" }), jsxRuntime.jsx("trace", { from: ".JP4 > .BSEN", to: "net.BSEN" })] }));
}

module.exports = AdafruitDRV8833Breakout;