MustafaMulla29/rp2040-bldc-motor-controller

Hardware assembly metadata and PCB geometry for a controller board with a snap-off rotary-encoder section, plus four parallel 150 µF/50 V bulk electrolytic capacitors filtering the motor supply.

Version
2.0.40
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone MustafaMulla29/rp2040-bldc-motor-controller  # download the package files into ./rp2040-bldc-motor-controller
tsci add MustafaMulla29/rp2040-bldc-motor-controller    # add it to your project as @tsci/MustafaMulla29.rp2040-bldc-motor-controller

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.

imports/HS13L03W2C01.tsx

import { Fragment } from "react"
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["GND"],
  pin2: ["VCC"],
  pin3: ["SCL"],
  pin4: ["SDA"]
} as const

const pinAttributes = {
  pin1: {requiresGround: true},
  pin2: {requiresPower: true}
} as const

export const HS13L03W2C01 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C7465997"
  ]
}}
      manufacturerPartNumber="HS13L03W2C01"
      footprint={<footprint>
        {[-3.81,-1.27,1.27,3.81].map((x,i) => <Fragment key={i}><platedhole portHints={[`pin${i+1}`]} shape="circle" pcbX={x} pcbY={0} holeDiameter={1} outerDiameter={1.8} /></Fragment>)}
        {[-15.2,15.2].flatMap(x => [-0.5,-29].map(y => <Fragment key={`${x},${y}`}><hole pcbX={x} pcbY={y} diameter={2.4} /></Fragment>))}
        <courtyardrect pcbX={0} pcbY={-14.75} width={36.4} height={34.5} />
        <silkscreenrect pcbX={0} pcbY={-14.75} width={35.4} height={33.5} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7465997.obj?uuid=ecbc42d7ef3b4c1d91f9dc25f7bf875e",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7465997.step?uuid=ecbc42d7ef3b4c1d91f9dc25f7bf875e",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: 14.75, z: -5 },
      }}
      {...props}
    />
  )
}