imrishabh18/TB6612FNG
Generated from JLCPCB part number C141517
Usage: To import and use the TB6612FNG Motor Driver component in a tscircuit project: ```tsx import { MotorDriver, useMotorDriver } from "@tsci/imrishabh18.TB6612FNG" export default () => ( <board width="20mm" height="20mm"> <MotorDriver name="U1" /> {/* Optional: Access specific pins using sel */} <trace from={sel.U1.VCC} to="net.VCC" /> <trace from={sel.U1.GND} to="net.GND" /> </board> ) ``` Key component details: - 24-pin motor driver chip - Supports two motor channels - Pins include VCC, GND, PWM control, motor outputs - SOIC footprint - LCSC part number: C141517
- Version
- 0.1.0
- License
- unset
- Stars
- 0
dist/index.esm.js
PCB
import { createUseComponent } from '@tscircuit/core';
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const pinLabels = {
pin1: ["pin1", "AO11"],
pin2: ["pin2", "AO12"],
pin3: ["pin3", "PGND11"],
pin4: ["pin4", "PGND12"],
pin5: ["pin5", "AO21"],
pin6: ["pin6", "AO22"],
pin7: ["pin7", "BO21"],
pin8: ["pin8", "BO22"],
pin9: ["pin9", "PGND21"],
pin10: ["pin10", "PGND22"],
pin11: ["pin11", "BO11"],
pin12: ["pin12", "BO12"],
pin13: ["pin13", "VM2"],
pin14: ["pin14", "VM3"],
pin15: ["pin15", "PWMB"],
pin16: ["pin16", "BIN2"],
pin17: ["pin17", "BIN1"],
pin18: ["pin18", "GND"],
pin19: ["pin19", "STBY"],
pin20: ["pin20", "VCC"],
pin21: ["pin21", "AIN1"],
pin22: ["pin22", "AIN2"],
pin23: ["pin23", "PWMA"],
pin24: ["pin24", "VM1"]
};
const MotorDriver = props => {
return /*#__PURE__*/React.createElement("chip", _extends({}, props, {
cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=9fcdeaf10ae24c4a8aa0d28b1d82c96d&pn=C141517",
rotationOffset: {
x: 0,
y: 0,
z: 0
},
positionOffset: {
x: 0,
y: 0,
z: 0
}
},
pinLabels: pinLabels,
supplierPartNumbers: {
lcsc: ["C141517"]
},
pcbRotation: "90deg",
footprint: /*#__PURE__*/React.createElement("footprint", null, /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin1"],
pcbX: "-3.575050000000033mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin2"],
pcbX: "-2.925064000000134mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin3"],
pcbX: "-2.2750780000000077mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin4"],
pcbX: "-1.6250920000001088mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin5"],
pcbX: "-0.9751059999999825mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin6"],
pcbX: "-0.32486600000004273mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin7"],
pcbX: "0.32512000000008356mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin8"],
pcbX: "0.9751059999999825mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin9"],
pcbX: "1.625091999999995mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin10"],
pcbX: "2.2750780000000077mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin11"],
pcbX: "2.9250640000000203mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin12"],
pcbX: "3.5750499999999192mm",
pcbY: "-3.562095999999883mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin24"],
pcbX: "-3.575050000000033mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin23"],
pcbX: "-2.925064000000134mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin22"],
pcbX: "-2.2750780000000077mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin21"],
pcbX: "-1.6250920000001088mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin20"],
pcbX: "-0.9751059999999825mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin19"],
pcbX: "-0.32486600000004273mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin18"],
pcbX: "0.32512000000008356mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin17"],
pcbX: "0.9751059999999825mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin16"],
pcbX: "1.625091999999995mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin15"],
pcbX: "2.2750780000000077mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin14"],
pcbX: "2.9250640000000203mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("smtpad", {
portHints: ["pin13"],
pcbX: "3.5750499999999192mm",
pcbY: "3.562095999999997mm",
width: "0.30800039999999995mm",
height: "1.3240004mm",
shape: "rect"
}), /*#__PURE__*/React.createElement("silkscreenpath", {
route: [{
x: -4.064000000000078,
y: 2.6669999999999163
}, {
x: -4.064000000000078,
y: -2.66700000000003
}, {
x: 3.936999999999898,
y: -2.66700000000003
}, {
x: 3.936999999999898,
y: 2.6669999999999163
}, {
x: -4.064000000000078,
y: 2.6669999999999163
}]
}))
}));
};
const useMotorDriver = createUseComponent(MotorDriver, pinLabels);
export { MotorDriver, useMotorDriver };