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

Поделиться
HTML-код
  • Опубликовано: 6 июл 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

  • @kabandajamir9844
    @kabandajamir9844 11 месяцев назад +1

    The world's best teacher thanks

  • @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

  • @florentjongen1254
    @florentjongen1254 9 месяцев назад +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 8 месяцев назад +1

    Nice explanation! Thank you
    Paranthaman Subramaniam

  • @varadarajnayak5350
    @varadarajnayak5350 7 месяцев назад +1

    Nicely presented. Thank you.

  • @markstevens8072
    @markstevens8072 6 месяцев назад +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  5 месяцев назад

      Glad it was helpful!

  • @sharma5688
    @sharma5688 3 года назад +1

    This is really good i have used it 👍

  • @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 ?

  • @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!.

  • @CarnivalBen
    @CarnivalBen 4 года назад

    Great video!

  • @ch1ra1
    @ch1ra1 3 года назад +1

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

  • @nickaryan100
    @nickaryan100 Месяц назад

    excellent

  • @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👍

  • @mikemingay7430
    @mikemingay7430 Год назад +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 6 месяцев назад

    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?

  • @dimatall
    @dimatall Год назад

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

  • @ImperialLightandMagic
    @ImperialLightandMagic 3 года назад +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 10 месяцев назад

    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

  • @100roberthenry
    @100roberthenry 9 месяцев назад

    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  8 месяцев назад

      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.

  • @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 4 года назад +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  4 года назад +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 2 месяца назад

    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  2 месяца назад

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

  • @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...

  • @trollmarketshop
    @trollmarketshop 3 года назад

    How to connect it sir with 6 volts relay

  • @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

  • @user-hy7ed3kb3u
    @user-hy7ed3kb3u Год назад

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

  • @edsonglutes8947
    @edsonglutes8947 11 месяцев назад

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

    • @Q26Video
      @Q26Video  11 месяцев назад

      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...

  • @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!

  • @KyawLin-hw3vb
    @KyawLin-hw3vb 11 месяцев назад

    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 9 месяцев назад

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

  • @lucask3600
    @lucask3600 Год назад

    What is the value of the resistor?

  • @KyawLin-hw3vb
    @KyawLin-hw3vb 11 месяцев назад

    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 10 месяцев назад

      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