aj0070/bms-3s

A 3S Li-ion BMS PCB featuring a BQ76920 battery monitor/protection IC, charge/discharge MOSFETs, cell-balancing circuits, current sensing, I²C GPIO/ADC interfaces, and thermistor inputs.

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/bms-3s  # download the package files into ./bms-3s
tsci add aj0070/bms-3s    # add it to your project as @tsci/aj0070.bms-3s

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

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

const pinLabels = {
  pin1: ["DSG"],
  pin2: ["CHG"],
  pin3: ["VSS"],
  pin4: ["SDA"],
  pin5: ["SCL"],
  pin6: ["TS1"],
  pin7: ["CAP1"],
  pin8: ["REGOUT"],
  pin9: ["REGSRC"],
  pin10: ["BAT"],
  pin11: ["NC"],
  pin12: ["VC5"],
  pin13: ["VC4"],
  pin14: ["VC3"],
  pin15: ["VC2"],
  pin16: ["VC1"],
  pin17: ["VC0"],
  pin18: ["SRP"],
  pin19: ["SRN"],
  pin20: ["ALERT"]
} as const

const pinAttributes = {
  pin3: {requiresGround: true},
  pin11: {doNotConnect: true}
} as const

export const BQ7692003PWR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C601650"
  ]
}}
      manufacturerPartNumber="BQ7692003PWR"
      footprint="tssop20_p0.65mm_w3.9999mm_pw0.364mm_pl1.742mm_rounded0.182mm_pin1location(leftside,bottom)"
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C601650.obj?uuid=f8ba5b4174b9490d8c445fbe2ed40b80",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C601650.step?uuid=f8ba5b4174b9490d8c445fbe2ed40b80",
        pcbRotationOffset: 90,
        modelOriginPosition: { x: 0, y: 0.000012700000070253736, z: -0.019205 },
      }}
      {...props}
    />
  )
}