Ultrasonic Sensor
Overview & Specifications
[Ultrasonic Distance Sensor]
The HC-SR04 is the classic ultrasonic distance sensor. It uses sonar to determine the distance to an object by emitting an ultrasonic pulse and measuring the time it takes for the echo to return.
Features:
- Measuring range: 2cm to 400cm
- Accuracy: 3mm
- Operating voltage: 5V DC
- Frequency: 40Hz
- Trigger and Echo pins
Wiring Instructions:
- VCC: Connect to 5V Power
- GND: Connect to Ground
- TRIG: Connect to any digital GPIO (Output)
- ECHO: Connect to any digital GPIO (Input)
Protocol:
- Ultrasonic (Trig/Echo)
Project Ideas:
1. Robot Obstacle Avoidance
2. Water Tank Level Detection (non-contact)
3. Parking Sensor
Reference Link:
https://oceanremote.net/sensors/sensor_ultrasonic/
Pin Connections
GND
VCC
ECHO
TRIG