Skip to content

feat: add TI INA219 current/power monitor package#442

Open
laurapiro17 wants to merge 1 commit intoatopile:mainfrom
laurapiro17:feat/ti-ina219
Open

feat: add TI INA219 current/power monitor package#442
laurapiro17 wants to merge 1 commit intoatopile:mainfrom
laurapiro17:feat/ti-ina219

Conversation

@laurapiro17
Copy link
Copy Markdown

@laurapiro17 laurapiro17 commented Mar 30, 2026

Summary

Adds a driver package for the Texas Instruments INA219BIDR — a widely used 26V, 12-bit I²C current and power monitor.

  • Auto-generated KiCad footprint/symbol/3D model from LCSC C2155799
  • TI_INA219 module with parametric max_current and auto-sized shunt resistor
  • can_bridge_by_name trait for inline high-side power path insertion
  • 4 selectable I²C addresses (0x40, 0x41, 0x44, 0x45) via A0/A1 pins
  • Includes I²C pull-up resistors and decoupling capacitor
  • usage.ato example with a 5V rail monitored from a 3.3V supply
  • Build verified: ato build passes on both default and usage targets

Motivation

The INA219 is one of the most popular current/power monitoring ICs in the maker and embedded community (Adafruit, SparkFun, Arduino, RPi projects) and was missing from the atopile package registry. This fills that gap alongside the existing ti-ina228 (higher-end 20-bit variant).

Test plan

  • ato build passes with 0 errors on default target
  • ato build passes with 0 errors on usage target
  • Part auto-generated from EasyEDA/LCSC C2155799
  • KiCad symbol, footprint, and 3D model included
  • Shunt resistor sizing validated via parametric assertions

Adds driver for the Texas Instruments INA219BIDR — a popular 26V,
12-bit I2C current and power monitor used in battery management,
solar chargers, and embedded power monitoring.

- LCSC part C2155799 with auto-generated KiCad footprint/symbol
- Configurable shunt resistor with parametric max_current assertion
- Inline bridge trait for drop-in power path monitoring
- 4 selectable I2C addresses (0x40/0x41/0x44/0x45) via A0/A1 pins
- Includes decoupling cap and I2C pull-ups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant