HY-SRF05 Ultrasonic Distance Sensor Module

KSh 250.00

Add to Wishlist
Add to Wishlist
Guaranteed Safe Checkout
Features:
Detecting range: 3cm-4M
Best in 30 degree angle
Electronic brick compatible interface
5VDC power supply
Breadboard friendly
Dual transducer
For library ready
Specification:
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 0.3cm
Working tempter:-20C___+60C
Weight: 10g
Size: 45x 21mm (L x W)
Connector Pin: VCC Trig (T) Echo(R) OUT GND
Example Code;

Wiring:

VCC → 5V

GND → GND

Trig → Pin 9

Echo → Pin 10

// Define pins for the ultrasonic sensor
const int
trigPin = 9;
const int echoPin = 10;
// Variable to store duration and distance
long duration;
int distance;
void setup() {
// Initialize serial communication
Serial.begin(9600);
// Set the trigPin as OUTPUT and echoPin as INPUT

pinMode
(
trigPin, OUTPUT);
pinMode(echoPin, INPUT);
}
void loop() {
// Clear the
trigPin
digitalWrite
(trigPin, LOW);
delayMicroseconds(2);
// Trigger the sensor by setting trigPin high for 10 microseconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Read the echoPin and calculate the duration of the pulse
duration = pulseIn(echoPin, HIGH);
// Calculate the distance in centimeters
distance = duration * 0.034 / 2;
// Print the distance to the Serial Monitor
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");
// Wait a short time before next reading
delay(500);
}
Package Include:
1 *HY-SRF05 Ultrasonic Distance Sensor Module

Reviews

There are no reviews yet.

Be the first to review “HY-SRF05 Ultrasonic Distance Sensor Module”

Your email address will not be published. Required fields are marked *

Frequently bought together

HY-SRF05  Ultrasonic Distance Sensor Module
HY-SRF05 Ultrasonic Distance Sensor Module
KSh 250.00
+
180 Degree Outdoor IP44 Security PIR Infrared Motion Sensor
180 Degree Outdoor IP44 Security PIR Infrared Motion Sensor
KSh 1,200.00
+
DC-DC Converter Cable USB Male Connector 5V to 9V/12V
DC-DC Converter Cable USB Male Connector 5V to 9V/12V
KSh 400.00
Shopping Cart