- New
Product description: Ultrasonic distance sensor HC-SR04 2 - 400 cm - SparkFun SEN-28798
The HC-SR04 is a popular ultrasonic module designed for precise, non-contact distance measurement . The sensor utilizes a 40 kHz ultrasonic transmitter and receiver . Measurement is achieved by analyzing the return time of the signal reflected from an obstacle. A measurement range of 2 cm to 400 cm and an accuracy of up to 3 mm make the module ideal for building mobile robots, obstacle avoidance systems, intelligent devices, and educational projects. The sensor is equipped with four pins : VCC, Trig, Echo, and GND, ensuring easy integration with microcontrollers and development platforms. Additional electronics stabilizing readings help reduce the problem of unstable measurement results in demanding applications.
The product is compatible with microcomputers such as Arduino and Raspberry Pi .
Main features of the distance sensor
- Non-contact measurement : measuring distance without physical contact with the object
- Wide measurement range : supports distances from 2 cm to 4 m
- High accuracy : measurement accuracy up to 3 mm
- 3.3V and 5V power supply : compatible with many development platforms
- 40 kHz operating frequency : stable and fast distance measurement
- Additional filtering system : reduces unstable and jumping readings
- Simple operation : communication via Trigger and Echo pins
- Compact design : small dimensions make it easy to install in DIY projects and robots
HC-SR04 Sensor Pinout and Compatibility
The module features four basic pins for quick integration with electronic systems. The VCC pin powers the module with a voltage between 3.3V and 5V , GND provides the system ground, and the Trig and Echo pins are used to trigger measurements and receive feedback, respectively. The sensor is compatible with popular educational and prototyping platforms, such as Arduino , SparkFun RedBoard , micro:bit , ESP32 , ESP8266 , and Raspberry Pi . Thanks to its simple TTL interface, it can be operated by virtually any microcontroller equipped with digital inputs and outputs. The module is also ideal for robotic projects, automation systems, and intelligent IoT devices.

Diagram of connecting the sensor to Arduino.
Sensor technical specifications
- Operating voltage: 3.3 V to 5 V DC
- Current consumption: 15 mA
- Operating frequency: 40 kHz
- Measuring range: from 2 cm to 400 cm
- Measurement accuracy: up to 3 mm
- Measurement angle: 15°
- Trigger signal: TTL 10 µs pulse
- Echo signal type: TTL signal proportional to distance
- Interface: Trigger / Echo
- Color: red
- Dimensions: 45 x 20 x 15 mm
Contents of the set
- 1x Ultrasonic Distance Sensor HC-SR04-R
Useful links |


