Skip to content

Commit

Permalink
LTR390 separate ALS and UV gain and resolution (#4012)
Browse files Browse the repository at this point in the history
  • Loading branch information
latonita committed Jul 12, 2024
1 parent 5536a2c commit 30ae8e5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions components/sensor/ltr390.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,28 @@ Configuration variables:
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
sensor. Defaults to ``60s``. It is recommended that the update interval is at least 1 second since updates can take up to 800ms when using a high resolution value.

Granular control over gain and resolution
.........................................
By default, the ``gain`` and ``resolution`` parameters set same values for both ALS and UV measurements. In real life scenarios there might be significant
differences in the light intensity and UV index, so it is recommended to use different gain and resolution values for ALS and for UV sensor to avoid saturation.
See the example below, where the gain and resolution are set to different values for ALS and UV sensors.:

.. code-block:: yaml
sensor:
- platform: ltr390
uv:
name: "UV Sensor Counts"
ambient_light:
name: "Light Sensor Counts"
gain:
ambient_light: X9
uv: X3
resolution:
ambient_light: 18
uv: 13
Lux and UVI Formulas
--------------------

Expand Down

0 comments on commit 30ae8e5

Please sign in to comment.