Raspberry Pi 4 surveillance security system with PIR motion sensor and pi camera

Sdílet
Vložit
  • čas přidán 13. 09. 2024
  • Raspberry Pi 4 based surveillance security system with pi camera, PIR motion sensor and python 3.
    SD card formatter:
    www.sdcard.org...
    Raspbian OS:
    www.raspberryp...
    Python source code:
    gist.github.co...
    Raspberry Pi network configuration steps, after writing raspbian image into micro sd card:
    1. create a file named “wpa_supplicant.conf “ with below contents into micro sd card:
    country=CH
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    network={
    ssid="YOUR_NETWORK_NAME"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
    }
    2. Create another blank file named “ssh” into micro sd card.
    raspberry pi 4
    raspberry pi camera
    raspberry pi surveillance system
    surveillance system
    raspberry pi 4 projects
    raspberry pi 4 setup
    smart surveillance camera
    smart security with raspberry pi
    PIR motion sensor with raspberry pi
    diy surveillance camera
    raspberry pi
    how to build surveillance system
    cctv camera
    motion detection
    Raspberry pi motion detection
    raspberry pi 4 gaming
    raspberry pi camera module
    raspberry pi camera
    raspberry pi camera projects
    raspberry pi camera

Komentáře • 139

  • @dhphan3006
    @dhphan3006 Před 3 lety +2

    I'm so stress when I did project. Finally, I can complete it. Thank you so much for detail information!

  • @edytrulli
    @edytrulli Před 2 měsíci +1

    Great video. Thank you for your excellent explanation.

  • @RobinsonBarrazueta98
    @RobinsonBarrazueta98 Před 4 lety +3

    You've helped me to finish my project with this video, thank u so much!!

    • @ASTechWorkshop
      @ASTechWorkshop  Před 4 lety +1

      Nice to hear that...

    • @Ayiamus7
      @Ayiamus7 Před 3 lety

      @@ASTechWorkshop
      Sir I am working on 2 projects for which I am referring ur channel,
      I have some doubts related to raspberry pi Ram so please can u give me ur contact or social media I'd so that I can clear my doubts, kind request

  • @mikecheng6959
    @mikecheng6959 Před 3 lety +2

    Thank you very much for your detailed tutorial. It can be hard, but you made it sound very simple.

  • @arunsanjeykrushnasr6125
    @arunsanjeykrushnasr6125 Před rokem +1

    Thank you for the video tutorial. Very helpful and was able to make and present our course project.

  • @han90s47
    @han90s47 Před 3 lety +1

    Thank you so much for this tutorial. It helped me to done my school project very short time .....

  • @nothought9750
    @nothought9750 Před 3 lety +2

    thankyouuuuu. i want to give a thousand likes!!!

  • @HassanMohamed-ri5rz
    @HassanMohamed-ri5rz Před 4 lety +2

    THANK YOU SO MUCH MAY GOD BLESS YOU... YOU LET ME FINISH MY PROJECT

  • @behappy9710
    @behappy9710 Před 4 lety

    Very creative and knowledgeable dude! Amazed !!

  • @bishwasapkota9621
    @bishwasapkota9621 Před 3 lety

    Such a great video. He explains like a charm!

  • @shahidali2723
    @shahidali2723 Před 4 lety

    Very informative nicely elaborated each and every step with detailed explanation
    Well done 👍

  • @dereksmith5934
    @dereksmith5934 Před 3 lety

    Awesome description very simple. Good work

  • @juidatta2567
    @juidatta2567 Před 4 lety

    Well documented & presented ..

  • @jeanbaptisteminani9546

    Wonderful tutorial. What can be done to automatically have automatic light on? Any recommendation on some switches and Light Bulbs which can be connected to Pi? Also, the latest Pi 4 have fan installed, where camera will be connected in that case? Can I still push it despite having fan as long as I see its slot? Is there any impact on the fan?

  • @gokulg7256
    @gokulg7256 Před 3 lety +1

    Sir can you tell how this can be merged with Android app

  • @gabrielmejia6519
    @gabrielmejia6519 Před 2 lety

    Great video man. Thanks for sharing.

  • @markstart00
    @markstart00 Před 2 lety

    the hardware schematic shows data connected to ground not pin 11 (which would be 6 from the top)

  • @botyokDee
    @botyokDee Před 4 lety

    thank you from sharing a tips surveillance bro

  • @stevenlies5016
    @stevenlies5016 Před 2 lety

    This was a very informative video and a fun project. I do have a couple of questions. I tried to modify the code so that it doesn't send the email, but instead saves the .h264 file. But it will only rename the .h264 once, then every other file afterwards doesn't get saved. Also, does the email part of the code even still work now that Google disabled the allow less secure apps feature?

  • @ahmadadamjj4762
    @ahmadadamjj4762 Před rokem

    A very awesome project and commendable. But the issue I encountered is that the camera keeps on capturing videos without even waiting for the sensor to trigger it before capture. Please help me out bcos I supposed overcome it please 🙏

  • @bismakashan
    @bismakashan Před 4 lety

    wow am shocked what a project 👏🏻👏🏻😍

  • @jtovet
    @jtovet Před 2 lety

    I enjoyed the video...thank you for creating it. In regards to discovering what the IP address of the Raspberry PI is, why don't you just open a terminal on the PI and type in ifconfig? That will instantly tell you it's IP address and you won't have to go into your router. Thanks again for a nice video.

    • @ASTechWorkshop
      @ASTechWorkshop  Před 2 lety

      If u have dhcp enabled, and u power on the pi, some time it will assign random ip address. If it does then u have to get the rpi assigned ip from router in order to open shell..

  • @MrProvocer
    @MrProvocer Před rokem

    Hi, really nice video! thanks. Could you also do a video about a more complex setup involving multiple PIRs, no cameras (or optionally), but other outputs to enable automations? Like when PIR detects motions it activates SMS/email notifications or sounds a buzzer etc. Basically a multiple inputs/outputs setup.
    Also, would be great to have insights on how to integrate such a home alarm setup into Home Assistant...

  • @ramrojiyawa2174
    @ramrojiyawa2174 Před 4 lety

    Good information

  • @entrepreneursaxis6558
    @entrepreneursaxis6558 Před 4 lety

    Informative and inspiring

  • @michalkrajcovic3374
    @michalkrajcovic3374 Před 3 lety

    Great job! I am planning similar project. May I ask how long is the gap between PIR detects motion and camera starts recording?

  • @omkarmhetre4732
    @omkarmhetre4732 Před rokem

    How to draw schematic diagram...
    Which tool used you sir..

  • @shanabbasiurduacademy8335

    Brilliant
    #shanabbasiurdu

  • @kartikrajput2308
    @kartikrajput2308 Před 4 lety

    Nyc and dn

  • @manishankar2137
    @manishankar2137 Před měsícem

    Can this project can be done with raspberry pi 4 with 1 gb RAM?

  • @alainvihumbira8354
    @alainvihumbira8354 Před 3 lety

    Thank you for this rich video, brother for my case I rather have a usb camera would it be possible for me to take over this project? or will there be items to add or install?

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      Check fswebcam python library for usb webcam

    • @alainvihumbira8354
      @alainvihumbira8354 Před 3 lety +1

      @@ASTechWorkshop Ok thank you very much

    • @Bismaverdyaadhika
      @Bismaverdyaadhika Před 3 lety

      @@alainvihumbira8354 have you been successful ?

    • @alainvihumbira8354
      @alainvihumbira8354 Před 3 lety

      @@Bismaverdyaadhika Tried researching this but couldn't find a better way to match it with yours, but recently I was wondering if maybe we could use opencv as well, what do you think there- above or can we consider another solution

  • @devmehta4204
    @devmehta4204 Před rokem

    Is it okay if I dont use the bread board ?

  • @lipenthungjami8035
    @lipenthungjami8035 Před 4 lety

    Tq 4 information

  • @syedasimiqbalshahofficialc6141

    Informative

  • @imranmuhammed5897
    @imranmuhammed5897 Před 4 lety

    Very informative video👍

  • @priyobarta9860
    @priyobarta9860 Před 4 lety

    Really a great video..!

  • @AshutoshKumar-cm6xi
    @AshutoshKumar-cm6xi Před 4 lety

    Very informative

  • @naginaskitchen9803
    @naginaskitchen9803 Před 4 lety +1

    Very nice👍👍

  • @charan_jr
    @charan_jr Před 3 lety

    How to supply electricity to raspian module
    I’m beginner pls help

  • @omedazad5375
    @omedazad5375 Před 2 lety +1

    Hello I want to talk with you I need your help for my project.

  • @gulthakur6097
    @gulthakur6097 Před 4 lety +1

    Very nicee 👌👌

  • @eyookon6224
    @eyookon6224 Před 2 lety

    how can the project work on the raspberry pi without using mobaxterm command

  • @yadavalijaideep7511
    @yadavalijaideep7511 Před 2 lety

    What will happen when we use normal webcam instead of raspberry pi cam

  • @michaelibinola4679
    @michaelibinola4679 Před 3 lety

    HELLO THANK YOU SO MUCH FOR THIS, HELPED IN MY SCHOOL PROJECT, HOW CAN I ADD AN AC LAMP TO THIS FOR A COMPLETE HOME AUTOMATION SYSTEM?

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      For accessing ac lamp, first u need to access raspberry pi gpio pins. U can then add a 5v relay to any of the rpi gpio. Set snd reset the gpio pin from the code just like u sending email.
      tutorials-raspberrypi.com/raspberry-pi-control-relay-switch-via-gpio/

    • @michaelibinola4679
      @michaelibinola4679 Před 3 lety

      @@ASTechWorkshop thank you so much, I would do that. then how do I combine all of this to a single webpage whereby I can put off and on the lamp through a toggle switch? I'm very new to programming

  • @MJKingGamer
    @MJKingGamer Před 4 lety

    Its very helpful

  • @8millionstoriess
    @8millionstoriess Před 4 lety

    Thnks for sharing

  • @chaymaeechchouyekh6836

    Thank you

  • @Gerald-iz7mv
    @Gerald-iz7mv Před rokem

    Hi how far can the motion sensor detect?

  • @apuiahauhnar2
    @apuiahauhnar2 Před 4 lety

    Very inspiring

  • @harshjain8139
    @harshjain8139 Před 3 lety

    sir what if we want to add some more machine learning module into this project like object detection or facial recognition

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      Yes u can extend this project with more modules...

  • @h.hfashion6438
    @h.hfashion6438 Před 4 lety

    Gd information 👌👌

  • @vinodkinoni4863
    @vinodkinoni4863 Před 3 lety

    Hello, thank you for this hard work and good Video. I did everything step by step, but unfortunately that didn't start my pi camera . I have a Raspberry Pi 3 model B +, and i have tested the other code in camera its ok
    plz guide me my motion sensor work fine other code, i guess its some problem in camera capture fuction
    plz tell me

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      I would suggest u to test the camera function separately... Write down the basic python code for capturing video first.. if u get the success, then include other module like motion sensor and email system..

  • @eyookon6224
    @eyookon6224 Před 2 lety

    nice video, please how did you copy ur python file from window to raspberry pi?

    • @ASTechWorkshop
      @ASTechWorkshop  Před 2 lety +1

      U can use a tool named WinScp.. this an FTP tool, where u need to connect ur rpi and transfer files from local machine.

  • @chandanav1943
    @chandanav1943 Před 2 lety

    How the real image compare with stored image

  • @Hoang_Bao_Guitarist
    @Hoang_Bao_Guitarist Před 4 lety

    Liked
    Subscribed
    Thanks

  • @zaikewalirasoi8133
    @zaikewalirasoi8133 Před 4 lety

    Well done

  • @salemammouri
    @salemammouri Před 3 lety

    Hello, thank you for this nice Video. I did everything step by step, but unfortunately that didn't work. I have a Raspberry Pi 3 model B +, can it be that the Problem from that !?

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety +1

      It should not be... it should work on rpi3 as well.

    • @salemammouri
      @salemammouri Před 3 lety +1

      @@ASTechWorkshop it's working now, thanks.

  • @shyamdeewane7903
    @shyamdeewane7903 Před 4 lety

    Nice job bro

  • @eyookon6224
    @eyookon6224 Před 2 lety

    because if i disconnect mobaxterm from raspberry pi the project stop working

    • @ASTechWorkshop
      @ASTechWorkshop  Před 2 lety

      U need to run the program at background not in current shell.. watch the end part of the video for ruuning the python program at background..

  • @Myssa002
    @Myssa002 Před 2 lety

    have you ever made a GUI for a PIR motion sensor ?

  • @blacklegendmusicentertainm2243

    Ok bro great

  • @rudrashankar9869
    @rudrashankar9869 Před 3 lety

    Excellent video. You have clearly explained everything ,in easy to follow steps. Thanks. I was able to complete the project easily with minor issues which i faced, but then i referred back to your video i corrected the errors.
    I want to make a small addition, wherein once the PIR sensor detects a motion i want to also trigger another python script called warninglamp.py. this code switches on a warning LED connected to a gpio pin and LED remains on during the motion and then should stop when motion is not there. How can i call the warninglamp.py code from within your code to start and stop. your help and guidance will be appreciated alot. Thanks

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      U can import ur python file and call the start/stop method... as the pir detection is very swift, so it would be good to on the led for some sec, when motion detected....otherwise u will not realise the led was on..

  • @GerardVillamora
    @GerardVillamora Před 4 lety

    Nice video.

  • @kishonthenkrishnan543
    @kishonthenkrishnan543 Před 3 lety

    Hi Brother,,,I have a question...If let say i wanna upload that video to my local server (which i created from Flask app) so that, we can login to that server and view it or download the video,,,how the coding will be brother??? And can i use USB webcam instead fr the coding u posted??? Thankss!!!

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      Instead of sending the video file as a mail attachment, u can copy thie file to an ftp server.. u can use scp unix command from python os library to copy file. For usb webcam u need to use a separate python library...

  • @cricketlivestreaming534

    Good

  • @EaglesEyeTech
    @EaglesEyeTech Před 4 lety

    good job

  • @simplyesdiaries1910
    @simplyesdiaries1910 Před 4 lety

    Good job

  • @subratasinha9914
    @subratasinha9914 Před 4 lety

    Nice

  • @Bismaverdyaadhika
    @Bismaverdyaadhika Před 3 lety

    How to add auto notification to telegram ?

  • @srisri98765
    @srisri98765 Před 3 lety

    Sir, is that MobaXterm SSH Client is a toolbox that we have to download or will it be inbuilt on our windows?

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety +1

      U have to download it...

    • @srisri98765
      @srisri98765 Před 3 lety

      @@ASTechWorkshop ok sir

    • @srisri98765
      @srisri98765 Před 3 lety

      @@ASTechWorkshop sir, we are not able to install picamera module, is there anything we can do to so that I can import that module. If so, please let me know sir

  • @ajcatindig8445
    @ajcatindig8445 Před 2 lety

    what if the camera and my phone is connected in 2 different netwrok?

    • @ASTechWorkshop
      @ASTechWorkshop  Před 2 lety

      This system will send u email, so u can see the video from any network..

    • @ASTechWorkshop
      @ASTechWorkshop  Před 2 lety

      This system will send u email, so u can see the video from any network..

  • @Ustadxpubg
    @Ustadxpubg Před 4 lety

    Good job bro

  • @amiralyasawan4247
    @amiralyasawan4247 Před 4 lety

    Hard work

  • @suamaamputu9337
    @suamaamputu9337 Před rokem

    Can I use any pi camera for this?

  • @najehbounebi7107
    @najehbounebi7107 Před 3 lety

    can i add an LDR sensor and a lampe on program

  • @dhphan3006
    @dhphan3006 Před 3 lety

    I'm stuck at the last part of this project. Can anyone help me? :((

  • @ReportsInsightsLink
    @ReportsInsightsLink Před 4 lety

    good :)

  • @akshikamde6764
    @akshikamde6764 Před 3 lety

    Will this work with rpi 2?? Pls reply I am new at this.

  • @velociraptor9897
    @velociraptor9897 Před 3 lety

    How do i copy the python file to my raspberry pi? Sorry i m new to this.

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety +1

      U can use a software named winscp... this is an ftp file transfer tool.. connect ur rpi ip address in winscp and start moving files from ur desktop.

    • @velociraptor9897
      @velociraptor9897 Před 3 lety

      thank you!

  • @omeritachiquita
    @omeritachiquita Před 3 lety

    😙👌

  • @sayoniskitchen7067
    @sayoniskitchen7067 Před 4 lety

    Nice video

  • @jesus_songs3005
    @jesus_songs3005 Před rokem

    can I use USB Webcam

  • @tabindaashraf5717
    @tabindaashraf5717 Před 4 lety

    How costly the project turned out to be?

  • @teamstud0129
    @teamstud0129 Před 4 lety

    done

  • @college_projects_codewaves

    Hello sir how to add a buzzer to this

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      Add a buzzer to any free gpio pin in rpi.. in the code add an action method for triggering buzzer, just like sending email function.. check this link for controlling rpi gpio from python --> www.ics.com/blog/control-raspberry-pi-gpio-pins-python

    • @college_projects_codewaves
      @college_projects_codewaves Před 3 lety

      @@ASTechWorkshop thank you sir

    • @college_projects_codewaves
      @college_projects_codewaves Před 2 lety

      @@ASTechWorkshop Sir can we create with raspberrypi zero w,
      For Raspberrypi zero w
      Will the pin number, code and os be the same
      Thank you

  • @josephdanielbuhagiar2735

    can i use a different OS ?

  • @najehbounebi7107
    @najehbounebi7107 Před 3 lety

    please i need help how to copy python code i didn't get it

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      U can use a software named winscp... this is an ftp file transfer tool.. connect ur rpi ip address in winscp and start moving files from ur desktop.

    • @najehbounebi7107
      @najehbounebi7107 Před 3 lety

      @@ASTechWorkshop can you give me your e-mail or your facebook or whatsapp acount i need some help

  • @viaprenestina3894
    @viaprenestina3894 Před 2 lety

    my raspbian has only "legacy" mode for camera interface

  • @dhphan3006
    @dhphan3006 Před 3 lety

    7:41

  • @eyookon6224
    @eyookon6224 Před 2 lety

    please i need help i'm new here

  • @dhphan3006
    @dhphan3006 Před 3 lety

    17:14

  • @vinodkinoni4863
    @vinodkinoni4863 Před 3 lety

    sir u given wrong code on GitHub

    • @ASTechWorkshop
      @ASTechWorkshop  Před 3 lety

      How did u find it wrong, could u pls explain. I uploaded the same code what I used and worked.

  • @hanzlashah6159
    @hanzlashah6159 Před 4 lety

    Informative

  • @GoldenBoot20
    @GoldenBoot20 Před 4 lety

    good information

  • @sujeetdas4472
    @sujeetdas4472 Před 4 lety

    Good job

  • @Viraltone953
    @Viraltone953 Před 4 lety

    Nice video