Ultrasonic Ranging Sensor HC-SR04
One of the most common distance sensors in Arduino craft is here! The Ultrasonic Ranging Sensor HC-SR04 is a distance sensor that employs sound to measure the distance between the sensor and the nearest obstacle in its direction. It only needs two digital pins aside from power and ground to send distance data to a microcontroller. It is also cost-friendly and works well with Arduino boards. The device works by sending a sound wave and waiting for it to return when hit by nearby obstacles/objects. To compute the distance, you must use the distance formula - which is the time passed multiplied by the speed of sound. Alternatively, you can also use pre-written libraries like the one mentioned below.
- The power supply is 5VDC
- Effective angle for computation: < 30 degrees
- Ideal distance: 2cm to 500 cm
- Resolution: 1 cm
- Ultrasonic Frequency: 40k Hz
Inclusions: 1 x Ultrasonic Ranging Sensor HC-SR04