PIR Motion Sensor with Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 มิ.ย. 2024
  • hello folks, this video about PIR Motion Sensor and Arduino. With this video, you will learn how to connect PIR sensor with Arduino and program the Arduino to detect any moment in the room or around the motion sensor.
    To make this prototype I am using:-
    Arduino UNO
    PIR Motion Sensor
    Jumper wire
    Breadboard
    PIR module Motion Sensor - Aliexpress
    5Pcs $4.15 - bit.ly/5pcs-SR501-MotionSensor
    1Pcs $0.95 - bit.ly/1Pcs-SR501-MotionSensor
    Arduino UNO - Aliexpress
    Arduino Original $14.80 - bit.ly/ArduinoUNO-original
    Arduino UNO $3.28 - bit.ly/ArduinoUno-smd
    Breadboard - Aliexpress
    1Pcs small Breadboard $1 - bit.ly/Mini-Breadboard
    1Pcs big Breadboard $2.14 - bit.ly/380PointBreadboard
    Mix 120 Jumper Wire $3 - bit.ly/120-mix-Jumper-Wire
    You can find the code on project page, below is the link:
    www.circuitmagic.com/arduino/p...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 353

  • @brookecox2344
    @brookecox2344 8 ปีที่แล้ว +27

    That was great. Very clear easy to follow video. Nice production quality - good sound and visuals.

    • @Circuitmagic
      @Circuitmagic  8 ปีที่แล้ว +1

      +Brooke Cox Thanks!

    • @onurkyss5183
      @onurkyss5183 7 ปีที่แล้ว +2

      Hi, I am also working a project which is Humanbody speed and direction with PIR. But I want to ask you How can I adjust PIR sensitiviy for human body ? PIR senses all objects heat but I want to PIR sense only HUMAN BODY ? If you answer, I appreciate that. THANKS

  • @rammone5241
    @rammone5241 ปีที่แล้ว +3

    Just what I was looking for, this is a great tutorial, I will definitely put it to use. Thank you so much!

    • @aminamebarki3768
      @aminamebarki3768 4 หลายเดือนก่อน

      I completed it and I want my hand to move. What should I use?

  • @normandocherty4207
    @normandocherty4207 4 ปีที่แล้ว +2

    Great video, wasn't sure if my PIR was operating, it is!! thanks

  • @DimitriPerret
    @DimitriPerret 6 ปีที่แล้ว +1

    Great, straight forward, and easy!

  • @sleeth
    @sleeth 5 ปีที่แล้ว +29

    Do you have a video that explains the code in a bit of detail? I'm a bit confused by the takeLowTime and lockLow parts on your website.

  • @user-ov8zx7bv2k
    @user-ov8zx7bv2k 4 ปีที่แล้ว +9

    Going to add this into my final year project lol! Thank you!

    • @surajsurya1928
      @surajsurya1928 4 ปีที่แล้ว +4

      Your college principle is also watching this😬🤐

  • @olariksurinta
    @olariksurinta 6 ปีที่แล้ว +3

    Thanks, you made it easy.

  • @scientistmadhavdasari-9858
    @scientistmadhavdasari-9858 5 หลายเดือนก่อน

    Brilliant Video! Thanks for helping me... I was in a big need.

  • @SajdaBibi-mc3ke
    @SajdaBibi-mc3ke วันที่ผ่านมา

    Thank you for giving me knowledge the PIR sensor

  • @agstechnicalsupport
    @agstechnicalsupport 4 ปีที่แล้ว +1

    Good video briefly explaining how to activate an LED using PIR motion sensor with Arduino. Thank you for posting !

  • @rajmahesh9
    @rajmahesh9 6 ปีที่แล้ว +3

    Hi, thank you very much. This is really awesome! I am always wondering how do we convert a quadcopter(drone) into a motion sensor drone. Of course there are lot of models available in the market to buy, but can we do that somehow with Arduino or any other sensor devices ?? Please advice ??

  • @cmsbpl
    @cmsbpl 7 ปีที่แล้ว +8

    Thanks, Friend! It worked in one go !

  • @windell8966
    @windell8966 4 หลายเดือนก่อน

    THANK YOU FOR SAVING MY NIGHT

  • @nagarjunr4061
    @nagarjunr4061 3 ปีที่แล้ว

    Thank you its working good , short vedio with quality content

  • @NageshwarRaoCiliveru
    @NageshwarRaoCiliveru 6 ปีที่แล้ว

    its very helpful and useful. Thanks.

  • @amrzakaria5290
    @amrzakaria5290 5 ปีที่แล้ว

    Easy and Clean , Very Good

  • @thecuriousmindssteamclub
    @thecuriousmindssteamclub 4 ปีที่แล้ว +1

    very good quality of explaination

  • @nehabhavsar6130
    @nehabhavsar6130 6 ปีที่แล้ว

    great explaintion....very thankful

  • @muhdirfan2272
    @muhdirfan2272 หลายเดือนก่อน

    Sya dtg sbb Mariposa sruh tngk video nih

  • @lifesjustbetterwithcakes3683
    @lifesjustbetterwithcakes3683 4 ปีที่แล้ว

    How would I install a 3 way switch with the pir. To where one side runs by motion and other side constant on with middle being off position

  • @kt6539
    @kt6539 5 ปีที่แล้ว

    Thanks for the vedio it helped me a lot

  • @Harshitsamrat
    @Harshitsamrat 5 ปีที่แล้ว +2

    How can we connect 2 sensors like one temperature and one pir and run them sequentially

  • @mohamedkhalilzouitni3803
    @mohamedkhalilzouitni3803 5 ปีที่แล้ว +1

    My PIR motion sensor lacks the little yellow jumper connecting the repeatable/non repeatable trigger. any tips on how to get around this issue would be appreciated :) Thanks!

  • @gopalkishanpanda6623
    @gopalkishanpanda6623 5 ปีที่แล้ว

    Thanks for my project

  • @jamest4198
    @jamest4198 4 ปีที่แล้ว

    What can I use to measure and compare vibration levels of different cd players ect? Will the Arduino achieve what I am looking for? How do I get a digital readout to be able to read the vibration level and do comparisons between different sources? Just add a multimeter and some cables to the sensor? If I wanted to measure vibration from the chassis of a cd player, do I just place the Arduino sensor on the cd player?

  • @menasheaharonian9183
    @menasheaharonian9183 3 ปีที่แล้ว +5

    Hey
    Very nice explanation.
    A. Will the pir manage to sense a fly?
    B. Is the sensing influenced by surrounding temperature?
    Thanks

  • @electron6807
    @electron6807 6 ปีที่แล้ว

    thanks for making video it is working

  • @nabihahmardhiah240
    @nabihahmardhiah240 7 ปีที่แล้ว

    hye. how to connect pir, arduino uno and gsm SIM900? is it the gsm need power (electricity) or just need to connect all these hardware using jumpwire only?

  • @opalprestonshirley1700
    @opalprestonshirley1700 7 ปีที่แล้ว

    Great demo. I'm going to get one. Thanks.

  • @MrNams
    @MrNams 3 ปีที่แล้ว +2

    My hc-sr501 gives always high output, what is issue?

  • @gulistanproduction6840
    @gulistanproduction6840 5 ปีที่แล้ว

    Thank you So much sir

  • @baileytaylor6731
    @baileytaylor6731 6 ปีที่แล้ว

    Mostly this won't be seen but would that thing turn be able to enable a button to be pressed so say if the sensor wasn't waved the button won't work but when you wave it it will worm

  • @aaroncatolico7550
    @aaroncatolico7550 ปีที่แล้ว

    Are these particular sensors good for outside motion detection lights?

  • @sritadogiparthi6890
    @sritadogiparthi6890 4 ปีที่แล้ว

    Helped me in the last minuit of my project!!! Thanks a lot...

    • @fero___3005
      @fero___3005 4 ปีที่แล้ว +1

      how to download the code..? in website

  • @michaelchiaravalloti7197
    @michaelchiaravalloti7197 3 ปีที่แล้ว +1

    Is there any way to get the PIR sensor to send something like a notification to my phone or computer rather than activating an LED?

  • @GadgetCentral
    @GadgetCentral 5 ปีที่แล้ว

    Hey what if i wanted to turn this into a baby monitor? For example i'd like to install the sensor in baby's room and the led indicator light in my garage. Is there a way to do this wirelessly instead dragging a long wire from babys room the garage?

  • @celine93wong
    @celine93wong 7 ปีที่แล้ว

    Would it be possible to replace the LED with a seven segment display instead?How would the coding change too?>

  • @bennetsharwin6185
    @bennetsharwin6185 3 ปีที่แล้ว

    thank you but can we use LCD instead of using serial monitor

  • @karimismail3734
    @karimismail3734 7 ปีที่แล้ว

    Great presentation. Will try it soon. Thank you.

  • @mekapatidarshanik6788
    @mekapatidarshanik6788 4 ปีที่แล้ว +1

    Great work and explanation. This might seem like a beginner question, since I'm a beginner. But can we connect output pin of pir sensor to analog pin rather than digital pin.
    Thank you.

    • @rekhaagarwal9694
      @rekhaagarwal9694 4 ปีที่แล้ว

      Pir sensor gives digital output so u need to connect it to digital pin.
      th-cam.com/video/4NWowu5wghM/w-d-xo.html

    • @mekapatidarshanik6788
      @mekapatidarshanik6788 4 ปีที่แล้ว

      @@rekhaagarwal9694thank you I figured it out. I just soldered output to adafruit L293d digital pin2 and also vcc and GND to L293d. Works fine.

  • @thatoniondude
    @thatoniondude 5 ปีที่แล้ว

    I know this video has been uploaded quite a while ago, but is it possible for the output to have a camera snap a picture? Asking for a friend.

  • @blenvision2308
    @blenvision2308 5 ปีที่แล้ว

    Thanks a lot. Excellent

  • @DSASecurity
    @DSASecurity 4 ปีที่แล้ว

    The issue i have with the pir sensors is when i throw a large object like a karton box in front of it , it detects movememt.
    So the PiR works as a motion sensor and not specificly as a PIR SENSOR.
    How can i change it as s human detector and not as a lifeless karton box detector ?
    Any ideas?

  • @frodemolland6249
    @frodemolland6249 6 ปีที่แล้ว

    Hi, is this possible to add to a arduino clock somehow? It runs on battery and I would like it to turn off, when no one is in the room and on when there is people in the room

  • @kddayth
    @kddayth 2 ปีที่แล้ว

    Would it be possible to set up four different motion sensors to four different color lights onto the same board?
    For motion sensing in four different directions. Or would I need to set up four separate projects?

  • @user-gp6jn9pb5y
    @user-gp6jn9pb5y ปีที่แล้ว

    Thank you so much!!!!! ✌👏

  • @dawa-hdeh8681
    @dawa-hdeh8681 ปีที่แล้ว

    thank you very much

  • @jackmark868
    @jackmark868 4 ปีที่แล้ว

    Circuit Magic rocks🥰🥰

  • @herusam04
    @herusam04 6 ปีที่แล้ว +1

    oh thanks, it's work! :D

  • @velveetynn
    @velveetynn 9 หลายเดือนก่อน

    hi. may i ask what should i change if i want to make the led light stays on for 5 mins?

  • @csunnikrishnan1
    @csunnikrishnan1 5 ปีที่แล้ว +1

    Thank u my friend

  • @woolfy02
    @woolfy02 ปีที่แล้ว +2

    Is it possible to trigger something with more power, instead of a LED?( Maybe something like 5-12 volts.)

    • @nevis2769
      @nevis2769 4 หลายเดือนก่อน +1

      Yes. Use a pwm signal to a logic level shifter to drive a high voltage load such as a motor

  • @ramuacharya1254
    @ramuacharya1254 4 ปีที่แล้ว

    I want to make project something like:
    There are two door in my room and i want to turn on fan automatically when any no. Of person stay in my room.
    And turn off automaticall when no one is at room.
    Can it be made using pir sensor only??

  • @aravindkrishna6133
    @aravindkrishna6133 7 ปีที่แล้ว +5

    which potentio meter is used to adjust the tine of on and off

    • @tadiniteriad8093
      @tadiniteriad8093 6 ปีที่แล้ว +2

      There are two on the sensor itself. Two orange wheels. Those are the potentiometers : One for the time, the other for the distance. Check the sensor's datasheet for more details.

    • @not_aly_ashraf
      @not_aly_ashraf 6 ปีที่แล้ว

      thx

    • @MG-ko3rz
      @MG-ko3rz 5 ปีที่แล้ว

      one on right side

    • @k1rv0lak
      @k1rv0lak 5 ปีที่แล้ว

      @@MG-ko3rz No.

  • @yacinehefied7390
    @yacinehefied7390 4 ปีที่แล้ว

    hi can u explain me why sometimes detects movement even if I haven't done anything?

  • @alexreizas5948
    @alexreizas5948 7 ปีที่แล้ว +4

    Instead of LED, can I turn on 5v battery operated device? Would I need a relay?

    • @xgamerbih
      @xgamerbih 6 ปีที่แล้ว +2

      Yes you can do whatever you want... A relay is the best idea to do high voltage and amp stuff. You just need to edit the code so it turns the relay on/off whenever the sensor detects something. It's a simple IF function

  • @efeoktay244
    @efeoktay244 5 ปีที่แล้ว

    very nice thanks

  • @robertonagel2102
    @robertonagel2102 5 ปีที่แล้ว

    can you make it so that the light stays on the amount of time someone is detected by the sensor?

  • @yahiamohamed4833
    @yahiamohamed4833 5 ปีที่แล้ว

    how to make the LED switch off when the PIR sensor detect another movement .. not after 15 seconds ?

  • @shalimarphotocenter7194
    @shalimarphotocenter7194 3 ปีที่แล้ว

    Very good

  • @nicholasgraham89
    @nicholasgraham89 7 ปีที่แล้ว +1

    Awesome! I am new to Arduino, and only took a couple of minutes to knock out. Here's a question, is there a way to display the actual time of sensor violation in the serial monitor? Thanks for the information!

    • @JooshYT
      @JooshYT 2 ปีที่แล้ว +1

      You will need a RTC module, or connect to a network and use NTP to get the current time.

  • @markoguberinic2279
    @markoguberinic2279 7 ปีที่แล้ว

    Could you explain how to wire the same thing as in this tutorial, but if I wanted to have 3 x PIR Sensors? The idea is that if one of the sensors detect movement, the light switches on. Thanks.

    • @AtlantaTerry
      @AtlantaTerry 6 ปีที่แล้ว

      Try this: tie three different outputs from the Arduino to one input of a relay.
      When activated, the relay will turn on the light. Relays are available for 110v and 220v lights. Google: Sonoff

  • @executeorder6667
    @executeorder6667 2 ปีที่แล้ว

    Would I be able to link it up to a speaker or something along those lines and get a robot voice to say Intruder or something has entered the room

  • @hasch8348
    @hasch8348 2 ปีที่แล้ว

    I'm pretty much a beginner so this might be a silly question but how could I add a pushbutton to this?

  • @neilsumanth8013
    @neilsumanth8013 5 ปีที่แล้ว +6

    excellent work...But could you please explain coding for this in arduino software.

    • @mohammedyasarshaikh4090
      @mohammedyasarshaikh4090 3 ปีที่แล้ว

      yea, the program is written like a paragraph and also no setup is placed as serial begin is placed above loop, looks like author not wants to copy the concept, thank you

    • @neilsumanth8013
      @neilsumanth8013 3 ปีที่แล้ว

      @@mohammedyasarshaikh4090 Got it, I sorted it out, Thank you.

  • @rayhanparvez2131
    @rayhanparvez2131 5 ปีที่แล้ว

    Thank you

  • @lanadelrae8470
    @lanadelrae8470 2 ปีที่แล้ว +7

    i hate school man

  • @safugam
    @safugam 8 ปีที่แล้ว

    Hi can i on led only 1ms or 500 micros ?? I mean not 15s , i need help

  • @sanjanaperna6624
    @sanjanaperna6624 3 ปีที่แล้ว

    can we measure the distance of the moving object using pir sensor ? plz reply

  • @anelson1914
    @anelson1914 ปีที่แล้ว

    I plan on using this in some corn hole boards with LEDs.

  • @salom77
    @salom77 5 ปีที่แล้ว

    Can anyone recommend me any motion sensor for a very short distance detection, something that detects motion in a few centimeters distance (a range of 3 to 10 inches). Thanks.

  • @ravikumar-sq3bh
    @ravikumar-sq3bh 2 ปีที่แล้ว

    Thanks

  • @kichu6598
    @kichu6598 3 ปีที่แล้ว

    hlo sir what we want to do for light is on more than 1 minutes (if it is possible when we increase the delay in program code )

  • @ashishkakne
    @ashishkakne 5 ปีที่แล้ว

    Hello sir, can u please suggest code for Send IR sensor data to live server(database)?

  • @SanukaSenumitha
    @SanukaSenumitha 3 ปีที่แล้ว

    super excellent

  • @adrianpineda2955
    @adrianpineda2955 ปีที่แล้ว

    Thankyou.

  • @angelzenelaj
    @angelzenelaj 3 ปีที่แล้ว +1

    how do you upload the code on to Arduino Editor?

  • @aglan
    @aglan 6 ปีที่แล้ว

    Can you set a delay time for the LED to stays on like a min after PIR sensor detects something? Also can you set the LED to always stay on at 50% brightness until PIR sensor detects then LED is on at 100% Thank you

    • @AtlantaTerry
      @AtlantaTerry 6 ปีที่แล้ว

      You might need to do this in code.

  • @SamratDutta
    @SamratDutta 7 ปีที่แล้ว

    Thank you sir for your help but can you help me out in my idea of the new project where i want to make my home door to open automatically when someones comes infront of it using the pir sensor and the arduino. If you want to help then sir please send me the code for arduino and the schematic .Thank you.

  • @KooKKoZ
    @KooKKoZ 5 ปีที่แล้ว

    how did you get the pop up screen after you verify? I cant seem to find that screen

    • @suztksyp4637
      @suztksyp4637 3 ปีที่แล้ว

      that is serial monitor

  • @AOBAboOmer
    @AOBAboOmer 7 ปีที่แล้ว

    I like I need more project about , sensor fire

  • @lloydguia3118
    @lloydguia3118 4 ปีที่แล้ว

    Hello what if i used 12v LED? what module i use? thanks

  • @NURULAINUMAIRAHBINTIROSL-rk3kv
    @NURULAINUMAIRAHBINTIROSL-rk3kv 9 หลายเดือนก่อน

    How do I make the led last for like 40 seconds before it goes off?

  • @CBGsavagePoop
    @CBGsavagePoop 4 ปีที่แล้ว

    are there any alternatives for the LED

  • @MomentofEngineering
    @MomentofEngineering 8 ปีที่แล้ว

    can i use an IR module instead of PIR sensor?

  • @diyoregonnowtexas9202
    @diyoregonnowtexas9202 2 ปีที่แล้ว

    I have a perimeter alert system I like, but the company is out of
    business so I cant get more sensors from them. There is a base unit that
    has 6 channels for up to 6 motion sensors,but I only have one. How can I
    make a motion sensor from a different security system work with this
    one, so I can add it to my system?

  • @mondal9509
    @mondal9509 4 ปีที่แล้ว +2

    Is there anyway to make the light blink when a object is in a particular position/shape?

    • @AtlantaTerry
      @AtlantaTerry 3 ปีที่แล้ว +1

      Shape? That would involve complex math.
      Position? What about a laser? Point it at a sensor or at a mirror that bounces the light beam to a sensor. Once the beam is broken then you an object is in a particular position. You have probably seen this in a movie or TV show where something needs to be protected such as an art gallery, bank vault, etc.
      To find out how to use a laser sensor, look for a TH-cam video where one is used inside a mail box to sense when mail is present. Then convert how they did it to your needs.

  • @burakk.48
    @burakk.48 ปีที่แล้ว

    sir In my code, low, high, input, output texts appear colorless and my circuit did not work. I think my library is missing where can I find it?

  • @pythonbylearning8467
    @pythonbylearning8467 4 ปีที่แล้ว

    Nice one

  • @paulu3732
    @paulu3732 3 ปีที่แล้ว

    Hi, how to Set the sensor to off once there is no movement . I don’t want 15s or 20s

  • @tmctrulymathsclasses296
    @tmctrulymathsclasses296 5 ปีที่แล้ว +1

    Sir, I make this same project without aurdino and it's really work and delay time is 5 to 6 second

    • @fero___3005
      @fero___3005 4 ปีที่แล้ว

      how without arduino

  • @TheGroundsman2024
    @TheGroundsman2024 2 ปีที่แล้ว

    Can you add wled to this as it uses a data wire

  • @ShadovvV
    @ShadovvV ปีที่แล้ว +4

    Is there a way to trigger a speaker output sound effect, rather than an LED light? That would be far more interesting.

    • @vighneshrane6009
      @vighneshrane6009 ปีที่แล้ว +1

      Yes, u need to add a buzzer. And do little modifications which is easy and simple

    • @amerzair858
      @amerzair858 ปีที่แล้ว +2

      @@vighneshrane6009 can i add the buzzer to the Arduino directly without breadboard?!

    • @shreyaslemos5297
      @shreyaslemos5297 11 หลายเดือนก่อน +2

      @@amerzair858 yes a 5 volt buzzer will work with arduino just like the led connect it to the Uno , or else use relay circuit for 12 volt buzzer

  • @omkarmandavkar6808
    @omkarmandavkar6808 2 ปีที่แล้ว

    Hey, I followed your each n every step but my LED is taking more than 2 min to turn OFF after motion detection, can you please suggest a solution on it ??

  • @maddiek9
    @maddiek9 ปีที่แล้ว

    Where is the power input? can it be a battery or does it have to be hard-wired?

  • @CoffeePrinceGaming
    @CoffeePrinceGaming 6 ปีที่แล้ว

    Hi, john. How can i use multiple LED using this project?

  • @riossnn
    @riossnn 4 ปีที่แล้ว +1

    dang 10/10 vid tho

  • @Abhishek-el5rx
    @Abhishek-el5rx 7 ปีที่แล้ว

    I.m uploding code but my led is turn on and says motion detected at 30sec motion ended 97 sec after led off I doing motion led don't turn on

  • @luqkiiim
    @luqkiiim 2 ปีที่แล้ว

    how far can the PIR sensor detect motion?

  • @parz2353
    @parz2353 3 ปีที่แล้ว

    If I connect a battery to this do I need to leave it plugged in ?