How to Use a PIR Motion Sensor with Raspberry Pi

How to Use a PIR Motion Sensor with Raspberry Pi

Tech With Tim

5 лет назад

111,993 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@wuyanchu
@wuyanchu - 02.01.2024 22:28

very nice tutorial, thx and god bless you and the world.. 來自香港的祝福, regards from hong kong ^_^

Ответить
@wuyanchu
@wuyanchu - 02.01.2024 22:28

very nice tutorial, thx and god bless you and the world.. 來自香港的祝福, regards from hong kong ^_^

Ответить
@brentrusche2056
@brentrusche2056 - 08.12.2023 17:43

@TechWithTim
Great tutorial. I too want to make a surveillance system using an RPi and multiple PIR sensors. However, I am not quite certain as to the wiring and code for using multiple PIR sensors. I would really appreciate an expanded tutorial on using multiple PIR sensors on a single RPi.
Thanks in advance!

Ответить
@AnkitaMalusare-nd8xv
@AnkitaMalusare-nd8xv - 18.09.2023 14:51

LEDs Motion Not Detect Exactly

Ответить
@AnkitaMalusare-nd8xv
@AnkitaMalusare-nd8xv - 18.09.2023 14:50

Nice Video
But I have a doubt our LEDs Motion Detected but Motion Does Not Stopped

Ответить
@bshara83
@bshara83 - 27.06.2023 15:20

Hello, could you help me write code for bi-deractional people counter using 2 sensors where when objects pass first then the second sensor will count+1, or the second then the first sensor will count -1. And record the In and Out and current occupies the room to SQL DB, please 👏

Ответить
@mrlevo27
@mrlevo27 - 25.04.2023 13:48

Hallo I get a montion startet sensor when I pulled of the sensor cable by accident. What could be the problem

Ответить
@jungleviper
@jungleviper - 28.03.2023 00:31

Can I use this to turn some led lights on and off

Ответить
@bigbad123321
@bigbad123321 - 18.02.2023 05:12

I've got a question. Can you run this while simultaneously running a temperature reading with a temp sensor and get the programme to print out both "motion detected/motion stopped" and also have it printing the temperature every X amount of seconds aswell?

Ответить
@jhred3315
@jhred3315 - 15.08.2022 18:17

Hey Tim. I really like your tutorials. Can you make more about raspberry pi since yours are most easy to understand especially the plugging part.

Ответить
@Beeckey
@Beeckey - 05.08.2022 09:06

This is the best explanation ever! Thank you soo muchhh!!!

Ответить
@adamfowler2187
@adamfowler2187 - 06.07.2022 01:43

disgusting

Ответить
@mikhail1792
@mikhail1792 - 12.05.2022 16:57

Is it working when the moving object does not emit the infrared waves, a piece of metal for example?

Ответить
@brighterryu2465
@brighterryu2465 - 27.04.2022 13:43

good example

Ответить
@patrykperwenis4348
@patrykperwenis4348 - 28.03.2022 12:16

very good tutorial

Ответить
@--Jonathan09--
@--Jonathan09-- - 02.12.2021 16:13

awesome👍

Ответить
@YouKnowMeDuh
@YouKnowMeDuh - 29.09.2021 05:43

Great tutorial. You're very clear and to the point. Thanks a ton.

Ответить
@bernielovell2197
@bernielovell2197 - 16.06.2021 21:41

I bought a power trigger water spray hoping to detect the crapping cat who visits my garden. It worked fine with a cheap air-freshener detector but, to was so weak that I really needed a PIR sensor. This was much more difficult to make work. It either never worked or It worked with no stopping. How about making one on this problem?

Ответить
@MohsinKhan-rv7jj
@MohsinKhan-rv7jj - 04.05.2021 21:39

One of the best videos you will find on Internet for PIR sensor

Ответить
@OnleySkye
@OnleySkye - 04.05.2021 02:42

this helped me with my school project. i made a motion sensor that says bruh out of a speaker when it detects motion

Ответить
@sahilhadke
@sahilhadke - 14.04.2021 14:52

I'm here to stop a freaking cat from pooping in our balcony.

Ответить
@chrismunson5513
@chrismunson5513 - 17.03.2021 03:26

I want to run this exact setup, but have it with a photo slideshow, so it will only play when someone is present? Anyone with exp please help. Brand new to pi OS and lineage. First project with pi zero

Ответить
@Enigmaafk
@Enigmaafk - 08.03.2021 03:15

i like this method, can you link this to an lcd and let it display motion detected. thanks

Ответить
@funkygetaways
@funkygetaways - 17.01.2021 02:58

Is a breadboard required for this?

Ответить
@James-sh1lw
@James-sh1lw - 31.12.2020 22:01

