HC-SR04 Ultrasonic distance measurement sensor module

Get it from

simplelabs
entesla
fabtolab
fabtolab
fabtolab
fabtolab
eflmgsuperlabs
eflmgsuperlabs
protocentral
entesla

Product Description

HC-SR04 Ultrasonic Distance Measurement sensor module.

4-Pin, One each for VCC, Trigger, Echo and Ground.

Its a celebrity sensor module. You will find tons of information and how-to's on it on the web.

Specifications:

  • power supply :5V
  • DC quiescent current : <2mA
  • effective angle: <15°
  • ranging distance : 2cm –450 cm
  • resolution : 0.3 cm

HC-SR04 Ultrasonic Distance Measurement sensor module.

4-Pin, One each for VCC, Trigger, Echo and Ground.

Its a celebrity sensor module. You will find tons of information and how-to's on it on the web.

Specifications:

  • power supply :5V
  • DC quiescent current : <2mA
  • effective angle: <15°
  • ranging distance : 2cm –450 cm
  • resolution : 0.3 cm

HC-SR04 Ultrasonic Distance Measurement sensor module.

4-Pin, One each for VCC, Trigger, Echo and Ground.

Its a celebrity sensor module. You will find tons of information and how-to's on it on the web.

Specifications:

  • power supply :5V
  • DC quiescent current : <2mA
  • effective angle: <15°
  • ranging distance : 2cm –450 cm
  • resolution : 0.3 cm

HC-SR04 Ultrasonic Distance Measurement sensor module.

4-Pin, One each for VCC, Trigger, Echo and Ground.

Its a celebrity sensor module. You will find tons of information and how-to's on it on the web.

Specifications:

  • power supply :5V
  • DC quiescent current : <2mA
  • effective angle: <15°
  • ranging distance : 2cm –450 cm
  • resolution : 0.3 cm

This performance of the ultrasonic sensor distance measuring module is stable, measure the distance accurately. The module is with High precision, blind spots (3cm) super close. This module provides a full set of ranging process.

- Model: HC-SR04
- Color: Blue + Silver
- Working voltage : 5V(DC)
- Static current: Less than 2mA.
- Output signal: Electric frequency signal, high level 5V, low level 0V.
- Sensor angle: Not more than 15 degrees.
- Detection distance: 2cm~450cm.
- High precision: Up to 3mm
- Mode of connection: VCC / trig(T) / echo(R) / GND
- Module Working Principle:
- Adopt IO trigger through supplying at least 10us sequence of high level signal
- The module automatically send eight 40khz square wave and automatically detect whether receive the returning pulse signal
- If there is signals returning, through outputting high level and the time of high level continuing is the time of that from the ultrasonic transmitting to receiving

Documents:

Datasheet

The HC SR04 is an inexpensive ultrasonic distance sensor that works out of the box with an Arduino.

Specifications:
power supply :5V DC
quiescent current : <2mA
effectual angle: <15°
ranging distance : 2cm – 500 cm
resolution : 0.3 cm
Works with Arduino

Sample Arduino Code

/* HC-SR04
A Simple Modified version of the Ping Sensor Program t

*/

// this constant won't change. It's the pin number
// of the sensor's output / trigger
const int echo = 8, Trig = 9;

void setup() {
// initialize serial communication:
Serial.begin(9600);
pinMode(Trig, OUTPUT);
pinMode(echo, INPUT);
}

void loop()
{
// establish variables for duration of the ping,
// and the distance result in inches and centimeters:
long duration, inches, cm;

// The PING))) is triggered by a HIGH pulse of 10 microseconds.
// Give a short LOW pulse beforehand to ensure a clean HIGH pulse:

digitalWrite(Trig, LOW);
delayMicroseconds(2);
digitalWrite(Trig, HIGH);
delayMicroseconds(10);
digitalWrite(Trig, LOW);

// The echo pin is used to read the signal from the PING))): a HIGH
// pulse whose duration is the time (in microseconds) from the sending
// of the ping to the reception of its echo off of an object.

duration = pulseIn(echo, HIGH);

// convert the time into a distance
inches = microsecondsToInches(duration);
cm = microsecondsToCentimeters(duration);

Serial.print(inches);
Serial.print("in, ");
Serial.print(cm);
Serial.print("cm");
Serial.println();

delay(100);
}

