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

Adding HLK-LD2415H Documentation #3874

Open
wants to merge 52 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
8197fdb
Adding LD2415H
cptskippy May 27, 2024
7c6931b
adding additional images
cptskippy May 27, 2024
36fef76
Update ld2415h.rst
cptskippy May 27, 2024
a4df418
Update ld2415h.rst
cptskippy May 27, 2024
e8524b9
Update ld2415h.rst
cptskippy May 27, 2024
720a951
Fixing image path
cptskippy May 27, 2024
4cd64f4
SEO fixes
cptskippy May 27, 2024
40912a1
Optimized images.
cptskippy May 27, 2024
6d12d64
Fixing image path
cptskippy May 27, 2024
d8d03b3
Merge branch 'current' into current
cptskippy May 28, 2024
f0fe3c5
Merge branch 'next' into current
cptskippy May 29, 2024
5b65958
Merge branch 'next' into current
cptskippy May 30, 2024
40d4660
Merge branch 'esphome:current' into current
cptskippy May 31, 2024
d3767f6
Merge branch 'esphome:current' into current
cptskippy Jun 1, 2024
8557925
Merge branch 'esphome:current' into current
cptskippy Jun 2, 2024
3816304
Merge branch 'next' into current
cptskippy Jun 3, 2024
cd7f2e7
Merge branch 'esphome:current' into current
cptskippy Jun 4, 2024
8676fa5
Merge branch 'next' into current
cptskippy Jun 4, 2024
32236fe
Merge branch 'next' into current
cptskippy Jun 5, 2024
5dc6d41
Merge branch 'next' into current
cptskippy Jun 5, 2024
cd1b190
Merge branch 'next' into current
cptskippy Jun 6, 2024
b790d10
Merge branch 'next' into current
cptskippy Jun 10, 2024
26be709
Merge branch 'next' into current
cptskippy Jun 11, 2024
a361c1e
Merge branch 'next' into current
cptskippy Jun 12, 2024
77c8066
Merge branch 'next' into current
cptskippy Jun 14, 2024
266e9c7
Merge branch 'next' into current
cptskippy Jun 17, 2024
eac0a23
Merge branch 'next' into current
cptskippy Jun 18, 2024
23fec9e
Merge branch 'next' into current
cptskippy Jun 19, 2024
bcac46d
Merge branch 'next' into current
cptskippy Jun 20, 2024
2db5783
Merge branch 'next' into current
cptskippy Jun 25, 2024
30cf06b
Merge branch 'next' into current
cptskippy Jun 26, 2024
a41391a
Merge branch 'next' into current
cptskippy Jun 28, 2024
14fd4e9
Merge branch 'next' into current
cptskippy Jul 2, 2024
ae1cc0b
Merge branch 'next' into current
cptskippy Jul 3, 2024
0991232
Merge branch 'next' into current
cptskippy Jul 15, 2024
d051159
Merge branch 'next' into current
cptskippy Jul 17, 2024
fefc59b
Merge branch 'next' into current
cptskippy Jul 22, 2024
cde3d48
Merge branch 'next' into current
cptskippy Jul 24, 2024
c5a6fcd
Merge branch 'next' into current
cptskippy Jul 25, 2024
3d152d4
Merge branch 'next' into current
cptskippy Aug 6, 2024
9e5c737
Merge branch 'next' into current
cptskippy Aug 13, 2024
3ab241c
Merge branch 'next' into current
cptskippy Aug 14, 2024
ad90b4f
Merge branch 'next' into current
cptskippy Aug 20, 2024
2c2173f
Merge branch 'next' into current
cptskippy Aug 21, 2024
372f170
Merge branch 'next' into current
cptskippy Aug 22, 2024
0c99755
Merge branch 'next' into current
cptskippy Aug 27, 2024
ec1ae70
Merge branch 'next' into current
cptskippy Aug 30, 2024
30e25d6
Merge branch 'next' into current
cptskippy Sep 6, 2024
2c2ac2a
Merge branch 'next' into current
cptskippy Sep 11, 2024
d846a01
Merge branch 'next' into current
cptskippy Sep 18, 2024
ec8d0c4
Merge branch 'next' into current
cptskippy Oct 25, 2024
c112034
Merge branch 'next' into current
cptskippy Nov 15, 2024
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
Binary file added components/sensor/images/ld2415h.back.png
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.
Binary file added components/sensor/images/ld2415h.front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/sensor/images/ld2415h.sensor.ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
205 changes: 205 additions & 0 deletions components/sensor/ld2415h.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
LD2415H 24Ghz mmWave Radar Sensor
=================================

.. seo::
:description: Instructions for setting up LD2415H sensors.
:image: ld2415h.png
:keywords: LD2415H

Component
---------
.. _ld2415h-component:

