diff --git a/components/sensor/a02yyuw.rst b/components/sensor/a02yyuw.rst new file mode 100644 index 000000000..e6a08463e --- /dev/null +++ b/components/sensor/a02yyuw.rst @@ -0,0 +1,46 @@ +A02YYUW Waterproof Ultrasonic Sensor +==================================== + +.. seo:: + :description: Instructions for setting up A02YYUW waterproof ultrasonic distance sensor in ESPHome. + :image: a02yyuw.jpg + :keywords: ultrasonic, DFRobot, A02YYUW + +This sensor allows you to use A02YYUW waterproof ultrasonic sensor by DFRobot +(`datasheet `__) +with ESPHome to measure distances. This sensor can measure +ranges between 3 centimeters and 450 centimeters with a resolution of 1 milimeter. + +Since this sensor reads multiple times per second, :ref:`sensor-filters` are highly recommended. + +To use the sensor, first set up an :ref:`uart` with a baud rate of 9600 and connect the sensor to the specified pin. + +.. figure:: images/a02yyuw-full.jpg + :align: center + :width: 50.0% + + A02YYUW Waterproof Ultrasonic Distance Sensor. + +.. code-block:: yaml + + # Example configuration entry + sensor: + - platform: "a02yyuw" + name: "Distance" + + +Configuration variables: +------------------------ + +- **name** (**Required**, string): The name of the sensor. +- **uart_id** (*Optional*, :ref:`config-id`): The ID of the :ref:`UART bus ` you wish to use for this sensor. + Use this if you want to use multiple UART buses at once. +- All other options from :ref:`Sensor `. + +See Also +-------- + +- :ref:`sensor-filters` +- :ref:`uart` +- :apiref:`a02yyuw/a02yyuw.h` +- :ghedit:`Edit` diff --git a/components/sensor/images/a02yyuw-full.jpg b/components/sensor/images/a02yyuw-full.jpg new file mode 100644 index 000000000..8ca90d2fa Binary files /dev/null and b/components/sensor/images/a02yyuw-full.jpg differ diff --git a/images/a02yyuw.jpg b/images/a02yyuw.jpg new file mode 100644 index 000000000..dc1782cc5 Binary files /dev/null and b/images/a02yyuw.jpg differ diff --git a/index.rst b/index.rst index 57007ce2b..f1572ce34 100644 --- a/index.rst +++ b/index.rst @@ -250,6 +250,7 @@ Distance .. imgtable:: A01NYUB, components/sensor/a01nyub, a01nyub.jpg, Acoustic distance + A02YYUW, components/sensor/a02yyuw, a02yyuw.jpg, Acoustic distance HRXL MaxSonar WR, components/sensor/hrxl_maxsonar_wr, hrxl_maxsonar_wr.jpg, Acoustic distance TOF10120, components/sensor/tof10120, tof10120.jpg, IR optical distance Ultrasonic Sensor, components/sensor/ultrasonic, ultrasonic.jpg, Acoustic distance