All you need to know about Ultrasonic Ranging Module HC-SR04 before messing with Arduino

Sensor Represenation

You only need to supply a short 10us pulse to the trigger input to start the ranging, and then the module will send out an 8-cycle burst of ultrasound at 40 kHz and raise in proportion.

You can calculate the range time interval between sending trigger signal and receiving echo signal.

The Echo is distance object that is pulse width and the range in proportion. You can also calculate the range through the time interval between sending trigger signal and receiving signal.

Formula:uS/58= centimeters or uS /148=inch; or : the range=high level time*velocity(340M/S)/2; it’s suggest to use over 60ms measurement cycle , in order to prevent trigger signal to the echo signal.

Things to be cautious about Arduino Sensors:

1) First and foremost, you should never connect the module directly to electric:

If connected electric, the GND terminal should be connected the module, otherwise, It will affect the normal work of the module.

2) Additionally, the range of the area shouldn’t be less than 0.5 square meters and the plane requests as smooth as possible. Otherwise, it’ll affect the results of the measuring.

Ultrasonic Ranging Module HC- SR04

Measurement function: It has a maximum range of 4m.

It includes…

· Ultrasonic transmitters

· Receiver

· Controlling circuit

The basic steps to follow ………

1) Using IO trigger for at least 10us

2) The Module automatically sends Wight 40 kHz and detect whether there is a pulse signal back

3) If the signal back, through high level, time of high output IO duration is the time from sending ultrasonic to returning.

Test distance= (high level time * velocity of the sound (340 M/S)/2

Wire Connecting direct as following…

- 5V Supply

- Trigger Pulse Input

- Echo Pulse Output

-0 V ground

Like what you read? Give Haiylu T Kibret a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.