mohan-bee/gimbal-one-budget-pcb
A 4-layer STM32-based gimbal controller PCB with an onboard LSM6DS3TR-C IMU, three DRV8313 3-phase motor drivers, protected 3S battery input, 3.3 V buck regulation, and SWD/UART control interfaces.
- Version
- 0.1.0
- License
- unset
- Stars
- 0
imports/DRV8313PWPR.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["CP1"],
pin2: ["CP2"],
pin3: ["VCP"],
pin4: ["VM1"],
pin5: ["OUT1"],
pin6: ["PGND1"],
pin7: ["PGND2"],
pin8: ["OUT2"],
pin9: ["OUT3"],
pin10: ["PGND3"],
pin11: ["VM2"],
pin12: ["COMPP"],
pin13: ["COMPN"],
pin14: ["GND1"],
pin15: ["V3P3OUT"],
pin16: ["N_RESET"],
pin17: ["N_SLEEP"],
pin18: ["N_FAULT"],
pin19: ["N_COMPO"],
pin20: ["GND3"],
pin21: ["NC"],
pin22: ["EN3"],
pin23: ["IN3"],
pin24: ["EN2"],
pin25: ["IN2"],
pin26: ["EN1"],
pin27: ["IN1"],
pin28: ["GND2"],
pin29: ["EP"]
} as const
const pinAttributes = {
pin4: {requiresPower:true,mustBeConnected:true},
pin11: {requiresPower:true,mustBeConnected:true},
pin29: {requiresGround:true,mustBeConnected:true},
pin6: {requiresGround: true},
pin7: {requiresGround: true},
pin10: {requiresGround: true},
pin14: {requiresGround: true},
pin20: {requiresGround: true},
pin21: {doNotConnect: true},
pin28: {requiresGround: true}
} as const
export const DRV8313PWPR = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C92482"
]
}}
manufacturerPartNumber="DRV8313PWPR"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-4.225036mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-3.57505mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="-2.925064mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="-2.275078mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="-1.625092mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="-0.975106mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="-0.324866mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="0.32512mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin9"]} pcbX="0.975106mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin10"]} pcbX="1.625092mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin11"]} pcbX="2.275078mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin12"]} pcbX="2.925064mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin13"]} pcbX="3.57505mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin14"]} pcbX="4.225036mm" pcbY="-2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin28"]} pcbX="-4.225036mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin27"]} pcbX="-3.57505mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin26"]} pcbX="-2.925064mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin25"]} pcbX="-2.275078mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin24"]} pcbX="-1.625092mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin23"]} pcbX="-0.975106mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin22"]} pcbX="-0.324866mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin21"]} pcbX="0.32512mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin20"]} pcbX="0.975106mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin19"]} pcbX="1.625092mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin18"]} pcbX="2.275078mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin17"]} pcbX="2.925064mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin16"]} pcbX="3.57505mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin15"]} pcbX="4.225036mm" pcbY="2.865755mm" width="0.3430016mm" height="1.7314926mm" radius="0.1715008mm" shape="pill" />
<smtpad portHints={["pin29"]} pcbX="0mm" pcbY="0.000127mm" width="6.1999876mm" height="2.7500072mm" shape="rect" />
<via connectsTo="net.GND" tented="bottom_tented" pcbX="-1.49987mm" pcbY="-0.499999mm" outerDiameter="0.5999988mm" holeDiameter="0.3000248mm" layers={["top","bottom"]} />
<via connectsTo="net.GND" tented="bottom_tented" pcbX="-1.49987mm" pcbY="0.499999mm" outerDiameter="0.5999988mm" holeDiameter="0.3000248mm" layers={["top","bottom"]} />
<via connectsTo="net.GND" tented="bottom_tented" pcbX="-0.499872mm" pcbY="-0.499999mm" outerDiameter="0.5999988mm" holeDiameter="0.3000248mm" layers={["top","bottom"]} />
<via connectsTo="net.GND" tented="bottom_tented" pcbX="-0.499872mm" pcbY="0.499999mm" outerDiameter="0.5999988mm" holeDiameter="0.3000248mm" layers={["top","bottom"]} />
<via connectsTo="net.GND" tented="bottom_tented" pcbX="0.500126mm" pcbY="-0.499999mm" outerDiameter="0.5999988mm" holeDiameter="0.3000248mm" layers={["top","bottom"]} />
<via connectsTo="net.GND" tented="bottom_tented" pcbX="0.500126mm" pcbY="0.499999mm" outerDiameter="0.5999988mm" holeDiameter="0.3000248mm" layers={["top","bottom"]} />
<via connectsTo="net.GND" tented="bottom_tented" pcbX="1.500124mm" pcbY="-0.499999mm" outerDiameter="0.5999988mm" holeDiameter="0.3000248mm" layers={["top","bottom"]} />
<via connectsTo="net.GND" tented="bottom_tented" pcbX="1.500124mm" pcbY="0.499999mm" outerDiameter="0.5999988mm" holeDiameter="0.3000248mm" layers={["top","bottom"]} />
<silkscreenpath route={[{"x":-4.926202999999987,"y":-1.7712690000000748},{"x":-4.926202999999987,"y":1.771523000000002},{"x":4.926202999999987,"y":1.771523000000002},{"x":4.926202999999987,"y":-1.7712690000000748},{"x":-4.926202999999987,"y":-1.7712690000000748}]} />
<silkscreencircle pcbX="-4.225036mm" pcbY="-1.018921mm" radius="0.150114mm" />
<silkscreencircle pcbX="-4.84886mm" pcbY="-2.865755mm" radius="0.150114mm" />
<silkscreentext text="{NAME}" pcbX="-0.0381mm" pcbY="4.556127mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-5.100003000000015,"y":3.981501299999991},{"x":5.099977599999875,"y":3.981501299999991},{"x":5.099977599999875,"y":-3.981501299999877},{"x":-5.100003000000015,"y":-3.981501299999877},{"x":-5.100003000000015,"y":3.981501299999991}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C92482.obj?uuid=603ce2f10bc24a989fe2e044363fae3c",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C92482.step?uuid=603ce2f10bc24a989fe2e044363fae3c",
pcbRotationOffset: 90,
modelOriginPosition: { x: -0.00012700000002041634, y: -0.000012700000070253736, z: -0.099083 },
}}
{...props}
/>
)
}