The HC-SR04 is a popular ultrasonic sensor used for distance measurement. It utilizes ultrasonic waves to detect the distance to an object, making it ideal for various applications such as robotics, obstacle avoidance, level measurement, and proximity detection. This sensor provides accurate distance measurements and is easy to interface with microcontrollers.
Technical Specifications:
- Model: HC-SR04
- Operating Voltage: 5V DC
- Quiescent Current: < 2mA
- Operating Current: 15mA
- Sensor Angle: 15 degrees
- Detection Range: 2cm to 400cm (1 inch to 13 feet)
- Resolution: 0.3cm
- Frequency: 40kHz
- Dimensions: 45mm x 20mm x 15mm
Pin Configuration:
- VCC (Pin 1): Connect to the power supply (5V).
- Trig (Pin 2): Trigger input pin (send a 10µs high pulse to start measurement).
- Echo (Pin 3): Echo output pin (outputs the time it takes for the ultrasonic pulse to return).
- GND (Pin 4): Connect to ground.
Features:
- Wide Range: Measures distances from 2cm to 400cm.
- High Accuracy: Provides precise distance measurements with a resolution of 0.3cm.
- Easy to Interface: Standard 4-pin header for straightforward connections to microcontrollers.
- Low Power Consumption: Suitable for battery-operated devices.
- Compact Design: Small form factor for easy integration into various projects.
Applications:
- Robotics
- Obstacle avoidance
- Level measurement
- Proximity detection
- Security systems
- Automated parking systems
Usage Tips:
- Connecting the Module:
- Connect the VCC pin to the 5V power supply.
- Connect the GND pin to the ground of your system.
- Connect the Trig pin to a digital output pin on your microcontroller.
- Connect the Echo pin to a digital input pin on your microcontroller.
- Triggering the Sensor:
- To initiate a measurement, send a 10µs high pulse to the Trig pin. This will trigger the sensor to emit an ultrasonic burst.
- Reading the Echo:
- Measure the duration of the high pulse on the Echo pin. This duration corresponds to the time taken for the ultrasonic pulse to travel to the object and back.
- Calculating Distance:
- Use the formula: Distance (cm) = Duration (µs) / 58
- Alternatively, use the formula: Distance (inches) = Duration (µs) / 148
The HC-SR04 Ultrasonic Sensor is an essential component for any project requiring accurate distance measurements. Its ease of use, high accuracy, and reliable performance make it a valuable tool for a wide range of applications.
Package includes:
- 1 x HC-SR04 Ultrasonic Sensor
Reviews
There are no reviews yet.