PIR sensor - Its full form is - Passive Infrared sensor
PIR sensor bhut hi useful sensor hai ajkal iska use automation, security, robotics etc. ek field mai kafi kiya ja rha hai. Ise passive infrared isliye kha jata hai kuiki ye koi bhi IR wave transmit nhi krta hai. Yah apne nearist ane wali IR wave ki detect krta hai.
PIR sensor ek motion Sensor hota hai. Basically iska use motion detection ke liya jata hai.
Real image of PIR sensor -EKMB1393111K :
Niche figure(1) mai PIR sensor ki original image di hai. Isme PIR ke terminal ko identify kiya hai.
(1). PIR sensor - EKMB1393111K |
Working of PIR sensor -
Yah sensor IR technology par kam krta hai. Basically iska use motion detection ke liya jata hai. Yah un object or things ko detect krta hai jo heat produce karte hai. Jese human ya koi bhi sajeev cheej.
For example- Hmm iski help se automatic power system bna skte hai. Jese ki hma chahte hai, jese hi ham night mai apne room mai enter kre to light Bulb ON ho jaye or room se out hote hi bulb OFF ho jaye. Ye automatic system PIR se bnaya jata hai.
Room ki light tab tak ON rhegi jb tak room mai koi moments hogi. Mana ke liye hmm so jate hai to iss condition mai light OFF ho jayegi.
Kuki jab tak hmm koi bhi body moment krte hai tab IR ki frequency me changes ate rhte hai iss condition mai bulb ON rhega or Jese hi frequency constant ho jayegi means iss condition mai room mai koi moment nhi ho rhi hai i.e. bulb OFF ho jayega.
Pin out of PIR sensor EKMB1393111K -
Pin 1st - It is VCC pin VCC should be connected to 3V DC to 6 V DC.
Pin 2nd - It is ground pin.
Pin 3rd - It is Output pin, this pin connected to the any GPIO pin of Microcontroller.
PIR different- different model or size mai market mai mil jata hai but iski pin details same rhti hai
Arduino Code of PIR sensor -
you can copy - paste this code.
Program start ↓
int PIR_sensor = 2; // For PIR_sensor
int Led = 12; // For LED
int state = LOW; // by default, no motion detected
int val = 0; // variable to store the sensor status
void setup() {
pinMode(led, OUTPUT); // initialize LED as an output
pinMode(sensor, INPUT); // initialize sensor as an input
Serial.begin(9600); // initialize serial
}
void loop()
{
val = digitalRead(sensor); // read sensor value
if (val == HIGH) { // check if the sensor is HIGH
digitalWrite(Led, HIGH); // turn LED ON
delay(5000); // delay 100 milliseconds
if (state == LOW) {
Serial.println("Motion detected!");
state = HIGH; // update variable state to HIGH
}
}
else
{
digitalWrite(Led, LOW); // turn LED OFF
delay(200); // delay 200 milliseconds
if (state == HIGH){
Serial.println("Motion stopped!");
state = LOW; // update variable state to LOW
}
}
Program END
.
Also read
First Microprocessor of India
Electronics क्या है ?
Radiation क्या है ?
Dear readers if you have any question and suggestions related to my any post or My site (Electronics & Technology) so you can leave message in comment box. I will try to give answer of your questions in short time.
Radiation क्या है ?
Please share my post link and Follow
Thank you very much
ReplyDeletefashionothon give huge discount on laptops, smartphone,and more electronics products.
Hurry up get UP TO 60% off and 10% cashback on your fashionothon account.
Shop now
visit here
www.fashionothon.com
ReplyDeleteThis blog well explaining all the important factors of Search engine optimization.No one blog can not explain this much about Search Engine optimization.
ReplyDeleteBuy UV Ballast
I would recommend my profile is important to me, I invite you to discuss this topic... best projector screen
ReplyDeleteSome units are only able to be used on a specific muscle region. best online shopping sites for electronics
ReplyDeleteVery informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. https://tvbfdeals.com
ReplyDelete