1.. _ina219: 2 3INA219 Bidirectional Power/Current Monitor 4########################################## 5 6Overview 7******** 8 9This sample application measures shunt voltage, bus voltage, power and current 10every 2 seconds and prints them to console. 11The calibration/configuration parameters can be set in the devicetree file. 12 13References 14********** 15 16 - `INA219 sensor <https://www.ti.com/product/INA219>`_ 17 18Wiring 19****** 20 21The supply voltage of the INA219 can be in the 3V to 5.5V range. 22The common mode voltage of the measured bus can be in the 0V to 26V range. 23 24Building and Running 25******************** 26 27.. zephyr-app-commands:: 28 :zephyr-app: samples/sensor/ina219 29 :board: blackpill_f411ce 30 :goals: build flash 31 32Sample Output 33============= 34When monitoring a 3.3 V bus with a 0.1 Ohm shunt resistor 35you should get a similar output as below, repeated every 2 seconds: 36 37.. code-block:: console 38 39 Shunt: 0.001570 [V] -- Bus: 3.224000 [V] -- Power: 0.504000 [W] -- Current: 0.157000 [A] 40 41 42A negative sign indicates current flowing in reverse direction: 43 44.. code-block:: console 45 46 Shunt: -0.001560 [V] -- Bus: 3.224000 [V] -- Power: 0.502000 [W] -- Current: -0.156000 [A] 47