The HC-SR04 Ultrasonic sensor for Arduino/Raspberry Pi is a non-contact distance measurement module using ultrasonic waves. It offers reliable object detection and ranging from 2cm to 400cm for robotics, automation, and IoT projects.
Key features
- Non-contact distance measurement from 2cm to 400cm
- High accuracy of ±3mm across the measurement range
- Easy trigger/echo interface works with any microcontroller
- 5V operation directly compatible with Arduino
- 40kHz ultrasonic frequency outside human hearing
- Compact module size for easy mounting
- Low cost compared to IR and laser distance sensors
Good to know
- Works best with flat surfaces perpendicular to sensor
- Soft or angled surfaces may absorb or deflect sound
- Multiple sensors may interfere – use sequential triggering
- Temperature affects speed of sound – add compensation for accuracy
- Minimum 60ms delay between measurements recommended