Module hc_sr04

Source
Expand description

HC-SR04 Ultrasonic Distance Sensor.

Product Link: HC-SR04 Product Page Datasheet: HC-SR04 Datasheet

HC-SR04 ultrasonic sensor provides a very low-cost and easy method of distance measurement. It measures distance using sonar, an ultrasonic (well above human hearing) pulse (~40KHz) is transmitted from the unit and distance-to-target is determined by measuring the time required for the echo return. This sensor offers excellent range accuracy and stable readings in an easy-to-use package.

Structs§

HcSr04
HC-SR04 Ultrasonic Distance Sensor Driver

Enums§

Status
Status of the sensor.

Constants§

MAX_ECHO_DELAY_MS
Maximum duration for the echo pulse to be measured in milliseconds.
SPEED_OF_SOUND
Speed of sound in air in mm/s.