Hey Tim I know this video is kinda old now but hopefully you're checking comments. Do you think this will be ok opposite my window? I'm building a magic mirror with my raspberry pi and an LED monitor but dont want the monitor constantly running, so I want it to turn on with motion detection. From the angle it wont see anything moving outside but the sun moving around during the day does changed the light levels in the room. What do you reckon? Do you also know how to turn on/off the HDMI port with a motion sensor?

Ответить
@loicsigni1613
@loicsigni1613 - 29.12.2020 09:20

Great video. I wanna use the same PIR sensor for this small door greeting robot I'm building,. My question is:
If I program the Raspberry Pi and disconnect it from my computer would it still work as long as I am feeding it with electrical power?

Ответить
@ayy.mp4
@ayy.mp4 - 19.11.2020 01:33

How do I close the script properly?

Ответить
@itzkeyz2526
@itzkeyz2526 - 15.11.2020 12:43

Is there a way to display the time motion is detected

Ответить
@SuperAn0nymus
@SuperAn0nymus - 23.10.2020 06:58

Wow!! amazing explanation!! ..could you tell why did you use resistor instead of a jumper cable?

Ответить
@rishivinukonda
@rishivinukonda - 17.09.2020 02:48

Do you think you do it with java?
Cause I don’t know python

Ответить
@darrenstorey4558
@darrenstorey4558 - 04.09.2020 21:35

With the pi4 having a 5v output, using this tutorial as an example, is it possible for it to power an LED strip instead of an LED bulb? I am wanting to use the PIR in a magic mirror where whenever someone stands in front of the mirror, the PIR triggers and lights up the LED strips to act as a mood light around the mirror itself. ps I am a total NOOB so any help is much appreciated

Ответить
@nguyenmax277
@nguyenmax277 - 26.08.2020 09:18

how can we add a speaker instead of an LED

Ответить
@budgetpresents802
@budgetpresents802 - 01.08.2020 08:37

Can u use other models of rasberry pi and if yes what others?

Ответить
@budgetpresents802
@budgetpresents802 - 01.08.2020 08:36

Can u use other models of rasberry pi and if yes what others?

Ответить
@budgetpresents802
@budgetpresents802 - 01.08.2020 08:36

Can u use other models of rasberry pi and if yes what others?

Ответить
@budgetpresents802
@budgetpresents802 - 01.08.2020 08:36

Can u use other models of rasberry pi and if yes what others?

Ответить
@budgetpresents802
@budgetpresents802 - 01.08.2020 06:33

Can u use other models of rasberry pi and if yes what others?

Ответить
@crownz936
@crownz936 - 23.06.2020 20:33

I knw I’m late but my sensor picks it up but doesn’t stop the led light. Pls reply

Ответить
@ernestoloredo2618
@ernestoloredo2618 - 14.06.2020 02:41

Thank you so much!!! God bless

Ответить
@katefernandez240
@katefernandez240 - 17.05.2020 16:59

Hi! Do you know how to connect multiple PIR? Thanks

Ответить
@raidsagr3263
@raidsagr3263 - 27.04.2020 06:17

How can i programme this to find out the total duration of the light was turned on the last 6hrs for example?
Thank you very much

Ответить
@Duriel1000
@Duriel1000 - 19.04.2020 07:20

is the function "wait_for_motion()" a built in function from the Sensor import?

Ответить
@hoangquyla4516
@hoangquyla4516 - 11.03.2020 16:04

Hi Tim can you make a video on how to use raspberry pi in order to detect the temperature and humidity

Ответить
@dharmareddy3636
@dharmareddy3636 - 03.03.2020 08:44

Can I have the link of raspberry is that you are using

Ответить
@nickaf4204
@nickaf4204 - 11.02.2020 00:57

Is there a way to connect this to pi without the use of a breadboard?

Ответить
@Randy2747
@Randy2747 - 24.01.2020 04:11

Could you please help me out and make a code that I can use the relay, PIR, and raspberry pi but have the light (or anything else that is plugged in to the relays) set on a timer? I woukd like to put lasers in my game room and when someone walks into the room the lasers will be by the ceiling and come on for a duration of the time I set. Could you please help me out and either make a video of the timer added or post the code here? Please 😉😁

Ответить
@Randy2747
@Randy2747 - 11.01.2020 05:18

this was a FAIL for me..I figured i would try my first script with my new raspberry pi 3 and i got a error cannot import name 'led' from gpiozero...why?


Edited..I figured it out.......I didnt have capital letter :-)

Ответить
@dimitardimitrov6936
@dimitardimitrov6936 - 09.12.2019 09:35

Thanks for the nice and understandable video! My question is (and maybe it's a good topic for your next video) how can I get information over internet about the pir status and/or history? i.e. "current status", "last time and date it was triggered", "count of the triggers over a period" , " where the pir status history is to be stored, and auto overwritten every 2 months (for example)", etc... The idea is to know the activity at home, when I'm faaaar far away. Is there a mobile app that you know will work?

Ответить
@motzs1016
@motzs1016 - 27.08.2019 05:58

Thanks for this tutorial

Ответить