samples/sensor/ina219/README.html · samples/sensor/ina219/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Sensor · Power

INA219 양방향 power·current monitor

Devicetree calibration을 사용해 2초마다 전압·전력·전류를 측정하고 방향까지 판별합니다.

Official pathsamples/sensor/ina219/README.html
Source filesamples/sensor/ina219/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Supply·common-mode 범위, 0.1 Ohm shunt 예제와 음수 current 의미를 설명합니다.

Supply

3-5.5 V

Bus

0-26 V

Current

Bidirectional

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 E429D50F3E79E59577751D2D127295BB8F4EDE06C75756627AA4749AE92E3F2B
.. _ina219:

INA219 Bidirectional Power/Current Monitor
##########################################

Overview
********

This sample application measures shunt voltage, bus voltage, power and current
every 2 seconds and prints them to console.
The calibration/configuration parameters can be set in the devicetree file.

References
**********

 - `INA219 sensor <https://www.ti.com/product/INA219>`_

Wiring
******

The supply voltage of the INA219 can be in the 3V to 5.5V range.
The common mode voltage of the measured bus can be in the 0V to 26V range.

Building and Running
********************

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/ina219
   :board: blackpill_f411ce
   :goals: build flash

Sample Output
=============
When monitoring a 3.3 V bus with a 0.1 Ohm shunt resistor
you should get a similar output as below, repeated every 2 seconds:

.. code-block:: console

        Shunt: 0.001570 [V] -- Bus: 3.224000 [V] -- Power: 0.504000 [W] -- Current: 0.157000 [A]


A negative sign indicates current flowing in reverse direction:

.. code-block:: console

        Shunt: -0.001560 [V] -- Bus: 3.224000 [V] -- Power: 0.502000 [W] -- Current: -0.156000 [A]

Part 3

한국어 전문 번역

개요

이 sample application은 2초마다 shunt voltage, bus voltage, power와 current를 측정해 console에 출력합니다. Calibration과 configuration parameter는 Devicetree file에서 설정할 수 있습니다.

참고 자료

배선

INA219의 supply voltage 범위는 3 V에서 5.5 V입니다. 측정하는 bus의 common-mode voltage 범위는 0 V에서 26 V입니다.

빌드 및 실행

# From the root of the zephyr repository
west build -b blackpill_f411ce samples/sensor/ina219
west flash

출력 예

0.1 Ohm shunt resistor로 3.3 V bus를 monitoring하면 아래와 비슷한 출력이 2초마다 반복됩니다.

Shunt: 0.001570 [V] -- Bus: 3.224000 [V] -- Power: 0.504000 [W] -- Current: 0.157000 [A]

음수 부호는 current가 반대 방향으로 흐른다는 뜻입니다.

Shunt: -0.001560 [V] -- Bus: 3.224000 [V] -- Power: 0.502000 [W] -- Current: -0.156000 [A]

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.