Home / Hardware / How to Create a Raspberry Pi Security Camera with Motion Alerts

How to Create a Raspberry Pi Security Camera with Motion Alerts


It’s easy enough to use your Raspberry Pi as a webcam or as a security camera that you look at in real-time, but what if you just want to be notified when your Pi sees motion? You can attach a passive infrared sensor (PIR) to act as a motion detector and then program your Raspberry Pi to send an alert to IFTTT (If This Then That), a web service that gets inputs from devices and acts on them. 

This message to IFTTT will trigger an output and image to be sent to a Telegram account that will send an alert to your mobile device. So, if an intruder walks by the sensor and you’re not home, you will be notified.  

 What You Need

  • Any Raspberry Pi 
  • A Raspberry Pi Camera Module.
  • PIR Sensor such as this one.
  • 3x Female to Female Jumper Wires

 Setting up the Raspberry Pi and Hardware

1.  With the Raspberry Pi powered off, connect the PIR sensor to the GPIO using the three jumper wires. Connect GND to GND, VCC to the 5V pin of the Raspberry Pi. Lastly, connect the output pin of the sensor to GPIO17 of the Raspberry Pi.  

(Image credit: Linux Format)

2.  Connect the camera to the CSI port, just next to the Ethernet/USB ports. You will need to gently lift the plastic clip and slide the cable in with the blue tab facing the USB ports. Then secure the cable with the plastic clip. Ensure that the camera does not touch the Pi at any time as it may cause a short circuit.  



Source link

About Ryan

I'm a true gamer. I'm not a pro gamer but ill never stop playing games. My choice of console is PlayStation, but each to their own. I unfortunately do not get as much time as i would like to still play games, but when i do, i love it!

Check Also

SteelSeries Arctis 1 Wireless Gaming Headset Review: High Quality, Affordable

Today’s best SteelSeries Arctis 1 Wireless deals SteelSeries – Arctis 1… SteelSeries Arctis 1 Wireless… …

Leave a Reply

Your email address will not be published. Required fields are marked *

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box

This site uses Akismet to reduce spam. Learn how your comment data is processed.