esphome-docs/components/ads1115.rst
Otto Winter 8d9b0d2375
Netlify (#153)
* Netlify

* Fix

* Faster doxygen

* Update Makefile

* Try without api

* Debug

* Fix

* Update Makefile

* Debug

* Try 1.8.13

* Remove debug

* Update Makefile

* Optimize
2019-02-07 13:54:45 +01:00

57 lines
1.7 KiB
ReStructuredText

ADS1115 Hub
===========
.. seo::
:description: Instructions for setting up ADS1115 analog voltage multiplexer hubs.
:image: ads1115.jpg
:keywords: ADS1115
The ``ads1115`` domain creates a global hub so that you can later create
individual sensors using the :doc:`ADS1115 Sensor Platform </components/sensor/ads1115>`.
To use this hub, first setup the :ref:`I²C Bus <i2c>` and connect the sensor to the pins specified there.
.. figure:: sensor/images/ads1115-full.jpg
:align: center
:width: 50.0%
ADS1115 16-Bit ADC.
.. _Adafruit: https://www.adafruit.com/product/1085
.. code-block:: yaml
ads1115:
- address: 0x48
Configuration variables:
------------------------
- **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:
I²C Addresses
-------------
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.
- If the address pin is pulled to GND, the address is ``0x48`` (Default).
- 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``.
See Also
--------
- :doc:`sensor/ads1115`
- `i2cdevlib <https://github.com/jrowberg/i2cdevlib>`__ by `Jeff Rowberg <https://github.com/jrowberg>`__
- :apiref:`sensor/ads1115_component.h`
- :ghedit:`Edit`
.. disqus::