Categorías

Ref. 108.MD9046

HC-SR501 SENSOR PIR AJUSTABLE PARA ARDUINO

Stock: 243  
Ref. 108.MD9046
Precio (IVA incluido) 2,372 €
Unidades ≥ 10 ≥ 20 ≥ 30 ≥ 40
DescuentoDescuentoprecio-3%-0,0712,300-5%-0,1192,253-7%-0,1662,206-10%-0,2372,134
(PIR) Passive Infra-Red sensors are used to detect motion based on the infrared heat in the surrounding area. This makes them a popular choice when building a system to detect potential intruders or people in general. These sensors can take for 10-60 seconds to warm up, Also You can change the delay adjustment and sensitivity adjustment by changing the value of capacitors

e of HC-SR501 PIR Motion SensorArduino
SAMPLE CODE

// (HC-SR501) PIR Sensor

int PIRpin = 8; // PIR connected pin
int value;

void setup() {
Serial.begin(9600);
pinMode(2, OUTPUT); //For Led
}

void loop() {
value = digitalRead(PIRpin); //Read PIR state

if (value == LOW) {
Serial.println("No Movement");
digitalWrite (2, LOW);
}
else {
Serial.println("Movement!");
digitalWrite (2, HIGH);

}

delay(100); //Wait
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// (HC-SR501) PIR Sensor

int PIRpin = 8; // PIR connected pin
int value;

void setup() {
Serial.begin(9600);
pinMode(2, OUTPUT); //For Led
}

void loop() {
value = digitalRead(PIRpin); //Read PIR state

if (value == LOW) {
Serial.println("No Movement");
digitalWrite (2, LOW);
}
else {
Serial.println("Movement!");
digitalWrite (2, HIGH);

}

delay(100); //Wait
}

Información adicional

  • Periféricos de Cabo Vilán S.L. - C.I.F.: ESB70364260
  • Sofía Rivas, 1 - 15123 - Camariñas - A Coruña - España.