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/TMP102AIDRLR.tsx

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

const pinLabels = {
  pin1: ["SCL"],
  pin2: ["GND"],
  pin3: ["ALERT"],
  pin4: ["ADD0"],
  pin5: ["V_POS"],
  pin6: ["SDA"]
} as const

const pinAttributes = {
  pin2: {requiresGround: true, mustBeConnected: true},
  pin6: {isInput: true, isOutput: true, isBidirectional: true, capabilities: ["i2c_sda"], needsExternalPullup: true, canUseOpenDrain: true},
  pin5: {requiresPower: true, mustBeConnected: true, shouldHaveDecouplingCapacitor: true},
  pin4: {isInput: true},
  pin1: {isInput: true, capabilities: ["i2c_scl"]},
  pin3: {isOutput: true, needsExternalPullup: true, canUseOpenDrain: true}
} satisfies NonNullable<ChipProps["pinAttributes"]>

export const TMP102AIDRLR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C99269"
  ]
}}
      manufacturerPartNumber="TMP102AIDRLR"
      // TI DRL0006A land-pattern example, rotated 90° to retain the supplier
      // model's pin-1-at-bottom-left orientation: 0.67 × 0.30, 0.50 pitch.
      footprint={<footprint>
        {[[-0.5,-0.74],[0,-0.74],[0.5,-0.74],[0.5,0.74],[0,0.74],[-0.5,0.74]].map(([x,y],i)=><Fragment key={i}>
          <smtpad portHints={[`pin${i+1}`]} pcbX={x} pcbY={y} width={0.3} height={0.67} shape="rect" />
        </Fragment>)}
        <silkscreenpath route={[{x:-0.65,y:-0.4},{x:-0.65,y:0.4}]} />
        <silkscreenpath route={[{x:0.65,y:-0.4},{x:0.65,y:0.4}]} />
        <silkscreencircle pcbX={-0.85} pcbY={-0.74} radius={0.08} />
        <courtyardrect width={2.2} height={2.6} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C99269.obj?uuid=16f62fa8a78d4cfc92151eff9dc54a6e",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C99269.step?uuid=16f62fa8a78d4cfc92151eff9dc54a6e",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.0008636000002297806, y: -0.00993140000002768, z: -0.02 },
      }}
      {...props}
    />
  )
}