esphome-docs/esphomeyaml/components/sensor/ina3221.rst

84 lines
3.2 KiB
ReStructuredText
Raw Normal View History

INA3221 3-Channel DC Current Sensor
===================================
The ``ina3221`` sensor platform allows you to use your INA3221 3-Channel DC Current Sensor
(`datasheet <http://www.ti.com/lit/ds/symlink/ina3221.pdf>`__,
`switchdoc`_) sensors with
esphomelib. The :ref:`I²C Bus <i2c>` is
required to be set up in your configuration for this sensor to work.
.. figure:: images/ina3221-full.jpg
:align: center
:width: 50.0%
INA3221 3-Channel DC Current Sensor
.. _switchdoc: http://www.switchdoc.com/ina3221-breakout-board/
.. figure:: images/ina3221-ui.png
:align: center
:width: 80.0%
.. code:: yaml
# Example configuration entry
sensor:
- platform: ina3221
address: 0x40
channel_1:
shunt_resistance: 0.1 ohm
current:
name: "INA3221 Channel 1 Current"
power:
name: "INA3221 Channel 1 Power"
bus_voltage:
name: "INA3221 Channel 1 Bus Voltage"
shunt_voltage:
name: "INA3221 Channel 1 Shunt Voltage"
channel_2:
# ...
channel_3:
# ...
update_interval: 15s
Configuration variables:
------------------------
- **address** (*Optional*, int): Manually specify the i^2c address of the sensor. Defaults to ``0x40``.
- **channel_1** (*Optional*): The configuration options for the 1st channel.
- **shunt_resistance** (*Optional*, float): The value of the shunt resistor on this channel for current calculation.
Defaults to ``0.1 ohm``.
- **current** (*Optional*): Use the current value on this channel in amperes. All options from
:ref:`Sensor <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
- **power** (*Optional*): Use the power value on this channel in watts. All options from
:ref:`Sensor <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
- **bus_voltage** (*Optional*): Use the bus voltage (voltage of the high side contact) value on this channel in V.
All options from :ref:`Sensor <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
- **shunt_voltage** (*Optional*): Use the shunt voltage (voltage across the shunt resistor) value on this channel in V.
All options from :ref:`Sensor <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
- **channel_2** (*Optional*): The configuration options for the 2nd channel. Same options as 1st channel.
- **channel_3** (*Optional*): The configuration options for the 3rd channel. Same options as 1st channel.
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``15s``.
See :ref:`sensor-default_filter`.
.. figure:: images/ina3221-pins.jpg
:align: center
:width: 60.0%
Pins on the INA3221. For communication only VS, GND, SCL and SDA need to be connected.
Note that all 3 channels share the same GND reference.
See Also
--------
- :ref:`sensor-filters`
- :doc:`ina219`
- :doc:`API Reference </api/sensor/ina3221>`
2018-08-24 22:44:01 +02:00
- `INA3221 Arduino Library <https://github.com/switchdoclabs/SDL_Arduino_INA3221>`__ by `SwitchDoc Labs <https://github.com/switchdoclabs>`__
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/components/sensor/ina3221.rst>`__
2018-10-12 16:33:22 +02:00
.. disqus::