long microsecondsToInches(long microseconds)
{
// According to Parallax's datasheet for the PING))), there are
// 73.746 microseconds per inch (i.e. sound travels at 1130 feet per
// second). This gives the distance travelled by the ping, outbound
// and return, so we divide by 2 to get the distance of the obstacle.
return microseconds / 74 / 2;
}

long microsecondsToCentimeters(long microseconds)
{
// The speed of sound is 340 m/s or 29 microseconds per centimeter.
// The ping travels out and back, so to find the distance of the
// object we take half of the distance travelled.
return microseconds / 29 / 2;
}

This is a low cost Ultrasonic Distance Sensor provides a non-contact distance measurement with a fine accuracy of 3mm. The module is capable of measuring distance from obstacles in range of 2 cm to 400 cm or 1" to 3 Ft. Unlike IR sensors, the performance of this sensor is no dependent on the sunlight or color of the object. The module comes in a compact form factor with a ultrasonic transmitter, receiver and signal conditioning circuit on-board.

Specification

●       Power Supply :+5V DC

●       Quiescent Current : <2mA

●       Working Current: 15mA

●       Effectual Angle: <15°

●       Ranging Distance : 2cm – 400 cm/1" - 13ft

●       Resolution : 0.3 cm

●       Measuring Angle: 30 degree

●       Trigger Input Pulse width: 10uS

●       Dimension: 45mm x 20mm x 15mm 

Working Principle

To start measurement, the Trig pin of SR04 must receive a pulse of high (5V) for at least 10us, this will initiate the sensor will transmit out 8 cycle of ultrasonic burst at 40kHz and wait for the reflected ultrasonic burst. When the sensor detected ultrasonic from receiver, it will set the Echo pin to high (5V) and delay for a period (width) which proportion to distance. To obtain the distance, measure the width (Ton) of Echo pin.

 

Time = Width of Echo pulse, in uS (micro second)

●       Distance in centimetres = Time / 58

●       Distance in inches = Time / 148

●       Or you can utilize the speed of sound, which is 340m/s

 

 

Note: Connect the GND pin first before supplying power to VCC and make sure the surface of object to be detected should have at least 0.5 meter2 for better performance.

 

 

This is a low cost Ultrasonic Distance Sensor provides a non-contact distance measurement with a fine accuracy of 3mm. The module is capable of measuring distance from obstacles in range of 2 cm to 400 cm or 1" to 3 Ft. Unlike IR sensors, the performance of this sensor is no dependent on the sunlight or color of the object. The module comes in a compact form factor with a ultrasonic transmitter, receiver and signal conditioning circuit on-board.

Specification

●       Power Supply :+5V DC

●       Quiescent Current : <2mA

●       Working Current: 15mA

●       Effectual Angle: <15°

●       Ranging Distance : 2cm – 400 cm/1" - 13ft

●       Resolution : 0.3 cm

●       Measuring Angle: 30 degree

●       Trigger Input Pulse width: 10uS

●       Dimension: 45mm x 20mm x 15mm 

Working Principle

To start measurement, the Trig pin of SR04 must receive a pulse of high (5V) for at least 10us, this will initiate the sensor will transmit out 8 cycle of ultrasonic burst at 40kHz and wait for the reflected ultrasonic burst. When the sensor detected ultrasonic from receiver, it will set the Echo pin to high (5V) and delay for a period (width) which proportion to distance. To obtain the distance, measure the width (Ton) of Echo pin.

 

Time = Width of Echo pulse, in uS (micro second)

