How PIR Sensor Works and How To Use It with Arduino

  Рет қаралды 1,351,280

How To Mechatronics

How To Mechatronics

Күн бұрын

Пікірлер: 351
@neutron1969
@neutron1969 8 жыл бұрын
Ubedljivo najbolji tutorijal koji nadjoh na netu u vezi PIR-a. Hvala najlepse!
@weekendprogrammer7545
@weekendprogrammer7545 5 жыл бұрын
I have been using PIR sensor from long time I did not know that repeat and Non-repeat thing. Good one bro.
@NAtira-yg9fu
@NAtira-yg9fu 3 жыл бұрын
Where were u been using it
@apotre1207
@apotre1207 Жыл бұрын
@@NAtira-yg9fu nowhere
@Saraikinaat871
@Saraikinaat871 3 жыл бұрын
Bro ...ur code is so simple and i was searching lke this....thax.special thax
@blackpanther4656
@blackpanther4656 3 жыл бұрын
What are the things they used
@Saraikinaat871
@Saraikinaat871 3 жыл бұрын
@@blackpanther4656 Seee vedeo
@karanpahwa5014
@karanpahwa5014 8 ай бұрын
crisp yet super informative,good work man!
@sevillain1
@sevillain1 2 жыл бұрын
I was watching for the info on the pir sensor .. amazing breakdown and tutorial! Thank you!
@anytimecinema459
@anytimecinema459 8 жыл бұрын
Thanks a lot for making this tutorial, and making everything clear in just 4 minutes :)
@maza6357
@maza6357 8 жыл бұрын
You can run the sensor directly with relay module or use a transistor in the middle because the sensor board has enough controls for distance and time even giving logic signal as output. However if the application requires processing or running a certain control schema with multiple sensors Arduino will be required. Arduino will take care of all timing and trigerring, only the distance needs to be adjusted at the level of sensor board.
@cristian-bull
@cristian-bull 8 жыл бұрын
Depending on the relay module and the sensor, it could not work. Some sensors have a 3.3v output. Besides, the relay in the example is active with a negative input. Anyway, the Arduino can be replaced by a transistor ._.
@bartdelabarre3432
@bartdelabarre3432 4 жыл бұрын
EXCELLENT! I want to make a motion activated sprinkler to keep deer out of our garden AND wanted see if an Arduino or PI would be of any use in the sprinkler contraption. Your video nailed it. THANK YOU!
@HowToMechatronics
@HowToMechatronics 4 жыл бұрын
Glad you found it helpful, cheers!
@ruffnck4637
@ruffnck4637 5 жыл бұрын
You’re the best at detailed explanations
@Canadazeus
@Canadazeus 7 жыл бұрын
Excellent tutorial. I finally get to understand how to use something without further research. Thanks.
@imnotleoz5486
@imnotleoz5486 9 жыл бұрын
omg , thank you so much! I was trying to write a code which will enable the LED to be on as long as there's movement!!! now I'm going to trying the repeatable mode that you just mentioned to see if it really works without changing the code !!
@RAHULSHARMA-rd3yz
@RAHULSHARMA-rd3yz 4 жыл бұрын
does it work??
@ganis6020
@ganis6020 7 жыл бұрын
Dejan i LOVE YOU and YOUR WORK !
@Tech_Brigadier
@Tech_Brigadier 2 жыл бұрын
hello sir after watching your video I thought if I can use a PIR sensor instead of an ultrasonic sensor in obstacle avoiding car will it work or it will keep crasing
@ForgottenLegendsOfTomorrow
@ForgottenLegendsOfTomorrow 4 жыл бұрын
what do you mean about non repeatable trigger? can't understand. an example would be helfpul
@charleslyell3748
@charleslyell3748 4 жыл бұрын
Repeatable trigger: every time the sensor detects a movement, It resets the timer to zero. Otherwise, the timer starts counting after the first detection and posterior detections will be ignored.
@NBSuperb
@NBSuperb 6 жыл бұрын
is there any method to reduce the delay time to 0 so we can take continuous inputs?
@umxrr8677
@umxrr8677 4 жыл бұрын
Change the jumper to other side
@eliasibrahim1055
@eliasibrahim1055 8 жыл бұрын
Thank you very much for making such a great tutorial.
@agstechnicalsupport
@agstechnicalsupport 5 жыл бұрын
Good explanation of PIR sensor activated electronic circuits. Thank you !
@satalajmore
@satalajmore 2 жыл бұрын
Thanks for the explanation of PIR working
@mikeearls126
@mikeearls126 4 жыл бұрын
This guy sounds like an extremely smart version of Borat.
@sophia-tj1ck
@sophia-tj1ck 4 жыл бұрын
I'm new to pir sensors. Can I use 4 pir sensors with one Arduino?
@ITLBGaming
@ITLBGaming 4 жыл бұрын
Somebody didn't get this comment. I understand, and I agree. Very nice
@johnmax8829
@johnmax8829 4 жыл бұрын
hahahahahahahahahaha
@zero3905
@zero3905 4 жыл бұрын
@@sophia-tj1ck yes
@MAIEL93
@MAIEL93 3 жыл бұрын
Awesome! what is the maximum distance the sensor can detect?
@Mirceabogdanstanciu
@Mirceabogdanstanciu 3 жыл бұрын
it said in the video, up to 7m
@يوسفسعدجاسمالبدري
@يوسفسعدجاسمالبدري Ай бұрын
​@@MirceabogdanstanciuHow do I increase the sensor distance?
@cambodianriverpig7613
@cambodianriverpig7613 2 жыл бұрын
Can you use the Pyroelectric sensor for thermal vision?
@amr.3k
@amr.3k 5 жыл бұрын
Nice, simple illustration. Thanks
@muhammadqaisarali
@muhammadqaisarali 4 жыл бұрын
Well..good explanation, but I am confused for 1 thing, why Arfuino is present here...as the pin can be directly connected to relay Module
@navadeep025
@navadeep025 4 жыл бұрын
Just because he had a spare!
@algebraguy
@algebraguy 2 жыл бұрын
Good day, I am one of your best subscribers and supporter. Would it be ok to ask where can we buy this project?
@MrNams
@MrNams 4 жыл бұрын
My hc-sr501 gives always high output, what is issue?
@ColinRichardson
@ColinRichardson 8 жыл бұрын
I presume you could do this without the arduino? Have the out on the sensor connected to the trigger on the relay and change NC/NO for the lamp? Just need a 5v source to power the relay and sensor?
@krishnakumariyer4579
@krishnakumariyer4579 4 жыл бұрын
Excellent know-how on PIR sensor Dejan. It was quite enlightening. Looking at your vast expertise in such devices, I would like you to do us enthusiasts, one more favour. There is this device "Omron D6T Thermal Sensor", which is also based on sensing the body heat, but better than PIR sensor, as it does not require motion to occur, to get triggered. The advantage is that as long as the human is in the frame of view, it stays triggered, unlike the PIR sensor, where if the human stays at one place without moving, the sensor is not able to sense the human presence. I have been looking around the internet for some help in using this device, but could not find any proper resource. Would appreciate if you could teach us to implement this device through a suitable project. Your teaching technique is very easy to understand and would definitely help everyone in getting to know this device and using it successfully. Many Thanks and keep up the good work.
@kunaldhar6713
@kunaldhar6713 3 жыл бұрын
Mate, can the same happen using ir reciver led?
@bad63r31
@bad63r31 9 жыл бұрын
U 4 ujutru ja naletim na tebe :) Hehe predobro radis posao, samo nastavi iako trenutno mozda ne poprimas dovoljno paznje koliko bi trebao.
@huzaifaahmad2289
@huzaifaahmad2289 4 жыл бұрын
do you have to keep moving your hand in the repeat trigger mode for it to stay on or will it stay on as long as it senses the IR heat from ur hand
@iiovetelaviv8094
@iiovetelaviv8094 9 жыл бұрын
Thank you for the great explanation!
@jeffcarpenter7721
@jeffcarpenter7721 3 жыл бұрын
thank you i was looking at changing the sensitivity on mine its exactly what i was looking for, here for an edit i always get motion no matter the settings for delay or sensitivity? not sure why
@larryzhang3446
@larryzhang3446 4 жыл бұрын
Dear friend, can I use part of your video in my company on-line seminar? I'm not sure if I can get your reply here, but look forward to your answer.
@FabianReschke
@FabianReschke 5 жыл бұрын
This video is incredibly good.
@AzeezAbdul-iv2sr
@AzeezAbdul-iv2sr 9 ай бұрын
00:03 IR sensors come in various package sizes. 00:53 Understanding the physical differences between IR receiver and transmitter 01:37 IR sensor detects objects by reflecting IR rays. 02:31 Voltage level depends on reflected light intensity 03:09 IR transmitters have limited range for detection purposes. 03:54 IR sensor detects objects based on reflected rays 04:34 IR sensor detects variations in reflection based on screen brightness 05:13 IR sensor detects different voltage levels for different colored lines Crafted by Merlin AI.
@koupohroyandredavid2639
@koupohroyandredavid2639 6 жыл бұрын
bro, what is your config for sensitivity and delay time on PIR???
@mobinwb
@mobinwb 4 жыл бұрын
They are hardware configured..2 potentiometers on the sensor PCB..Its mentioned in the video itself
@mfdares1809
@mfdares1809 8 жыл бұрын
First things first.. great tutorial... well done.. Since there is so much demand for a minimalistic working motion sensor tutorial (without Adreno)... Could you please make one... and share it. While making the tutorial.. MAKE SURE THAT YOU KEEP US IN MIND..... WE KNOW NOTHING ABOUT CIRCUITRY (NOT EVEN Soldering, OMs, resister, etc...). So,I request you to kindly make a real simple tutorial for us....if possible a minimalist one, without resister, OMs and a lot of explanation. Also make sure that you share your tips and tricks And the mistakes you did (so that we don't repeat them). I did search the internet and KZbin.. But couldn't find a tutorial with simple design and instructions. if anyone knows of such tutorial, please share the link. I'm planing to power a 5050 led strip with 12V, 2.5 or 5 mAh battery, Activated by this motion sensor.. If possible please let me know the minimum things required for this project.. ( right now I've got 1.battery, 2. Leds, 3. PIR motion sensor.)
@Invisible_particle
@Invisible_particle 3 жыл бұрын
Can we put a part instead to the light that can move
@bvgiri
@bvgiri 8 жыл бұрын
How reliable is the sensor? I am planning to use it for automatic door chime when someone walks into the front door. Thanks!
@bvgiri
@bvgiri 8 жыл бұрын
Thank you
@kml-iotechcreative4794
@kml-iotechcreative4794 Ай бұрын
this work only at night or day and night?
@karenberry9498
@karenberry9498 9 жыл бұрын
This is a great tutorial, thank you very much... John :)
@ericcheng5792
@ericcheng5792 8 жыл бұрын
I have a motion sensing lighting control in my office that I have to jump or wave my arms every 30 minutes to turn on the light. Since you are an expert, is there a convenient way to fool it?
@cristian-bull
@cristian-bull 8 жыл бұрын
xD Lit a candle in front of it, or better, use a regular switch.
@nidhishanand3447
@nidhishanand3447 4 жыл бұрын
Will it sense every moving object? Or just living objects
@ITLBGaming
@ITLBGaming 4 жыл бұрын
Objects that give off infrared radiation.
@charleslyell3748
@charleslyell3748 4 жыл бұрын
Any hot object.
@ilhamrhomadony326
@ilhamrhomadony326 7 жыл бұрын
thank you very much for your tutorial, its so helped
@SensorLEDLight
@SensorLEDLight 7 жыл бұрын
Nice video tutorial, which I added on my Facebook wall for motion sensors lights.
@fisslewine1222
@fisslewine1222 6 жыл бұрын
But is there a way to alter it to detect large animals instead of any movement, as even house hold spider can set them off!
@aglan
@aglan 6 жыл бұрын
Is there a way to dim the light for example if PIR sensor detects an object then the light will go ON and keep it on for sometime. Now if there is no object for 20 minutes, instead of turning off the light but dim the light instead for like 30 to 50% instead of 100% ON. Thank you.
@johnossi4234
@johnossi4234 9 жыл бұрын
Good tutorial. How do you read out the untriggered real time sensor output?
@xall1e
@xall1e 9 жыл бұрын
+John Ossi It returns either "motion (1)" or "not any motion (0)". Something like this would do the job :) #define pir A0 #define led 4 void setup() { pinMode(pir, INPUT); pinMode(led, OUTPUT); Serial.begin(9600); } void loop() { int val = digitalRead(pir); digitalWrite(led, digitalRead(pir)); Serial.print(val); Serial.print(' '); delay(100); }
@loriroslawski6561
@loriroslawski6561 8 жыл бұрын
searb .m seàrch
@zoegnappe
@zoegnappe 6 жыл бұрын
@@xall1e bulshit code
@efootballgamer9313
@efootballgamer9313 3 жыл бұрын
Thanks mate. It really helped with my project :))
@hariomparajapati4900
@hariomparajapati4900 6 жыл бұрын
Can it activate hot air or other hot object can we use 4-5 pir sensor to cover 360° area
@vrangarajan7623
@vrangarajan7623 6 жыл бұрын
Check in Amazon there is a product by Blakt Electrotech which can connect multiple PIR sensors upto 1000 Watts and it is just Rs.199 or so.
@hemashri
@hemashri 8 жыл бұрын
just watched today, Thanks, good works...
@borisloncar3011
@borisloncar3011 2 жыл бұрын
I have a Solar Lamp with a PIR Potion Sensor and a remote control with which I control the light. When I press Mod 1 ro on the remote it means that the light will turn on via the PIR sensor. when I get close to the PIR sensor the light turns on and automatically turns off in 20 to 30 seconds. My lamp has a Frenzel lens as you said in the video.
@PatrickGuerrisi
@PatrickGuerrisi 7 жыл бұрын
Whats the difference between PIR and IR from a surveilance camera
@clientesym
@clientesym 7 жыл бұрын
can the board send an sms when battery its low and when detected movement? can it be set to standby when no movement its detected to save energy?
@clientesym
@clientesym 7 жыл бұрын
Dejan Nedelkovski what is the name of the module any recommendation?
@jessmac2379
@jessmac2379 4 жыл бұрын
Can it give data for calculating distance of a target?
@TheOmfgorz
@TheOmfgorz 7 жыл бұрын
So if I take and wrap my hand with some missexcesive heat foil, the sensor will not react to my hand because it will not see the heat ?
@sweetvuvuzela4634
@sweetvuvuzela4634 5 жыл бұрын
TheOmfgorz yeh cos it detects the heat if you cover up no heat no sensor
@syednaseerahmed2890
@syednaseerahmed2890 2 жыл бұрын
Can we set the time after which .. the light automatically turn off
@David-ln5mg
@David-ln5mg 6 жыл бұрын
How big of an area can this type of sensor be made to cover? Would a commercial sized one be able to cover larger distances? Let's say 500 meters to 1km?
@abanoubsadik315
@abanoubsadik315 3 жыл бұрын
Can i replace the relay 2-channel module with single one module
@BruhMan_5
@BruhMan_5 4 жыл бұрын
I'm assuming if you removed the lens it would just shoot the ir in a straight line?
@TechStormers
@TechStormers 4 жыл бұрын
Yes it's correct.
@MrDavid949
@MrDavid949 4 жыл бұрын
In this example, could you just trigger the relay from the output of the PIR sensor?
@hossammoghrabi1021
@hossammoghrabi1021 8 жыл бұрын
can you tell me where did you get the music track and what is the name of it? thanks
@vinaybakle6443
@vinaybakle6443 6 жыл бұрын
Can we add hooters to it? And can we make arm disarm function using smartphone? Can we make like it will send message when motion happens?
@justardel2136
@justardel2136 2 жыл бұрын
with this work using uno R3 as well?
@wakwaobapa6709
@wakwaobapa6709 6 жыл бұрын
Can we use this for spesific objek?
@cippollino83
@cippollino83 7 жыл бұрын
HI, I JUST HAVE TRIED TO REPEAT STEP BU STEP YOUR PROJECT. UNFORTUNATELLY THE BULBS TURNS ON, BUT NEVER TURNS OFF. SOMEHOW IT DOES NOT TAKE IN ACCOUNT THE RIP SENSOR, ISN'T ? CHECKED THE WIRING AND WROTE DOWN YOUR SKETCH. I ADJUSTED THE DALAY TIME AND ALSO I MOVED THE JUMPER ON RIP SENSOR. IT STILL THE SAME. ANY IDEAS REGARDING THIS ISSUE? DO YUO THINK THE RIP SENSOR IS MALFUCTIONING?
@andrejklochan2286
@andrejklochan2286 7 жыл бұрын
The code is incomplete, you have to add: else{ digitalWrite(relayInput, HIGH); }
@b11918
@b11918 7 жыл бұрын
digitalWrite(7,HIGH); remember relay would turn off when the input is high and turn on when input is low !!! if you need full audrino code for anything then you can contact me !!
@fotobluzz9217
@fotobluzz9217 7 жыл бұрын
hi. is it posible with this Pir sensor to do some other activation of light. first detection on and stay on until seconde detection. i mean as hand wave in front of pir sensor. or it woud be better to use proximiti ir sensor. same first detection to on and stay on after secons detection. thank you.
@TheUnknownCatWarrior
@TheUnknownCatWarrior 3 жыл бұрын
The sensor can be directly connected to the relay module
@scuaaat8104
@scuaaat8104 7 жыл бұрын
Can I ask if all Arduino are the same. If not, what arduino did you use? Thank you!
@Michleone
@Michleone 5 жыл бұрын
Will it stay on if your hand is stationary?
@HopeIsAlliGot
@HopeIsAlliGot 5 жыл бұрын
Thanks my genius..... this video is soo knowledgeable.....
@sagirkhan6805
@sagirkhan6805 3 жыл бұрын
Very Nice Video, explained very well..Thanks a lot
@Pandafoot1
@Pandafoot1 5 жыл бұрын
May I ask you to give a fact based assessment about using the PIR sensor with either Arduino or a Rasberi Pi. The PIR is basically used in security situations and I seem to find only Rasberri Pi board uniting with PIR and exhanging through GSM WITH sms to cell phone notification
@drakehopkins5931
@drakehopkins5931 4 жыл бұрын
Will it work for an automobile as well ?
@kpf2875
@kpf2875 7 жыл бұрын
It was well explained. but i have a question. i have a pir and i am planning to make a motion sensor and i placed servo motor so it would rotate 180 degrees. but why will the pir detect something even if it is only moving ? i mean there are no humans or animals in front of the sensor, the servo is just moving the pir and the pir will detect something causing my alarms to beep. how will i solve this problem ?
@deadchords4919
@deadchords4919 7 жыл бұрын
Karl Philipp Fabre Maybe you dont suply enough voltage at the pir. I used 3.3 volts for the pir sensor and i had the same problem then i suply to it 5 volts and it worked
@gudellithrishool2249
@gudellithrishool2249 6 жыл бұрын
Which software you use for schemating drawding
@uditsaxena3844
@uditsaxena3844 3 жыл бұрын
Sir i have a question can we detect sun 🌞 rays also with it ?
@skibsted123
@skibsted123 3 жыл бұрын
with this set up, not sure, but there are mutiple sensors that can detect sunlight. the sensor in this video is mostly for infrared light
@woolfy02
@woolfy02 Жыл бұрын
Very cool! I've been trying to build a remote-controlled relay with camera (Through hardware or on an Android app). Basically, you could remotely connect to the pi / Arduino camera anytime and, hit a button that controls the relays action. Does anyone know of a similar project guide / tutorial? I ask because, I'm struggling trying to build it myself.
@speedogonzales7863
@speedogonzales7863 7 жыл бұрын
Thank you brother good job
@yudikurniaadiputra5766
@yudikurniaadiputra5766 7 жыл бұрын
I want ask if we stop our motion in front of pir sensors, the light will still on or off? And how to set a pir sensor so they wouldn't detect any kind of thing except human? Thanks for the answers :)
@gamestv4875
@gamestv4875 5 жыл бұрын
This would make for an interesting intrusion detector. But I am scared if that thing detects something in my room other than myself and I can't see shit ...lol Nice tutorial , thanks
@martinmartinez-ib6qw
@martinmartinez-ib6qw 7 жыл бұрын
Excellent videos... Please let me know what software you use for make the schematic? thanks
@rafaelgacura3461
@rafaelgacura3461 3 жыл бұрын
What is the maximum range of this sensor?
@davidmg1925
@davidmg1925 6 жыл бұрын
I take it's not massive step to include a camera in this set up also?
@يوسفسعدجاسمالبدري
@يوسفسعدجاسمالبدري Ай бұрын
How do I increase the sensor distance?
@shantixtri8399
@shantixtri8399 5 жыл бұрын
Does is really detect the motion of plantts
@muzammilbathi6483
@muzammilbathi6483 4 жыл бұрын
If flame is near to the sensor does PIR detect as human to that flame aur not..??
@Python4Fun
@Python4Fun 5 жыл бұрын
Very neat info. I like it.😘
@sapnaachaudhary8886
@sapnaachaudhary8886 7 жыл бұрын
Do i can use IR sensor for pulse detection? IF so how can i? help me out
@patchoulino
@patchoulino 7 жыл бұрын
what is pulse detection for you?
@LeonardoValente_
@LeonardoValente_ 9 жыл бұрын
I love your videos !!!
@LeonardoValente_
@LeonardoValente_ 9 жыл бұрын
I'm about to buy my first arduino and some sensors , what's some cool projects you recommend me to do ?
@muhdhaikal8457
@muhdhaikal8457 4 жыл бұрын
Can i placed arduno mega with arduino uno ?
@TalmadgesArcade
@TalmadgesArcade 3 жыл бұрын
thank you, and thanks for posting the code
@shivaranjanmenon1543
@shivaranjanmenon1543 7 жыл бұрын
Hey,wonderful tutorial! I had a doubt... In the Arduino code, you are taking the PIR's output variable as an integer value, not a boolean. But I thought its output was supposed to be Digital HIGH or LOW?
@arisoda
@arisoda 2 жыл бұрын
wasting memory and/or cpu power
@kennmossman8701
@kennmossman8701 5 жыл бұрын
But you assuming the PIR will be close to the uC. What if the PI is say...30m far from the uC?
@akmalaiman4822
@akmalaiman4822 6 жыл бұрын
can we use arduino uno instead of arduino mega? please help me
@HowToMechatronics
@HowToMechatronics 6 жыл бұрын
Yes, sure.
@celine93wong
@celine93wong 7 жыл бұрын
Do u have a autodesk circuit on it but without the lamp?I would need this as reference for my project >
@sameerk12982
@sameerk12982 6 жыл бұрын
Thank you very much for this video tutorial.
@DuneKraftwerk
@DuneKraftwerk 6 жыл бұрын
Why you move your hand trying to trigger the sensor if this IR sensor detect heat ?
@danielodors
@danielodors 5 жыл бұрын
Because knowing electronics doesn't mean he knows physics.
@angelosabanico4331
@angelosabanico4331 5 жыл бұрын
what kind of arduino did you use?
@fares3651
@fares3651 5 жыл бұрын
Mega.
@fares3651
@fares3651 5 жыл бұрын
you can get it with Wifi on board, for like 10€ on Aliexpress.
@koushikchakraborty4541
@koushikchakraborty4541 7 жыл бұрын
can I sense a particular temperature with this project ? if yes then plzz reply me how .. thank you
@CrazyCoupleDIY
@CrazyCoupleDIY 6 жыл бұрын
no
@bambino16
@bambino16 5 жыл бұрын
Anything is possible but idk how
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,4 МЛН
Effective Ways To Detect People With Common Sensors
7:43
Core Electronics
Рет қаралды 98 М.
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
How I2C Communication Works and How To Use It with Arduino
9:57
How To Mechatronics
Рет қаралды 1,5 МЛН
Passive infrared motion sensors: a two-bit camera powered by crystals
16:13
Technology Connections
Рет қаралды 871 М.
ESP32 with PIR Motion Sensor using Interrupts and Timers
8:01
Rui Santos
Рет қаралды 89 М.
How PIR modules work and using them to control LED strings.
15:24
bigclivedotcom
Рет қаралды 329 М.
How PIR Motion Sensors Work - The Learning Circuit
6:32
element14 presents
Рет қаралды 99 М.
Defeating Microwave Weapons! - Part 1
29:28
Tech Ingredients
Рет қаралды 1,3 МЛН
The DUALTEC explained ...PIR, MICROWAVE but WHY? (movement detector)
9:42
How to use PIR Motion Sensor with Arduino | Motion sensor light
5:35
hash include electronics
Рет қаралды 130 М.
PIR Sensors And How To Use Them
21:01
Simple Electronics
Рет қаралды 30 М.