hc-sr04

Vendor: Generic or vendor-independent

Note

An implementation of a driver matching this compatible is available in drivers/sensor/hc_sr04/hc_sr04.c.

Description

HC-SR04 ultrasound sensor.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

trigger-gpios

phandle-array

Output pin used to trigger the distance measurement.

This property is required.

echo-gpios

phandle-array

Input pin. The pulse received on this pin corresponds to
the duration between the ultrasonic pulse emission and
the reception of its "echo".

This property is required.

friendly-name

string

Human readable string describing the sensor. It can be used to
distinguish multiple instances of the same model (e.g., lid accelerometer
vs. base accelerometer in a laptop) to a host operating system.

This property is defined in the Generic Sensor Property Usages of the HID
Usage Tables specification
(https://usb.org/sites/default/files/hut1_3_0.pdf, section 22.5).