Skip to main content
Importing Modules and Chips

Using the tscircuit TI Library

Overview

The @tsci/tscircuit.ti package exports:

  • chip components such as BQ24074, INA237, and TPS22919
  • functional modules such as BatteryManagement_BQ24074, LoadSwitch_TPS22919, and PowerMonitor_INA237

Use a chip when you want to wire the part yourself. Use a functional module when you want a prebuilt TI reference design.

Install

bun add @tsci/tscircuit.ti

Import a Chip

import { BQ24074 } from "@tsci/tscircuit.ti";

If you want a specific package, import that package name directly:

import { BQ24074RGTR } from "@tsci/tscircuit.ti";

Some chip families also support footprintVariant:

import { BQ24074 } from "@tsci/tscircuit.ti";

export default () => <BQ24074 name="U1" footprintVariant="vqfn_16_ep_3x3" />;

Place a Chip

import { TPS22919 } from "@tsci/tscircuit.ti"

export default () => (
<board width="18mm" height="14mm">
<TPS22919 name="U1" />
</board>
)
Schematic Circuit Preview

Wire a Chip

import { TPS22919 } from "@tsci/tscircuit.ti"

export default () => (
<board width="24mm" height="16mm">
<TPS22919
name="U1"
noConnect={["NC", "QOD"]}
connections={{
IN: "net.VIN",
GND: "net.GND",
ON: "net.VIN",
OUT: ".R_LOAD > .pin1",
}}
/>

<resistor
name="R_LOAD"
resistance="1k"
footprint="0402"
connections={{ pin2: "net.GND" }}
/>
</board>
)
Schematic Circuit Preview

In this example:

  • IN and ON are tied to VIN
  • OUT drives the external load resistor
  • GND is tied to ground
  • NC and QOD are intentionally left unconnected

Use a Functional Module

import { LoadSwitch_TPS22919 } from "@tsci/tscircuit.ti"

export default () => (
<board width="24mm" height="16mm">
<LoadSwitch_TPS22919 name="POWER_SWITCH" />
</board>
)
Schematic Circuit Preview

If you want a more complete reference design, use one of the functional module exports instead of wiring the chip from scratch.

Available Chips

  • Battery and power: BQ24074, BQ25895, BQ27441G1, TPS22919, TPS6293, TPS63802, TPS7A02, TPSM82823
  • Wireless and MCU: CC2340R5, CC3235SF, MSPM0G3507
  • Sensors and monitors: HDC2080, HDC3020, HDC3022, INA237, TMP1075
  • Motor drivers: DRV8833, DRV8876

Exact package exports include BQ24074RGTR, BQ25895RTWR, BQ27441DRZR_G1B, INA237AQDGSRQ1, TMP1075DSGR, TPS63802DLAR, and TPS7A0230PDBVR.