feat: add TI INA219 current/power monitor package#442
Open
laurapiro17 wants to merge 1 commit intoatopile:mainfrom
Open
feat: add TI INA219 current/power monitor package#442laurapiro17 wants to merge 1 commit intoatopile:mainfrom
laurapiro17 wants to merge 1 commit intoatopile:mainfrom
Conversation
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
2016e07 to
8da6d4a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a driver package for the Texas Instruments INA219BIDR — a widely used 26V, 12-bit I²C current and power monitor.
TI_INA219module with parametricmax_currentand auto-sized shunt resistorcan_bridge_by_nametrait for inline high-side power path insertionusage.atoexample with a 5V rail monitored from a 3.3V supplyato buildpasses on bothdefaultandusagetargetsMotivation
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 buildpasses with 0 errors ondefaulttargetato buildpasses with 0 errors onusagetarget