How to use a PIR Passive Infrared Motion Sensor to control a simple lighting circuit

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ค. 2024
  • A step by step guide to connecting and using PIR Motion control sensors.
    Scroll down for contents, links and more information.
    Click here to Subscribe to our channel:
    / @q26video
    Passive Infrared Sensors (PIR) are easy to use and set up. You can use them to control home automation devices including lighting, alarms and door openers. They are great for power and battery saving, making sure that lights (or anything else...) turn off when nobody is around.
    In this video I show how to connect a basic circuit with just a PIR sensor, a transistor and a couple of other components to produce a reliable and power saving motion called lighting circuit - ideal for building a night light or for having a string of LEDs switch on when you are present.
    PIR sensors can used with Arduino or any other microcontroller (eg Raspberry Pi) to make more sophisticated controllers and I'll cover how to do this in a second PIR video.
    Buy your sensor and components from our website here:
    www.q26.co.uk/sensors/pir-mot...
    Here are the main sections of the video:
    Contents:
    00:00 Introduction
    00:55 Sensor Description
    01:46 Connections
    02:12 How it works
    02:37 Essential Tip - Pull Down Resistor
    04:15 How to make the circuit
    05:47 Setting up the sensor - triggering modes
    06:33 Fade on and off with a capacitor
    07:24 Final project / examples of use
    --
    Click here for product information on our website:
    www.q26.co.uk/pir-passive-inf...
    Click here to go to our Website for more information and our shop:
    www.q26.co.uk/
    Other Videos in this Series:
    Using and Coding an Infrared IR Diode and Keypad with Arduino
    • Using and Coding an In...
    Using and Coding a Microphone Sensor with Arduino
    • Using and coding a Mic...
    How to connect and program LCD I2C Displays & Adapters with Arduino
    • How to connect and pro...
    --
    Subscribe to our channel for more videos on Electronics, 3D Printing and more:
    / @q26video
    Click the Bell icon for video alerts.
    Q26 Videos by Mortimer Rhind-Tutt
  • แนวปฏิบัติและการใช้ชีวิต

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

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

    Thank you, really clarified the PIR Module for me. I shall be using it to trigger a wired doorbell which I have converted to wireless

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

      Glad it helped

  • @kabandajamir9844
    @kabandajamir9844 10 หลายเดือนก่อน +1

    The world's best teacher thanks

  • @florentjongen1254
    @florentjongen1254 8 หลายเดือนก่อน +1

    great video, and explained in a pleasant way. Also very nice to name the side components well with a lot of explanation. Thanks.
    I can use it well for my stair project.

  • @vsparanth1967
    @vsparanth1967 6 หลายเดือนก่อน +1

    Nice explanation! Thank you
    Paranthaman Subramaniam

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

    Brilliant video. Simply explained with super ideas. Thanks.
    I have one and a raspberry pi. I hope to one day use a PIR with the pi to trigger the DPMS on a screen (used as a calendar/ digital photo frame)

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

      Glad it was helpful!

  • @varadarajnayak5350
    @varadarajnayak5350 5 หลายเดือนก่อน +1

    Nicely presented. Thank you.

  • @beardization
    @beardization วันที่ผ่านมา

    HI again,
    When using the module in the video to light up an LED strip, it works, but it's much less bright than when powering the LED strip directly. I'm using the supplied 12v power supply to power it and it's super bright when powered directly but only maybe 30% of the brightness when activated by the PIR. It turns out that the 10k resistor is only allowing 7.4v to get to the LEDs when they want all 12v coming from the power supply. I jumpered the resistor and it's as bright as it is when powered directly from the psu and working great!.

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

    This is really good i have used it 👍

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

    Great video!

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

    Best video I have seen,well made.I like.

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

      Glad you liked it!

  • @mikemingay7430
    @mikemingay7430 11 หลายเดือนก่อน +1

    What a brilliant and understandable explanation! Electrickery becomes much clearer to my mechanical mind, thanks. Hopefully it might make a project I have in mind less of a crashing about in the dark exercise. Ideally I would like to have a 12 volt battery trickle (charged with a solar panel) powering a raspberry pi (with camera) and a 12 volt infrared illuminator controlled by a single PIR. Actuating the PIR would switch on the infrared illuminator, change the pi from standby to on and then take photos and or video. This does sound a bit optimistic, an alternative would be two separate PIRs one for the illuminator and one for the pi, though I suspect this scheme may not be ideal. This project is for security surveillance in the polytunnel on my allotment. Please can you offer any advice? Many thanks

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

    Great video, thank you. I've just knocked one of these up using an LED strip, works great but the sensitivity control doesn't seem to have much effect. I have it turned all the way down and it works from quite a distance, even further if I turn it up. Could it be faulty or am I missing something? It looks like the ones I have (HC-SR501) are min 3m range with the lens on. I've taken the lens off with some decent results but it still triggers a bit further away than I'd like. Would it be better to look for another board that has a shorter trigger range?

  • @nickaryan100
    @nickaryan100 2 วันที่ผ่านมา

    excellent

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

    Very informative and exactly what I have been looking for. The many uses of this PIR sensor are endless. I use 18650 batteries as a power source. These 18650 batteries seem to last forever. I no longer have to stumble about looking for the light switch in the middle of the night just to go to the toilet or get a drink from the fridge. My end game is to keep energy costs as low as possible. I use energy saving bulbs in my home but regardless a penny saved is a penny earned in my opinion. Thank you for sharing this video.

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

      Thanks - glad you enjoyed the video and I hope all your projects go well...

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

      How do you use 18650 for this 5v sensor ? You have made a series of batteries for higher voltage or a single battery enough ?

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

    Great video thanks!...It's given me a fantastic idea for a Halloween project.
    I have an old mannequin type head, that I'm going to rig up in the window...It will have red or green LEDs in its eyes, triggered by a PIR when anyone gets close.

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

    🤔👌👋I am just learning thank you so so much👍

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

      So nice of you

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

    Nice video. How much power does the sensor drain while idle?

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

    Thanks for the very clear video. Is there a way I could build a similar low-power circuit to pull something to ground, rather than pull high? I was going to use a relay but obviously running that off a battery is going to use significantly more current than a transistor. Thanks!

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

      Hi - you can do this with a chip like a ULN2003A or even a transistor.

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

      Hi Friend, Look into 18650 batteries as a power source

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

    Great video thankyou. New sub. How would one add a on/off switch to this? I checked all your other videos but can't find anything else regarding PIR's. All the other channels are a little confusing with their diagrams and are mostly for house lights and house switches.
    Would I use the POS of the battery and the N of the PIR? Or would I connect to the SL?
    I tried incorporating it into a musical teddy bear and got the lights and music to work but only when the switch is initially turned on and it wouldn't react with the PIR still. Not sure where I'm going wrong. The teddy PCB has a main switch and a secondary button that you press for the lights and music to start. Many thanks from Aus

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

    Hi there, great video thanks. Which relay and transistor would you recommend for a connection of the sensor to a 5amp 12v waterpump without using arduino or anything like that? With the power source being a 7amp 12v battery. I presume the 10k resistor would still be ok. Your advise would be greatly appreciated.

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

    Great video, well explained! Is it possible to use a relay rather than an LED so when motion triggers, the relay could switch a higher power device or trigger a contact closure in a 3rd party control system? If so what relay would you recommend? Many thanks

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

      Glad you liked the video, thanks - you can trigger anything that can be switched on by a digital pin - you'll need to use something inbetween the arduino and the relay, maybe a transistor or a chip like a ULN2003A - and the choice of relay depends on the voltage and current that it is switching. I'm doing something similar soon to control my garage lights.

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

      @@Q26Video I am looking for something similar. What sort of transistor or relay. ( I dont understand the term 'digital pin' )

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

    HI, Is there a pir that sends a signal for 1 second only when motion detected and another signal when it times out from the same output? I would like to make a simple motion detector to turn my video camera on and off. I aready have a remote controller for my camera with a spare transmitter and the one button turns the camera on and off. I could use the transister to operate a relay to short out the switch in the transmitter. Great video. Thankyou.

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

      Glad you liked the video - you can experiment with the on and off duration controls...

  • @100roberthenry
    @100roberthenry 7 หลายเดือนก่อน

    Excellent video, on most schematics for pir lights they have a 220r resistors from the signal pin to base, what is the difference in performance with using 220r compared to 10k.? Thanks.

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

      Glad you liked the video. If the resistor is too low or too high, the processor pin will be either always on or always off - for Arduino and similar processor gpio 10k is a common choice.

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

    A nice dissertation on pirs. A question, the front door bell keeps getting missed. The idea would be to have a plastic boxed pir behind a flower pot to pick up visitors etc. A wire would run to the back of the house to ring when someone approaches with an attached buzzer or bell. The buzz time should be short say 5 seconds and then not ring again repeatedly whilst you talk to the postman or whatever. The dogs would also go hysterical if it kept buzzing. Can this be achieved simply without an Arduino or similar? No-one seems to have circuit to do this. Many thanks.

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

      Its difficult to advise on specific projects - you may be able to make this work so I really recommend experimenting - glad to hear you enjoyed the video...

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

    How can I do this with a 6v 700ma dc adapter because the pir sensor is only 50ua max the led light requires 6v 500ma

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

    How to connect it sir with 6 volts relay

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

    Is there a thermal sensor that picks up at a distance of 50m

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

    I'm looking how to make it go low, or ground a pin on a project, is this possible?

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

      If you connect the output of the transistor to a pin of a ULN2003 the opposite pin goes to ground when it is high - or you can use a second transistor...

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

    How would I add a light sensitive diode so only it operates at night?

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

      A topic for another video...

  • @KyawLin-hw3vb
    @KyawLin-hw3vb 10 หลายเดือนก่อน

    What is work my PIR sensor .It is automatically on without motion after off.Time setting is about 2 minute,after that auto off and turn on automatically without motion
    about 40 second .a

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

      I have the exact same problem, have you found it in the meantime?

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

    🤔YOU really are the only person on here REALLY KNOWS WHAT they are talking ABOUT . believe it or NOT Really are a lot of different folks showing the exact same sensor YOU are showing ONLY they REALLY DO NOT KNOW what they are talking ABOUT NOT AT ALL .

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

      Glad you found the video helpful, hope your projects go well Jonny!

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

    Hi, how about using this to operate musical movements (such as a musical box) and an LED? How would that be possible?
    How,do you think these sensors compare to the RCWL- 0516?

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

      Hi - I'm not familiar with the RCWL-0516, I'll follow that up, interesting - meanwhile, you can make just about anything work with a sensor and a transistor switch. If you need more voltage/current you can use it to trigger a relay or you can use it to trigger a processor board like an arduino which can in turn control all kinds of things. Thanks for watching - I hope your projects go well!

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

    What is the value of the resistor?

  • @KyawLin-hw3vb
    @KyawLin-hw3vb 10 หลายเดือนก่อน

    What is wrong my PIR sensor .It is automatically on without motion after off.Time setting is about 2 minute,after that auto off and turn on automatically without motion
    about 40 second.

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

      Same thing happened to me my PIR sensor automatic on after every 1 hours without any motion detect..

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

    Hello Q26, Please update your website.

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

      Any particular section ?

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

      @@Q26Video Yes, The video points to your website for additional information. This information is not available. The website page just says coming soon. Unfortunately I have not taken any notes referring links directed at specifics. While browsing your website I had come across other content not yet available. I had decided to stop viewing your website due to incomplete content. I hope you find this helpful when it comes to Off page SEO. Your videos are really good but your website does not reflect on all of the videos. I hope you find this insight of value. Thank you for sharing