DIYables Ultrasonic Sensor
Click to zoom






Quick Overview
The HC-SR04 Ultrasonic Sensor uses ultrasonic waves to measure distance with high precision. This 2-piece set is compatible with Arduino, ESP32, ESP8266, Raspberry Pi, and any 5V or 3.3V microcontroller. Perfect for obstacle avoidance, distance measurement, and robotics projects.
Key Features
- Model: HC-SR04 ultrasonic distance sensor
- Wide Detection Range: 2cm to 450cm with up to 3mm accuracy
- Dual Voltage Logic: Supports both 3.3V and 5V logic levels
- Low Power Consumption: Less than 2mA static current
- Narrow Beam Angle: Less than 15 degrees for focused detection
- 2-Piece Set: Includes 2 ultrasonic sensors
SPECIFICATION
| Specification | Value |
|---|---|
| Product Type | Ultrasonic Distance Sensor |
| Model | HC-SR04 |
| Operating Voltage | 5V |
| Logic Voltage | 3.3V or 5V |
| Detection Range | 2cm - 450cm |
| Accuracy | Up to 3mm |
| Sensor Angle | < 15 degrees |
| Static Current | < 2mA |
| Trigger Input Width | 10µS |
| Echo Output Signal | TTL PWM signal |
| Operating Frequency | 40Hz |
| Size | 45 x 20 x 15 mm |
| Weight | 10g |
| Color | Blue |
| Package Quantity | 2 pieces |
Tutorials
- Arduino - Ultrasonic Sensor tutorial
- Arduino Uno R4 - Ultrasonic Sensor tutorial
- Arduino Nano - Ultrasonic Sensor tutorial
- Arduino Nano ESP32 - Ultrasonic Sensor tutorial
- ESP32 - Ultrasonic Sensor tutorial
- ESP32 MicroPython - Ultrasonic Sensor tutorial
- ESP8266 - Ultrasonic Sensor tutorial
- Raspberry Pi - Ultrasonic Sensor tutorial
- Raspberry Pi Pico - Ultrasonic Sensor tutorial
COMPATIBLE HARDWARE
- Arduino boards (UNO, Mega, Nano, etc.)
- ESP32 development boards
- ESP8266 (NodeMCU, Wemos D1, etc.)
- Raspberry Pi (all models)
- Raspberry Pi Pico
- Any microcontroller with digital I/O pins and 5V power supply









