I²C Current Sensor Board INA219

Last Updated on 18. October 2026 by SuffocationLink status: OK

Der INA219 misst den Strom eines Verbrauchers und kann per I2C Bus ausgelesen werden. Ich habe diesen mal an einen ESP32 gehängt und versucht, ihm ein paar Daten zu entlocken.

Facts

INA219 Strom-/Leistungssensor-Modul (I²C)
MessgrößeStrom, Spannung, Leistung
MessprinzipSpannungsabfall über Shunt-Widerstand 0,1 Ω (High-Side)
Sensor-BausteinINA219A (Texas Instruments)
MessbereichStrom ±3,2 A; Busspannung 0–26 V
Accuracy±1 % (INA219A, max. über −25 bis 85 °C; ±0,5 % max. bei 25 °C)
Operating voltage3–5 V
Stromaufnahmemax. 1 mA (Chip)
SchnittstellenI²C, Adresse 0x40 (Auslieferung), per Lötbrücken A0/A1 auch 0x41, 0x44, 0x45
Abmessungen25,2 × 22,2 mm
Description12-Bit-ADC, Auflösung 0,8 mA im Bereich ±3,2 A
A0A1Address
openopen0x40 (delivery state)
closedopen0x41
openclosed0x44
closedclosed0x45
Adresswahl, Quelle: https://wolles-elektronikkiste.de/ina219

Areas of application

  • Measure power consumption
  • Bestimmung der Restlaufzeit von Batterien

Views

Programming

Wiring

Spanish

Arduino

Connection to the Arduino, source: https://wolles-elektronikkiste.de/ina219Link status: OK

Libraries

Hier ein paar Links zu Bibliotheken:

https://github.com/adafruit/Adafruit_INA219Link status: OK

https://github.com/RobTillaart/INA219Link status: OK

https://github.com/wollewald/INA219_WELink status: OK

Ich habe für meine Tests die Adafruit Lib verwendet. Diese kann entweder über das Zip von Github oder über den Bibliothekar installiert werden.

Arduino Gui 2- Installation Adafruit INA219 über Bibliothekar

Attention es gibt Abhängigkeiten, die mit installiert werden müssen:

  • – Adafruit BusIO
  • – Adafruit GFX Library
  • – Adafruit NeoPixel
  • – Adafruit SSD1306

Die GFX Lib kann ich mir noch vorstellen, bei den anderen wüsste ich nicht, welche Abhängigkeiten bestehen sollten, habe sie aber sicherheitshalber mal mit installiert.

Test programme

Mein Testprogramm ist auf Git zu finden, es entspricht im Großen und Ganzen dem Beispielprogramm.

https://github.com/sfambach/sensors/blob/master/INA219/src/INA219_ESP32_TEST/INA219_ESP32_TEST.inoLink status: OK

This is what it looks like:

Steckbrettaufbau für INA219 mit ESP32 Node MCU
Serieller Monitor: Ausgabe des Testprogramms

Problems

I2C findet den Sensor nicht

Sometimes swap the data and time cables, or try with the I2C Test ProgramLink status: OK schauen, evtl. habt ihr ja eine andere Adresse. Achtet beim ESP darauf, welche Pins ihr verwendet habt.

Miscellaneous

Fritzing part

https://github.com/adafruit/Fritzing-Library/blob/6e7cef636e276699652a9fcb8b7384e1f6e868f3/parts/retired/INA219%20DC%20Current%20Sensor%20Breakout.fzpzLink status: OK

Conclusion

Leicht einzubindender Sensor, um Strom zu messen. Sein Vorteil ist die Kommunikation über I²C. Er wird nicht wie andere Sensoren über einen ADC am Microcontroller selbst abgefragt. Der Preis liegt so zwischen 3 und 4€ bei den Amazonen und noch billiger beim schnellen Ali. Auch können bis zu 4 Sensoren (Einstellung der Adresse beachten) parallel betrieben werden.

Related Posts

Sources

Data sheetLink status: OK

https://wolles-elektronikkiste.de/ina219Link status: OK (Recommended, good description with example)

https://github.com/adafruit/Adafruit_INA219Link status: OK

https://github.com/RobTillaart/INA219Link status: OK

https://github.com/wollewald/INA219_WELink status: OK

https://botland.de/stromsensoren/19255-bidirektionaler-strom-leistungssensor-ina219-26v-32a-stemma-at-qwiic-adafruit-904-5904422379377.htmlLink status: OK

DateChangeAuthor
19.10.2026Fakten-Tabelle durch Datenblock aus dem Modell ersetztSuffocation
08.10.2026Überschriften-Hierarchie korrigiert (H1→H2, Unterebenen eine Stufe tiefer)Suffocation
04.10.2026Rechtschreibung korrigiert: Tippfehler, Kommas, Groß-/Kleinschreibung, GrammatikSuffocation
03.10.2026Log-Liste eingefügtSuffocation
29.01.2024Post createdSuffocation
Changelog

1 thought on “I²C Strom Sensor Board INA219”

  1. Even a small load should under no circumstances be connected via the pin header. The trace widths here are quite thin and only reach the INA219 and then the load resistor, with a few milliohms of resistance in between. This results in excessively high readings (I ended up with a reading of around 20% too high).

Leave a Reply

Your email address will not be published. Required fields are marked *