HC-SR04 Ultrasonic Sensor
The HC-SR04 is a popular ultrasonic sensor used for accurate distance measurement. It utilizes ultrasonic waves to detect the distance to an object, making it ideal for applications such as robotics, obstacle avoidance, level measurement, and proximity detection. This sensor is easy to interface with microcontrollers and provides precise distance readings.
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 5V power supply.
- Trig (Pin 2): Trigger input pin (send a 10µs high pulse to start measurement).
- Echo (Pin 3): Echo output pin (outputs the time 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 easy connection to microcontrollers.
- Low Power Consumption: Ideal 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 start 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 corresponds to the time it takes for the ultrasonic pulse to travel to the object and back.
Calculating Distance:
- Use the formula:
Distance (cm) = Duration (µs) / 58
Or for inches:
Distance (inches) = Duration (µs) / 148
The HC-SR04 Ultrasonic Sensor is an essential component for any project requiring accurate distance measurements. With its ease of use, high accuracy, and reliable performance, it’s a valuable tool for a wide range of applications.
Package Includes:
- 1 x HC-SR04 Ultrasonic Sensor
Reviews
There are no reviews yet.