Raspberry Pi Security Camera System
Set up a multi-camera security system with motion detection, recording, and remote viewing using Raspberry Pi.
Parts List
- Raspberry Pi 4 (4GB+)
- PiCamera Module v2 (x2)
- MicroSD Card (32GB+)
- Power Supply
- Case with cooling
Step-by-Step Instructions
Install MotionEyeOS
Download MotionEyeOS from the official repository and flash it to your MicroSD card using Etcher or Raspberry Pi Imager. Insert the card into your Raspberry Pi 4 and connect both camera modules to the CSI ports. Boot the Pi and access the MotionEye web interface at http://localhost:8765 to begin configuration.
Configure Cameras
Navigate to the MotionEye settings and enable both camera feeds by adding each camera's unique identifier. Adjust the resolution to 1280x720 for a good balance of quality and storage, and set the frame rate to 15fps. Configure motion detection sensitivity and define detection zones that focus on entry points while ignoring trees or roads that might cause false alarms.
Set Up Network Storage
Mount a network-attached storage (NAS) device or USB hard drive to the Raspberry Pi for recording storage. In MotionEye settings, configure the storage location to point to your mounted directory and set the retention period to automatically delete old recordings. Enable continuous recording or motion-triggered recording based on your preference and available storage capacity.
Enable Remote Access
Install and configure WireGuard VPN on the Raspberry Pi for secure remote access to your camera feeds. Open the necessary ports on your router and configure port forwarding to direct external traffic to the Pi. Test remote viewing from your phone by connecting to the VPN and accessing the MotionEye interface from outside your local network.