We provide a schematic diagram on how to wire the ultrasonic sensor, and an example sketch to use with the Arduino. The HC-SR04 ultrasonic sensor uses sonar to determine distance to an object like bats do. It offers excellent non-contact range detection with high accuracy and stable readings in an easy-to-use package. It comes complete with ultrasonic transmitter and receiver modules.

Author:Tojagor Nikoran
Language:English (Spanish)
Published (Last):18 October 2004
PDF File Size:18.97 Mb
ePub File Size:4.70 Mb
Price:Free* [*Free Regsitration Required]

Trigger pin is an Input pin. This pin has to be kept high for 10us to initialize measurement by sending US wave. Echo pin is an Output pin. This pin goes high for a period of time which will be equal to the time taken for the US wave to return back to the sensor.

This sensor is a very popular sensor used in many applications where measuring distance or sensing objects are required.

The module has two eyes like projects in the front which forms the Ultrasonic transmitter and Receiver. The sensor works with the simple high school formula that. The Ultrasonic transmitter transmits an ultrasonic wave, this wave travels in air and when it gets objected by any material it gets reflected back toward the sensor this reflected wave is observed by the Ultrasonic receiver module as shown in the picture below.

Now, to calculate the distance using the above formulae, we should know the Speed and time. The circuitry inbuilt on the module will calculate the time taken for the US wave to come back and turns on the echo pin high for that same particular amount of time, this way we can also know the time taken.

Now simply calculate the distance using a microcontroller or microprocessor. The following guide is universally since it has to be followed irrespective of the type of computational device used. The current consumed by the sensor is less than 15mA and hence can be directly powered by the on board 5V pins If available. To start the measurement, the trigger pin has to be made high for 10uS and then turned off.

This action will trigger an ultrasonic wave at frequency of 40Hz from the transmitter and the receiver will wait for the wave to return. Once the wave is returned after it getting reflected by any object the Echo pin goes high for a particular amount of time which will be equal to the time taken for the wave to return back to the sensor.

Using this information the distance is measured as explained in the above heading. Subscribe to stay updated with industry's latest Electronics components and news. If you are asking for the pins then trigger is the input pin and the Echo is the output pin. So what happens is sending signal to trigger pin will send of US waves and the waves coming back will be indicated by Echo pin. Applications Used to avoid and detect obstacles with robots like biped robot, obstacle avoider robot, path finding robot etc.

Component Datasheet. Tags Ultrasonic Sensor. Get Our Weekly Newsletter! Ultrasonic sensors Comment. What is the input and output of ultrasonic sensor? If you are asking for theā€¦ Comment.


HC-SR04 Sensor. Datasheet pdf. Equivalent



Complete Guide for Ultrasonic Sensor HC-SR04 with Arduino




Related Articles