Ultrasonic Sensor HC-SR04 (40 kHz, 4-Pins)



  • Supply: 4.8-5.5V
  • 4 PIN: Vcc, GND, ECHO, TRIG.
  • Ultrasonic range: 2cm-400cm.
  • Non-contact measurement function.
  • Ranging accuracy: 3mm.
  • IO trigger: 10us high-level signals.
  • Working: Automatically sends eight 40kHz and detects whether there is a pulse signal back.

Stock Available


Ultrasonic Sensor is a very popular module for the range detection of an object. it can be interfaced with 5V logic microcontroller boards like Arduino, AVR, 8051, etc.

The Sensor automatically sends  40kHz frequency and detects whether there is a pulse signal back.

If the signal comes back, through high level, time of high output IO duration is the time from sending ultrasonic to returning.  Ultrasonic sensors transmit ultrasonic waves from its sensor head and receive the ultrasonic waves reflected by the object in the way. By measuring the length of time from the transmission to the reception of the sonic wave, it detects the position of the object.


  • Connect 5v DC Power Supply to Vcc & power up the Sensor.
  • Connect Trig and Echo to your pins of the microcontroller.
  • You only need to supply a  short  10uS  pulse to the trigger input to start the ranging,  and then the Sensor will send an 8 cycle burst of ultrasound at 40 kHz and raise its echo.
  • You can calculate the range through the time interval between sending trigger signals and receiving echo signals.  Formula:  uS  /  58  =  centimeters  or  uS  /  148  =inch;  or:  the  range  = high level time * velocity (340M/S) / 2; we suggest to use over 60ms measurement cycle, in order to prevent trigger signal to the echo signal.


There are no reviews yet.

Be the first to review “Ultrasonic Sensor HC-SR04 (40 kHz, 4-Pins)”