-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APDS9306 Ambient Light Sensor Documentation (#3826)
Co-authored-by: Keith Burzinski <kbx81x@gmail.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
- Loading branch information
1 parent
a95ef50
commit 0a28e6d
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
APDS9306 Sensor | ||
=============== | ||
|
||
.. seo:: | ||
:description: Instructions for setting up APDS9306 sensors. | ||
:image: apds9306.png | ||
|
||
|
||
.. _apds9306-component: | ||
|
||
Component | ||
--------- | ||
|
||
The ``apds9306`` sensor component allows you to use APDS9306 ambient light sensors (`datasheet <https://docs.broadcom.com/doc/AV02-4755EN>`__, `Broadcom`_) with ESPHome. | ||
The :ref:`I²C <i2c>` is required to be set up in your configuration for this sensor to work. | ||
|
||
.. figure:: images/apds9306.png | ||
:align: center | ||
:width: 80.0% | ||
|
||
Image by `Broadcom`_ | ||
|
||
|
||
.. code-block:: yaml | ||
# Example configuration entry | ||
sensor: | ||
- platform: apds9306 | ||
name: "APDS9306 Light Level" # below are optional | ||
gain: 1 | ||
bit_width: 18 | ||
measurement_rate: 100ms | ||
update_interval: 60s | ||
.. _Broadcom: https://www.broadcom.com/products/optical-sensors/ambient-light-photo-sensors/apds-9306-065 | ||
|
||
Configuration variables: | ||
------------------------ | ||
|
||
The ``apds9306`` sensor allows you to use your :doc:`apds9306` to perform ambient light measurements. | ||
|
||
- **address** (*Optional*, int): The I²C address of the sensor. Should be ``0x52`` according to datasheet ("Contact factory for other addressing options"). | ||
- **gain** (*Optional*, int): The gain of the ambient light sensor. One of 1, 3, 6, 9, 18. Defaults to ``1``. | ||
- **bit\_width** (*Optional*, int): The bit width/resolution of the ambient light sensor. One of: | ||
|
||
- 20 - takes 400ms | ||
- 19 - takes 200ms | ||
- 18 - takes 100ms (``default``) | ||
- 17 - takes 50ms | ||
- 16 - takes 25ms | ||
- 13 - takes 3.125ms | ||
|
||
- **measurement\_rate** (*Optional*, int): The measurement rate of the ambient light sensor in milliseconds. One of: | ||
|
||
- 25 | ||
- 50 | ||
- 100 (``default``); | ||
- 200 | ||
- 500 | ||
- 1000 | ||
|
||
- **update\_interval** (*Optional*, :ref:`config-time`): The interval at which the sensor reading will be updated. Defaults to ``60s``. | ||
- All opther options from :ref:`Sensor <config-sensor>`. | ||
|
||
See Also | ||
-------- | ||
|
||
- :ref:`sensor-filters` | ||
- :apiref:`apds9306/apds9306.h` | ||
- :ghedit:`Edit` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters