Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTR390 separate ALS and UV gain and resolution #4012

Merged
merged 2 commits into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading