HC-SR04 Ultrasonic sensor for Arduino/Raspberry Pi
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 for robotics, automation, and IoT projects.
Key Features
- Non-contact distance measurement
- 2cm to 400cm range
- High accuracy (±3mm)
- Easy trigger/echo interface
- 5V operation
- Works with any microcontroller
Technical Specifications
- Model: HC-SR04
- Operating Voltage: 5V DC
- Measuring Range: 2cm – 400cm
- Resolution: 0.3cm
- Accuracy: ±3mm
- Measuring Angle: 15°
- Frequency: 40kHz
Pinout
- VCC: 5V Power
- Trig: Trigger Input
- Echo: Echo Output
- GND: Ground
Working Principle
The module emits an ultrasonic burst when triggered. It measures the time taken for the echo to return after reflecting off an object, calculating distance based on the speed of sound.
Applications
- Obstacle avoidance robots
- Liquid level monitoring
- Parking sensors
- Proximity detection
- Distance measurement tools
Wiring Guide
- Connect VCC to 5V
- Connect GND to Ground
- Connect Trig to digital pin
- Connect Echo to digital pin






Reviews
There are no reviews yet.