סל הקניות
0 פריטים
 
             קטגוריות
 

Ultrasonic Ranging Detector Module HC-SR04

Ultrasonic Ranging Detector Module HC-SR04
לחץ להגדיל
מחיר ₪35
זמינות המוצר במלאי
דגם SOD00201
דירוג ממוצע ללא דירוג

Share |


כמות הוסף לסל

Ultrasonic Ranging Detector Module HC-SR04
 

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 Shap IR ranging module , HC-SR04 is more inexpensive than it .
But it has the same ranging accuracy and longer ranging distance.

 

 

 


 

 

Specifications

  • Power supply: 5V DC
  • Quiescent current: <2mA
  • Effectual angle: <15°
  • Ranging distance: 2cm – 500 cm
  • Resolution: 1 cm
  • Ultrasonic Frequency: 40k Hz

Datasheet

Library

 


 

 

Sample Code:

/*
HC-SR04 Ping distance sensor
VCC to arduino 5v GND to arduino GND

Trig to Arduino pin 12
Echo to Arduino pin 13
*/

#define trigPin 13
#define echoPin 12

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

void loop() {
  long duration, distance;
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);

  delayMicroseconds(10); // Added this line
  digitalWrite(trigPin, LOW);
  duration = pulseIn(echoPin, HIGH);
   
  delay(500);
}


 

כתוב בקורת
שם פרטי


ביקורת : הערה ללא תרגום מ HTML!

דירוג רע            טוב

הכנס את הקוד התיבה

Ultrasonic Ranging Detector Module HC-SR04
לחץ להגדיל
Ultrasonic Ranging Detector Module HC-SR04
לחץ להגדיל
Ultrasonic Ranging Detector Module HC-SR04
לחץ להגדיל
Ultrasonic Ranging Detector Module HC-SR04
לחץ להגדיל