●       Distance in centimetres = Time / 58

●       Distance in inches = Time / 148

●       Or you can utilize the speed of sound, which is 340m/s

 

 

Note: Connect the GND pin first before supplying power to VCC and make sure the surface of object to be detected should have at least 0.5 meter2 for better performance.

 

 

Ultrasonic ranging module HC-SR04 provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic transmitters, receiver and control circuit.

The basic principle of work:

  • Using IO trigger for at least 10us high level signal,

  • The Module automatically sends eight 40 kHz and detect whether there is a pulse signal back.

  • If the signal back, through high level , time of high output IO duration is the time from sending ultrasonic to returning. Test distance = (high level time×velocity of sound (340M/S) /2


Wire connecting direct as following: 1. 5V Supply 
2. Trigger Pulse Input
3. Echo Pulse Output
4. GND
 

If you are sourcing a ultrasonic ranging module , the HC-SR04 is good choose . Its stable performance and high ranging accuracy  make it a popular module in electronic market .

Compared to the Shape IR ranging module , HC-SR04 is more inexpensive than it . But it has the same ranging accuracy and longer ranging distance.

More details:

  • power supply :5V DC

  • quiescent current : <2mA

  • effectual angle: <15°

  • ranging distance : 2cm – 500 cm

  • resolution : 0.3 cm

There are 4 pins out of the module : VCC , Trig, Echo, GND . So it’s a very easy interface for controller to use it ranging. The all process is : pull the Trig pin to high level  for more than 10us impulse , the module start ranging ; finish ranging , If you find an object in front , Echo pin will be high level , and based on the different distance, it will take the different duration of high level. So we can calculated the distance easily :

Distance = ((Duration of high level)*(Sonic :340m/s))/2

Finally , look at the back of the module .All of the chip in the module have been burnish , maybe the author want to prevent the designed from plagiarism. But ultrasonic ranging module is nearly the same principle, so it’s not hard to speculated that the role of the chip — I’m sure at least one 74series chip on it ; ) . It is not a difficult task to crack it , but … it’s at so low a price , even cheaper than your copy .

Ultrasonic ranging module HC-SR04 provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic transmitters, receiver and control circuit.

The basic principle of work:

  • Using IO trigger for at least 10us high level signal,

  • The Module automatically sends eight 40 kHz and detect whether there is a pulse signal back.

  • If the signal back, through high level , time of high output IO duration is the time from sending ultrasonic to returning. Test distance = (high level time×velocity of sound (340M/S) /2


Wire connecting direct as following: 1. 5V Supply 
2. Trigger Pulse Input
3. Echo Pulse Output
4. GND
 

If you are sourcing a ultrasonic ranging module , the HC-SR04 is good choose . Its stable performance and high ranging accuracy  make it a popular module in electronic market .

Compared to the Shape IR ranging module , HC-SR04 is more inexpensive than it . But it has the same ranging accuracy and longer ranging distance.

More details:

  • power supply :5V DC

  • quiescent current : <2mA

  • effectual angle: <15°

  • ranging distance : 2cm – 500 cm

  • resolution : 0.3 cm

There are 4 pins out of the module : VCC , Trig, Echo, GND . So it’s a very easy interface for controller to use it ranging. The all process is : pull the Trig pin to high level  for more than 10us impulse , the module start ranging ; finish ranging , If you find an object in front , Echo pin will be high level , and based on the different distance, it will take the different duration of high level. So we can calculated the distance easily :

Distance = ((Duration of high level)*(Sonic :340m/s))/2

Finally , look at the back of the module .All of the chip in the module have been burnish , maybe the author want to prevent the designed from plagiarism. But ultrasonic ranging module is nearly the same principle, so it’s not hard to speculated that the role of the chip — I’m sure at least one 74series chip on it ; ) . It is not a difficult task to crack it , but … it’s at so low a price , even cheaper than your copy .