imrishabh18/motor-driver-breakout
"A 30x30mm TB6612FNG motor driver board with dual 8-pin headers and bypass capacitors for motor control and power regulation" This summary captures the key physical characteristics: - Uses TB6612FNG motor driver chip - 30x30mm board size - Dual 8-pin headers (JP1 and JP2) - Includes decoupling capacitors (C1, C2, C3) - Purpose is motor control and power management
Usage: Based on the provided code, here's a concise guide to importing and using the motor driver breakout component: 1. Import the component: ```tsx import MotorDriverBreakout from "@tsci/imrishabh18.motor-driver-breakout" ``` 2. Use the component in a board layout: ```tsx <board width="30mm" height="30mm"> <MotorDriverBreakout /> {/* Other components and traces can be added as needed */} </board> ``` Key points: - The component includes a motor driver, pin headers, and supporting capacitors - It has predefined traces and component placements - Optional manual edits can be included via a `manualEdits` prop - The component uses an autorouter for trace routing
- Version
- 0.0.1
- License
- MIT
- Stars
- 5
dist/index.cjs
PCB
Schematic
'use strict';
var jsxRuntime = require('react/jsx-runtime');
var imrishabh18_TB6612FNG = require('@tsci/imrishabh18.TB6612FNG');
var pcb_placements = [
{
selector: "C3",
center: {
x: 1,
y: 5.225806451612904
},
relative_to: "group_center",
_edit_event_id: "0.8257349681150397"
},
{
selector: "C1",
center: {
x: -1.3225806451612883,
y: 5.225806451612902
},
relative_to: "group_center",
_edit_event_id: "0.23677774255304196"
},
{
selector: "C2",
center: {
x: -0.03225806451613167,
y: 7.806451612903226
},
relative_to: "group_center",
_edit_event_id: "0.7735206084238306"
}
];
var edit_events = [
];
var manual_trace_hints = [
];
var manaulEdits = {
pcb_placements: pcb_placements,
edit_events: edit_events,
manual_trace_hints: manual_trace_hints
};
var index = () => {
return (jsxRuntime.jsxs("board", { width: "25mm", height: "25mm", autorouter: "auto-cloud", manualEdits: manaulEdits, children: [jsxRuntime.jsx(imrishabh18_TB6612FNG.TB6612FNG_C_8_EL, { name: "M1" }), jsxRuntime.jsx("pinheader", { name: "JP1", pinCount: 8, pcbX: -9, pcbRotation: 90, schX: -4, footprint: "pinrow8" }), jsxRuntime.jsx("pinheader", { name: "JP2", pinCount: 8, pcbX: 9, pcbRotation: 90, schX: 4, schRotation: 180, footprint: "pinrow8", facingDirection: "left" }), jsxRuntime.jsx("capacitor", { name: "C1", capacitance: "0.1uF", pcbX: -7, pcbY: 8, schX: -2.5, schY: 3, footprint: "0402", schRotation: 90 }), jsxRuntime.jsx("capacitor", { name: "C3", capacitance: "10uF", pcbX: -5, pcbY: 8, schX: -1, schY: 3, footprint: "0402", schRotation: 90 }), jsxRuntime.jsx("capacitor", { name: "C2", capacitance: "0.1uF", pcbX: 5, pcbY: 8, schX: 2.5, schY: 3, footprint: "0402", schRotation: 90 }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin8", to: ".C1 > .neg" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin8", to: ".C3 > .pos" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin8", to: ".M1 > .pin24" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin8", to: ".M1 > .pin14" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin7", to: "net.VCC" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin6", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin5", to: ".M1 > .pin1" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin5", to: ".M1 > .pin2" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin4", to: ".M1 > .pin5" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin4", to: ".M1 > .pin6" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin3", to: ".M1 > .pin7" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin3", to: ".M1 > .pin8" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin2", to: ".M1 > .pin11" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin2", to: ".M1 > .pin12" }), jsxRuntime.jsx("trace", { from: ".JP1 > .pin1", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".JP2 > .pin8", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".JP2 > .pin7", to: ".M1 > .pin15" }), jsxRuntime.jsx("trace", { from: ".JP2 > .pin6", to: ".M1 > .pin16" }), jsxRuntime.jsx("trace", { from: ".JP2 > .pin5", to: ".M1 > .pin17" }), jsxRuntime.jsx("trace", { from: ".JP2 > .pin4", to: ".M1 > .pin19" }), jsxRuntime.jsx("trace", { from: ".JP2 > .pin3", to: ".M1 > .pin21" }), jsxRuntime.jsx("trace", { from: ".JP2 > .pin2", to: ".M1 > .pin22" }), jsxRuntime.jsx("trace", { from: ".JP2 > .pin1", to: ".M1 > .pin23" }), jsxRuntime.jsx("trace", { from: ".C1 > .pos", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".C3 > .neg", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".C1 > .neg", to: ".M1 > .pin24" }), jsxRuntime.jsx("trace", { from: ".C3 > .pos", to: ".M1 > .pin24" }), jsxRuntime.jsx("trace", { from: ".C1 > .neg", to: ".M1 > .pin14" }), jsxRuntime.jsx("trace", { from: ".C3 > .pos", to: ".M1 > .pin14" }), jsxRuntime.jsx("trace", { from: ".C1 > .neg", to: ".M1 > .pin13" }), jsxRuntime.jsx("trace", { from: ".C3 > .pos", to: ".M1 > .pin13" }), jsxRuntime.jsx("trace", { from: ".C2 > .pos", to: "net.VCC" }), jsxRuntime.jsx("trace", { from: ".C2 > .neg", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".M1 > .pin18", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".M1 > .pin20", to: "net.VCC" }), jsxRuntime.jsx("trace", { from: ".M1 > .pin3", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".M1 > .pin4", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".M1 > .pin9", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".M1 > .pin10", to: "net.GND" })] }));
};
module.exports = index;