The ``ld2415h`` sensor platform allows you to use the Hi-Link HLK-LD2415H velocity radar sensor
with ESPHome to track the velocity of objects. The sensor utilizes millimeter wave radar to
measure the velocity of objects within it's field of view.

The :ref:`UART <uart>` is required to be set up in your configuration for this sensor to work.

Select, and number components provide real-time configuration of the sensor during operation.


.. figure:: images/ld2415h.front.png
:align: center
:width: 50.0%

Front of the HLK-LD2415H velocity radar sensor.

.. figure:: images/ld2415h.back.png
:align: center
:width: 50.0%

Back of the HLK-LD2415H velocity radar sensor.

.. figure:: images/ld2415h.sensor.ui.png
:align: center
:width: 50.0%

ld2415h sensor UI.

.. figure:: images/ld2415h.configuration.ui.png
:align: center
:width: 50.0%

ld2415h configuration UI.



.. code-block:: yaml

# Example configuration entry
uart:
tx_pin: 36
rx_pin: 34
baud_rate: 9600

ld2415h:
id: speedometer

sensor:
- platform: ld2415h
speed:
name: Speed
filters:
- timeout:
timeout: 1s
value: 0
- delta: 0.1

number:
- platform: ld2415h
min_speed_threshold:
name: Min Speed Threshold
compensation_angle:
name: Compensation Angle
sensitivity:
name: Sensitivity
vibration_correction:
name: Vibration Correction
relay_trigger_duration:
name: Relay Trigger Duration
relay_trigger_speed:
name: Relay Trigger Speed

select:
- platform: ld2415h
sample_rate:
name: Sample Rate
tracking_mode:
name: Tracking Mode

Platform
--------

.. code-block:: yaml

ld2415h:

Configuration variables:
************************

**ld2415h** (*Required*): Component platform.


Number
------

.. code-block:: yaml

number:
- platform: ld2415h
min_speed_threshold:
name: Min Speed Threshold
compensation_angle:
name: Compensation Angle
sensitivity:
name: Sensitivity
vibration_correction:
name: Vibration Correction
relay_trigger_duration:
name: Relay Trigger Duration
relay_trigger_speed:
name: Relay Trigger Speed

Configuration variables:
************************

- **min_speed_threshold** (*Required*): Represents the minimum speed reported by the sensor. This allows you to filter out reports
of slow moving objects.
- **compensation_angle** (*Required*): Compensation angle between the center of the radar beam axis and the travel direction of
objects. This will compensate for angle not being perpendicular to the direction of travel of objects.
- **sensitivity** (*Required*): This adjusts the level of anti-interference compensation. Higher values will result in fewer
erroneous reports.
- **vibration_correction** (*Required*): Vibration anti-interference coefficient used to reject false positives. For example if
the sensor is mounted to swaying pole.
- **relay_trigger_duration** (*Required*): The relay closure time when an object's speed exceeds the trigger speed.
- **relay_trigger_speed** (*Required*): The speed at which the relay will trigger.


Select
------

.. code-block:: yaml

select:
- platform: ld2415h
sample_rate:
name: Sample Rate
tracking_mode:
name: Tracking Mode

**Sample Rates:**

The select component allows you to choose between three sample rates: **~22 fps**, **~11 fps** and **~6 fps**.

**Tracking Modes:**

The UI provides three tracking modes: **Approaching and Restreating**, **Approaching** and **Restreating**.
The select component allows you to choose the active mode.

- **Approaching and Restreating**: This is the default mode. It will report the speed of any object moving toward or
away from the sensor.
- **Approaching**: In this mode the sensor will only report the speed of objects moving toward the sensor.
- **Restreating**: In this mode the sensor will only report the speed of objects moving away from the sensor.

Configuration variables:
************************

- **sample_rate** (*Required*): Provisions the sample rate select component.
May contain any options from :ref:`Select <config-select>`.

- **tracking_mode** (*Required*): Provisions the tracking mode select component.
May contain any options from :ref:`Select <config-select>`.

Sensor
------

The ``ld2415h`` sensor allows you to use your :doc:`ld2415h` to log the speed of objects moving within its field of
detection. The sensor Antenna angle is 40° horizontal with a 16° pitch and can sense objects in front or behind.
The sensor will not report speeds below 1 KM/H.

.. code-block:: yaml

sensor:
- platform: ld2415h
speed:
name: Speed

Configuration variables:
************************

- **speed** (*Optional*): The speed of the fastest moving object detected by the sensor. May contain any options
from :ref:`Sensor <config-sensor>`.


Important Information
---------------------

This sensor does not maintain state between power cycles. Because it is subject to environmental interference,
it is recommended to configure the sensor after installation.

See Also
--------

- Official Datasheet/Manuals are available from Hi-Link's website: `https://www.hlktech.net/index.php?id=1219`
- :ghedit:`Edit`
Binary file added images/ld2415h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.