HC-SR04 Ultrasonic sensor – distance meter

(1 customer review)

€1,95

Sensor or distance measurement for an Arduino or other microcontroller.

115 in stock

HC-SR04 housing with servo mounting

Ultrasonic sensor holder HC-SR04

SKU: HE0114-002 Categories: , Tags: , , , , , Send:

Description

HC-SR04 ultrasonic sensor uses sonar to determine distance to an object. The sensor provides excellent accuracy and stable measurements. An easy module complete with ultrasonic transmitter and receiver. Sunlight or black material will not affect the measurements.

HC-SR04 Ultrasonic sensor specifications:
– Works on: 5V.
– Standby consumption: <2mA
– Effective angle: <15°.
– Range: 2cm – 400cm.
– Resolution: 0.3cm.

The HC-SR04 module has 4 pins:
Vcc: 5.0 volt power supply
Trig: sends the signal
Echo: receives the signal
Gnd: Ground

Arduino code example:

/*
 VCC to arduino 5v GND to arduino GND
 Echo to Arduino pin 13 Trig to Arduino pin 12
 */

#define trigPin 12
#define echoPin 13

void setup() {
  Serial.begin (9600);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
}

void loop() {
  int duration, distance;
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(1000);
  digitalWrite(trigPin, LOW);
  duration = pulseIn(echoPin, HIGH);
  distance = (duration/2) / 29.1;
  if (distance >= 200 || distance <= 0){
    Serial.println("Out of range");
  }
  else {
    Serial.print(distance);
    Serial.println(" cm");
  }
  delay(500);
}

1 rating for HC-SR04 Ultrasonic sensor – distance meter

  1. Electronics4Fun (verified owner) –

    For a low price a good, accurate distance sensor, easy to connect to your Arduino, just upload the code and the measuring can start. This module works fine for me from a distance of 2 cm. I wanted to measure the water level in a container with it and this works very well, as long as it is an open system. With a lid on and this sensor inserted, condensation can form on the sensor and the measurement is affected.

Only logged in customers who have purchased this product may leave a review.

Shipping within the Netherlands

This product will be delivered via PostNL letter post in a bubble envelope.
- €3.45 shipping costs for orders under €25.
- €2.95 shipping costs for orders between €25 - €45.
- Orders above € 45,- will be park for free sent by PostNL letter post.

  • Ordered before 16:30 PM on workdays, shipped the same day!
    Click here for costs outside the Netherlands.
  • Product question?

      Your Name (required)

      Your Email (required)

      your question

      You may also like ...