Using the tscircuit TI Library
Overview
The @tsci/tscircuit.ti package exports:
- chip components such as
BQ24074,INA237, andTPS22919 - functional modules such as
BatteryManagement_BQ24074,LoadSwitch_TPS22919, andPowerMonitor_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>
)
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>
)
In this example:
INandONare tied toVINOUTdrives the external load resistorGNDis tied to groundNCandQODare 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>
)
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.