mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-10 00:42:00 +01:00
esp32_dac.rst - Add light component to example (#885)
* esp32_dac.rst - Add light component to example * Replace abbreviation Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
This commit is contained in:
parent
71279eccde
commit
28ec466d28
@ -12,7 +12,7 @@ no need for additional filtering.
|
|||||||
|
|
||||||
The DAC spans across two pins, each on its own channel: GPIO25 (Channel 1) and GPIO26 (Channel 2).
|
The DAC spans across two pins, each on its own channel: GPIO25 (Channel 1) and GPIO26 (Channel 2).
|
||||||
|
|
||||||
The output level is a percentage of the board supply voltage (VDD_A) - generally this will be 3.3V.
|
The output level is a percentage of the board supply voltage (VDD_A) - generally this will be 3.3 V.
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
@ -29,6 +29,13 @@ The output level is a percentage of the board supply voltage (VDD_A) - generally
|
|||||||
- output.set_level:
|
- output.set_level:
|
||||||
id: dac_output
|
id: dac_output
|
||||||
level: 50%
|
level: 50%
|
||||||
|
|
||||||
|
# Use the DAC output as a light
|
||||||
|
light:
|
||||||
|
- platform: monochromatic
|
||||||
|
output: dac_output
|
||||||
|
gamma_correct: 1.4
|
||||||
|
id: dac_output
|
||||||
|
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
@ -48,6 +55,7 @@ Use Cases
|
|||||||
- Driving a bar graph or large amount of LEDs using an analog-controlled LED driver like the LM3914
|
- Driving a bar graph or large amount of LEDs using an analog-controlled LED driver like the LM3914
|
||||||
(`datasheet <https://www.ti.com/lit/ds/symlink/lm3914.pdf>`__); this can allow you to make tank
|
(`datasheet <https://www.ti.com/lit/ds/symlink/lm3914.pdf>`__); this can allow you to make tank
|
||||||
level indicators, temperature gauges, and so on from a single output pin
|
level indicators, temperature gauges, and so on from a single output pin
|
||||||
|
- Generating 0-10 V for a dimmable light (operational amplifier required)
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
--------
|
--------
|
||||||
|
Loading…
Reference in New Issue
Block a user