========================== Ultrasonic Distance Sensor ========================== .. include:: ../_templates/constants.rst **Datasheet:** :raw-html:`
` `Ultrasonic Ranging Module HC-SR04 `_ **Features:** :raw-html:`
` 2cm to 400cm Measurement Range :raw-html:`
` 3mm Ranging Accuracy :raw-html:`
` 40Hz Working Frequency **Connection:** :raw-html:`
` *VCC* to 5V Supply :raw-html:`
` *TRIG* to Arduino Digital Pin :raw-html:`
` *ECHO* to Arduino Digital Pin :raw-html:`
` *GND* to 0V Ground **Interfacing:** :raw-html:`
` `Arduino Servo Library `_ **Dimensions:** :raw-html:`
` 45mm x 20mm x 15mm **Use-Case:** :raw-html:`
` Detects close-range obstacles for the front-facing portion of RoboFlock. Acts as a failsafe for objects not detected by the LiDAR module. .. _datasheet: https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf .. _servo: https://github.com/arduino-libraries/Servo