2018-05-13 11:37:02 +02:00
|
|
|
ADS1115 Hub
|
|
|
|
===========
|
|
|
|
|
2018-11-14 22:12:27 +01:00
|
|
|
.. seo::
|
|
|
|
:description: Instructions for setting up ADS1115 analog voltage multiplexer hubs.
|
|
|
|
:image: ads1115.jpg
|
|
|
|
:keywords: ADS1115
|
|
|
|
|
2018-05-13 11:37:02 +02:00
|
|
|
The ``ads1115`` domain creates a global hub so that you can later create
|
2018-06-01 18:10:00 +02:00
|
|
|
individual sensors using the :doc:`ADS1115 Sensor Platform </esphomeyaml/components/sensor/ads1115>`.
|
|
|
|
To use this hub, first setup the :ref:`I²C Bus <i2c>` and connect the sensor to the pins specified there.
|
2018-05-13 11:37:02 +02:00
|
|
|
|
2018-06-01 18:10:00 +02:00
|
|
|
.. figure:: sensor/images/ads1115-full.jpg
|
|
|
|
:align: center
|
|
|
|
:target: `Adafruit`_
|
|
|
|
:width: 50.0%
|
2018-05-13 11:37:02 +02:00
|
|
|
|
2018-06-01 18:10:00 +02:00
|
|
|
ADS1115 16-Bit ADC. Image by `Adafruit`_.
|
2018-05-13 11:37:02 +02:00
|
|
|
|
|
|
|
.. _Adafruit: https://www.adafruit.com/product/1085
|
|
|
|
|
2018-11-19 18:32:16 +01:00
|
|
|
.. code-block:: yaml
|
2018-05-13 11:37:02 +02:00
|
|
|
|
|
|
|
ads1115:
|
|
|
|
- address: 0x48
|
|
|
|
|
|
|
|
Configuration variables:
|
2018-10-12 16:33:22 +02:00
|
|
|
------------------------
|
2018-05-13 11:37:02 +02:00
|
|
|
|
2018-06-01 18:10:00 +02:00
|
|
|
- **address** (**Required**, int): The i²c address of the sensor.
|
|
|
|
See :ref:`I²C Addresses <ads1115_i2c_addresses>` for more information.
|
|
|
|
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID for this ADS1115 Hub. Use this if you
|
|
|
|
want to use multiple ADS1115 hubs at once.
|
|
|
|
|
|
|
|
.. _ads1115_i2c_addresses:
|
2018-05-13 11:37:02 +02:00
|
|
|
|
|
|
|
I²C Addresses
|
2018-10-12 16:33:22 +02:00
|
|
|
-------------
|
2018-05-13 11:37:02 +02:00
|
|
|
|
|
|
|
In order to allow multiple sensors to be connected to the same i²c bus,
|
|
|
|
the creators of this sensor hardware have included some options to
|
|
|
|
change the i²c address.
|
|
|
|
|
2018-06-01 18:10:00 +02:00
|
|
|
- If the address pin is pulled to GND, the address is ``0x48`` (Default).
|
2018-05-13 11:37:02 +02:00
|
|
|
- If the address pin is pulled to VCC, the address is ``0x49``.
|
|
|
|
- If the address pin is tied to SDA, the address is ``0x4a``.
|
|
|
|
- If the address pin is tied to SCL, the address is ``0x4B``.
|
2018-06-01 18:10:00 +02:00
|
|
|
|
|
|
|
See Also
|
2018-10-12 16:33:22 +02:00
|
|
|
--------
|
2018-06-01 18:10:00 +02:00
|
|
|
|
|
|
|
- :doc:`sensor/ads1115`
|
2018-08-24 22:44:01 +02:00
|
|
|
- `i2cdevlib <https://github.com/jrowberg/i2cdevlib>`__ by `Jeff Rowberg <https://github.com/jrowberg>`__
|
2018-06-01 18:10:00 +02:00
|
|
|
- :doc:`API Reference </api/sensor/ads1115>`
|
2018-06-04 08:17:22 +02:00
|
|
|
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/components/ads1115.rst>`__
|
2018-10-12 16:33:22 +02:00
|
|
|
|
|
|
|
.. disqus::
|