esphome-docs/esphomeyaml/components/output/pca9685.rst

56 lines
1.8 KiB
ReStructuredText
Raw Normal View History

2018-05-13 11:37:02 +02:00
PCA9685 PWM Output
==================
2018-11-14 22:12:27 +01:00
.. seo::
:description: Instructions for setting up PCA9685 PWM controller outputs.
:image: pca9685.jpg
2018-05-13 11:37:02 +02:00
The PCA9685 output component exposes a PCA9685 PWM channel of a global
2018-06-01 18:10:00 +02:00
:doc:`PCA9685 hub </esphomeyaml/components/pca9685>` as a float
2018-05-13 11:37:02 +02:00
output.
2018-06-01 18:10:00 +02:00
.. figure:: images/pca9685-full.jpg
:align: center
:width: 75.0%
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
PCA9685 16-Channel PWM Driver.
2018-05-13 11:37:02 +02:00
.. code:: yaml
# Example configuration entry
pca9685:
2018-06-01 18:10:00 +02:00
- frequency: 500
2018-05-13 11:37:02 +02:00
# Individual outputs
output:
- platform: pca9685
id: 'pca9685_output1'
channel: 0
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
- **id** (**Required**, :ref:`config-id`): The id to use for this output component.
- **channel** (**Required**, int): Chose the channel of the PCA9685 of
this output component. Must be in range from 0 to 15.
- **pca9685_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the
:doc:`PCA9685 hub </esphomeyaml/components/pca9685>`.
Use this if you have multiple PCA9685s you want to use at the same time.
- All other options from :ref:`Output <config-output>`.
See Also
2018-10-12 16:33:22 +02:00
--------
2018-06-01 18:10:00 +02:00
- :doc:`/esphomeyaml/components/pca9685`
- :doc:`/esphomeyaml/components/output/index`
- :doc:`/esphomeyaml/components/output/esp8266_pwm`
- :doc:`/esphomeyaml/components/output/ledc`
- :doc:`/esphomeyaml/components/light/monochromatic`
- :doc:`/esphomeyaml/components/fan/speed`
- :doc:`/esphomeyaml/components/power_supply`
- :doc:`API Reference </api/output/pca9685>`
2018-08-24 22:44:01 +02:00
- `PCA9685 Arduino Library <https://github.com/NachtRaveVL/PCA9685-Arduino>`__ by `@NachtRaveVL <https://github.com/NachtRaveVL>`__
2018-06-04 08:17:22 +02:00
- `Edit this page on GitHub <https://github.com/OttoWinter/esphomedocs/blob/current/esphomeyaml/components/output/pca9685.rst>`__
2018-10-12 16:33:22 +02:00
.. disqus::