Ultrasonic ranging module hc sr04 provides 2cm 400cm noncontact measurement function, the ranging accuracy can reach to 3mm. The hcsr04 ultrasonic us sensor is an ultrasonic transducer that comes with 4 pin interface named as vcc, trigger, echo, and ground. The transmitter emits a 8 bursts of an directional 40khz ultrasonic wave when triggered and starts a timer. Pdf effects of environment on accuracy of ultrasonic sensor. It offers excellent noncontact range detection with high accuracy and stable readings in an easytouse package. Both these ultrasonic range modules are fairly cheap modules, expect the hysrf05 to be the more expensive of the these two. Ultrasonic sensor hcsr04 and arduino tutorial youtube.
The famous hc sr04 ultrasonic sensor generates ultrasonic waves at 40khz. As we connect the module to 5v and initialize the input pin, it starts transmitting the sound waves which then travel through the air and hit the. Ultrasonic ranging module hc sr04 provides 2cm 400cm noncontact measurement. Timing chart, pin explanations and taking distance measurements 4. The hcsr04 ultrasonic sensor uses sonar to determine distance to an object like bats or dolphins do. The hcsr04 is one of the lowest cost sonarbased distance sensor options. This sensor is a very popular sensor used in many applications where measuring distance or sensing objects are required. How ultrasonic sensors work ultrasonic sensors use sound to determine the distance between the sensor and the. Ultrasonic pulses travel outward until they encounter an object, the object causes the the wave to be reflected back towards the unit. Learn about the hc sr04 ultrasonic sensor with the explanation on its working, pinout, pin description, 2d model and datasheet. As shown above the hcsr04 ultrasonic us sensor is a 4 pin module, whose pin names are vcc, trigger, echo and ground respectively. Pdf the growing use of ultrasonic sensor now demands millimeter.