Ultrasonic Ranging Sensor HC-SR04
The Ultrasonic Ranging Sensor HC-SR04 is one of the common distance sensor for Arduino projects. It works extremely well with any Arduino Board. The basic principle of this device is that it sends a sound wave, hits an object and return back to the sensor. The time is multiplied by the speed of sound with the following computation: 343m/sec 0.0343cm/μs = [1/29.1] cm/μs approximate to give the total distance traveled by the ultrasonic beam. Which then is then divided by 2.
Simply: Distance = (Time for wave to return * Speed of sound) / 2
- The power supply is 5VDC
- Effective angle for computation: < 30 degrees
- Ideal distance: 2cm to 500 cm
- Resolution: 1 cm
- Ultrasonic Frequency: 40k Hz