UBB Store

HC-SR501 PIR Motion Alarm GPIO Project Kit for Raspberry Pi
When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
HC-SR501 PIR Motion Alarm GPIO Project Kit for Raspberry Pi
Price: GB $16.23
Compatible with Raspberry Pi A, B, A+, B+, Pi 2, Pi 3 and Pi 4 model B (1GB/2GB/4GB) models.Everything you need to detect motion in a room using your Raspberry Pi.
Receive alerts & photos on your phone. Includes these items:
  • Mini PIR Module. Range adjustable from 3-7 metres.
  • x3 IDC link cables (colours actually supplied may vary). Connects mini PIR to GPIO pins on Pi.
  • Various plastic nuts and bolts.
  • Small drill bit.
  • Sticker with drill guide holes
  • x2 Plastic ties
  • DVD with detailed PDF instructions eBook & various useful shell scripts.


Our kit doesn\'t include: Raspberry Pi, Raspberry Pi Camera module or blue Raspberry Pi case shown in the photos.

When you\'re finished your Raspberry Pi will look a little like this:If drilling into your precious Raspberry Pi case fills you with horror, don\'t worry that part is optional!
You can still learn just as much from this kit without drilling the holes, just run your Pi with the lid off instead.You can also use this kit as the basis of an external CCTV project, by mounting all the parts inside a dummy CCTV camera.
Alternatively, you might want to monitor a remote location, by fitting everything inside a waterproof box with a battery pack & 3G Modem.When the PIR module detects motion, the Raspberry Pi will send a series of emails to your email account. If you have the Gmail app running on your iPhone or Android phone you\'ll be instantly notified of the time & date the PIR was activated by text email & if you have a camera attached to the Pi you\'ll also receive an attachment from either your USB webcam or Raspberry Pi Camera module.This has been thoroughly tested on our own Pi & is in everyday use at our office.

Just some of the scripts included:

test.sh - use this script to troubleshoot that everything is working correctly. Scrolls \'0\'s up the screen and \'1\'s when you move near the PIR. Changes when PIR detects motion. Use this script to adjust PIR to suit your room.

securipi.sh - sends details of alarm triggers by email to a Gmail account. You need to setup a Gmail account just for the Pi to use and tweak a few simple settings. Records time & date PIR was triggered to a log file.securipi-rpicam.sh - sends an image from your Raspberry Pi Camera module to the Gmail account on your PC/phone, also records a H.264 video clip to the SD card. Records time & date PIR was triggered to a log file.securipi-night.sh - great for Pi NoIR camera module owners. Only pays attention to the PIR motion sensor between the hours of 22:00 & 07:00 (easily adjustable)securipi-90fps.sh - records a 90 frames per second video to the SD card when the PIR detects motion. Needs good lighting.(when you setup a new Gmail account for the Pi touse, you also need to allow access for \"less secure )
Includes PDF manual with example code on DVD, and components shown in the photo at the top of this listing. Plus any help you need by email.
If you have a Bluetooth or WiFi dongle, we also show you how to scan for devices present when the PIR is triggered.Topics covered in the PDF manual:
  • Connecting wires to the mini PIR module.
  • Mounting of camera module & PIR on the outside of Raspberry Pi case
  • Connection of jumper wires to Raspberry Pi GPIO port
  • Shell scripts to detect GPIO activity
  • The shell scripts can also be downloaded from our internet server direct to the Pi with a wget command. Saves you typing them in.
  • How to configure Pi to send emails using Gmail
  • Capture photos from your Raspberry Pi camera moduleand email you the photo as an attachment.
  • Record 10 second HD videoclip to SD card when the alarm is triggered (easy to make longer or shorter).
  • Shell scripts for grabbing CCTV images from USB video grabbers(STK1160 chipset only).
  • We show you how to grab photos from the Sony PS3 eyetoy USBcamera & any other Pi compatible USB webcam.
  • How to connect to your Pi remotely from your PC or Mac using Putty. Allows you to run the Pi headless.
  • We show you how to copy H.264 video recordings from the Raspberry Pi back to your PC or Mac using Filezilla.
  • You can playback the H.264 videos on your PC or Mac using the free VLC Media Player.
  • How to install Tshark, put WiFi card in monitor mode, grab WiFi Probe Requests from nearby phones. (USB wifi adapter required)
  • Install Bluetooth hardware & software guide (CSR chipset Bluetooth USB device required)
  • Shell script that captures details of any nearby phones with Bluetooth & WiFi enabled & emails Mac address and ID to your email account. (includes facility to exclude neighbours)
  • How to install latest Raspbian SD card image to an SD card on a Windows or Linux PC.
Includes everything shown in the photo above. Doesn\'t include Raspberry Pi or Pi camera module.
Your Pi should be running a recent version of Raspbian & be connected to your internet router. Compatible with Raspberry Pi A, B, A+, B+, Pi 2, Pi 3 and Pi 4 Model B (1GB/2GB/4GB) models.Price includes VAT, receipt provided. Includes 1st class UK postage.
(Worldwide delivery is £7.99)
The SecuriPi kit earned a 9/10 rating in LINUX Format magazine\'s reviews section.Each time the sensor detects movement our script emails a photo to your Gmail account.Our script also adds a time & date stamp to each photoYou can set our night time script to only capture photos between certain hours, and ignore the PIR sensor the rest of the time.Photo below taken by the PiNoIR camera and an Infra Red 48 LED illuminator.
We are not affiliated with the Raspberry Pi Foundation.
Raspberry Pi is a trademark of the Raspberry Pi Foundation.
All rights acknowledged.If you want to have your Raspberry Pi turn a 12v security light on & off while the photo & video are captured, you might also be interested in our illumiPi kitIf you want to do something similar to our PIR kit, but not using a Raspberry Pi, then check out our kit for Windows PCs Arduino PIR Kit
Important information about Gmail account for Raspberry Pi.You need to setup a brand new Gmail account just for your Pi to use to send emails.In addition to the information in the instructions, when you\'ve setup the new Gmail account using your PC, with the account logged in, open another browser window & go check the Enable radio button.Also, when choosing a password for the Gmail account don\'t use the # symbol.
Password test9247!# would fail to send, where test9247!! would work just fine. (try it)



Buy Now