zephyr/dts/bindings/sensor/hc-sr04.yaml
Adrien Leravat 9df661ea1a drivers: sensor: hc-sr04: add driver
Add a simple driver for the HC-SR04 ultrasonic distance sensor.

Signed-off-by: Adrien Leravat <adrien.leravat@gmail.com>
2024-11-16 14:00:34 -05:00

23 lines
554 B
YAML

# Copyright (c) 2024, Adrien Leravat
# SPDX-License-Identifier: Apache-2.0
description: HC-SR04 ultrasound sensor.
compatible: "hc-sr04"
include: sensor-device.yaml
properties:
trigger-gpios:
type: phandle-array
required: true
description: |
Output pin used to trigger the distance measurement.
echo-gpios:
type: phandle-array
required: true
description: |
Input pin. The pulse received on this pin corresponds to
the duration between the ultrasonic pulse emission and
the reception of its "echo".