aj0070/servo-controller

16-channel PCA9685 I²C PWM servo controller board with adjustable address jumpers, protected external servo power input, MOSFET switching, bulk decoupling, and 16 three-pin servo headers.

Version
1.0.0
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone aj0070/servo-controller  # download the package files into ./servo-controller
tsci add aj0070/servo-controller    # add it to your project as @tsci/aj0070.servo-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/PCA9685PW_118.tsx

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

const pinLabels = {
  pin1: ["A0"],
  pin2: ["A1"],
  pin3: ["A2"],
  pin4: ["A3"],
  pin5: ["A4"],
  pin6: ["LED0"],
  pin7: ["LED1"],
  pin8: ["LED2"],
  pin9: ["LED3"],
  pin10: ["LED4"],
  pin11: ["LED5"],
  pin12: ["LED6"],
  pin13: ["LED7"],
  pin14: ["VSS"],
  pin15: ["LED8"],
  pin16: ["LED9"],
  pin17: ["LED10"],
  pin18: ["LED11"],
  pin19: ["LED12"],
  pin20: ["LED13"],
  pin21: ["LED14"],
  pin22: ["LED15"],
  pin23: ["N_OE"],
  pin24: ["A5"],
  pin25: ["EXTCLK"],
  pin26: ["SCL"],
  pin27: ["SDA"],
  pin28: ["VDD"]
} as const

const pinAttributes = {
  pin14: {requiresGround: true},
  pin28: {requiresPower: true}
} as const

export const PCA9685PW_118 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C2678753"
  ]
}}
      manufacturerPartNumber="PCA9685PW,118"
      footprint="tssop28_p0.65mm_w4.5964mm_pw0.4064mm_pl1.8034mm_rounded0.2032mm"
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2678753.obj?uuid=f7dbdf008a9445baa985eb4ff1776a2b",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2678753.step?uuid=f7dbdf008a9445baa985eb4ff1776a2b",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0.00002539999998418807, y: 0.000012700000013410317, z: -0.019205 },
      }}
      {...props}
    />
  )
}