Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Raspberry Pi

Raspberry Pi Security Camera with MotionEyeOS and Alerts

Raspberry Pi Security Camera with MotionEyeOS and Alerts

March 11, 2026 /Posted byJayesh Jain / 0

Commercial IP cameras cost thousands of rupees, lock you into proprietary cloud services, and often come with questionable privacy practices. A Raspberry Pi security camera running MotionEyeOS gives you full control: motion detection, instant alerts, remote live viewing, and local recording — all without a monthly subscription and with complete privacy.

MotionEyeOS is a dedicated operating system built specifically for Raspberry Pi camera systems. It transforms your Pi into a powerful network video recorder (NVR) with a polished web interface, multi-camera support, and integration with notification services like email, Telegram, and webhooks.

This guide covers everything from hardware selection to setting up motion alerts that send you a photo the moment something moves.

Table of Contents

  1. Hardware Options: Cameras and Pi Boards
  2. Installing MotionEyeOS
  3. Camera Configuration and Video Settings
  4. Motion Detection Setup
  5. Configuring Alerts (Email, Telegram)
  6. Remote Access and Live Viewing
  7. Multi-Camera Setup
  8. Frequently Asked Questions

Hardware Options: Cameras and Pi Boards

Your camera choice significantly impacts image quality, field of view, and performance in low-light conditions.

Choosing a Pi Board

MotionEyeOS supports Raspberry Pi Zero, Zero 2 W, Pi 3, Pi 4, and Pi 5. For single-camera setups, a Pi Zero 2 W is sufficient and runs cool. For multi-camera or high-resolution recording, a Pi 4 or Pi 5 is recommended.

Recommended: Raspberry Pi 5 Model 4GB RAM — For a serious multi-camera NVR setup, the Pi 5’s Cortex-A76 processor handles multiple H.264 streams with motion detection running simultaneously. 4GB RAM comfortably manages 4+ camera feeds with real-time recording and detection.

Camera Modules

The Raspberry Pi CSI camera interface delivers better performance and lower CPU load than USB cameras:

Recommended: Arducam 12MP IMX477 Pan Tilt Zoom (PTZ) Camera — This professional-grade 12MP camera with IR-cut filter delivers stunning clarity for outdoor surveillance. The motorised pan-tilt-zoom lets you cover a wide area and zoom in on suspicious activity. IR-cut switching ensures accurate colours by day and effective B&W night vision.
Recommended: Arducam 5MP 1080p Pan Tilt Zoom PTZ Camera — A cost-effective PTZ option delivering 1080p Full HD with motorised pan and tilt. Perfect for monitoring larger spaces like living rooms, offices, or garages. Motorised zoom helps capture licence plates or faces from a distance.

USB Cameras

Standard USB webcams also work with MotionEyeOS. They’re easier to position (USB extension cables are cheap) but consume more CPU for video processing.

Recommended: 1/4 CMOS 640×480 USB Camera for Raspberry Pi — A compact USB camera with collapsible cable, ideal for indoor monitoring at tight angles. Low profile design fits easily in corners and tight spaces. Works plug-and-play with MotionEyeOS.

Camera Extension Cables

Need to position your camera module away from the Pi? Flat flex extension cables are essential:

The Arducam 300mm Ribbon Flex Extension Cable extends your Pi Zero camera module by 300mm — enough to mount the camera on a wall bracket while keeping the Pi tucked away in an enclosure.

Installing MotionEyeOS

MotionEyeOS comes as a pre-built image for Raspberry Pi — download and flash, no manual installation required.

Download and Flash

  1. Visit MotionEyeOS GitHub releases
  2. Download the image for your Pi model (e.g., motioneyeos-raspberrypi4-20230226.img.xz for Pi 4)
  3. Flash using Raspberry Pi Imager or Balena Etcher
  4. Insert the SD card and power on your Pi

First Boot Configuration

On first boot, MotionEyeOS creates a WiFi access point: motionEyeOS (password: motioneye). Connect to it, then navigate to http://172.24.1.1 in your browser.

Alternatively, connect via Ethernet first. Find the Pi’s IP using your router’s DHCP table, then access the web interface on port 80.

Initial Setup

  1. Log in with username admin and no password initially
  2. Set admin password immediately (Settings → General Settings)
  3. Configure WiFi under Network → Wireless Network (if using WiFi)
  4. Set your timezone under General Settings

Camera Configuration and Video Settings

Once logged in, your connected camera should appear automatically. Click the settings icon (gear) for the camera to configure it.

Video Settings

  • Resolution: 1920×1080 for Pi 4/5; 1280×720 for Pi Zero 2 W to keep CPU usage manageable
  • Frame Rate: 10–15 fps for recording; 30fps for live streaming if bandwidth allows
  • Video Codec: H.264 for efficient storage; MJPEG for lower-latency live view
  • Rotation: Rotate 180° if camera is mounted upside down

Recording Settings

  • Movies: Enable to record MP4 files on motion detection
  • Still Images: Capture JPEG snapshots at configurable intervals
  • Storage: Configure a local path or mount an NFS/SAMBA share for centralized storage

Image Quality Tuning

For outdoor cameras, adjust these settings for better results:

  • Brightness/Contrast/Saturation: Fine-tune for your lighting conditions
  • Automatic Exposure: Enable for varying outdoor light
  • White Balance: Set to Daylight for consistent colour outdoors

Motion Detection Setup

MotionEyeOS uses the motion daemon internally — a powerful and highly configurable motion detection engine.

Basic Motion Detection

Enable motion detection in the camera settings:

  • Enabled: Yes
  • Frame Change Threshold: 1–2% for sensitive detection; 5–8% to ignore minor movement (leaves, shadows)
  • Motion Gap: 30–60 seconds — how long to keep recording after motion stops
  • Pre-Capture: 2 seconds — records 2 seconds before the motion event starts
  • Post-Capture: 10 seconds — continues recording 10 seconds after motion stops

Motion Masking

If your camera sees a road or tree branch that creates constant false alerts, use motion masking to ignore those areas:

  1. In camera settings, go to Motion Detection → Edit Mask
  2. Draw black rectangles over areas you want to exclude from detection
  3. Save the mask

Sensitivity Zones

You can set different sensitivity levels for different parts of the frame. Set the doorway zone to high sensitivity while reducing sensitivity for the background road.

Configuring Alerts (Email, Telegram)

This is where MotionEyeOS becomes truly powerful — instant notifications the moment motion is detected.

Email Alerts

Go to camera settings → Motion Notifications → Email Notifications:

  • Send Email Notifications: Enable
  • SMTP Server: smtp.gmail.com (port 587)
  • Email From: Your Gmail address
  • Email To: Your notification email
  • SMTP Username/Password: Gmail address + App Password (not your regular Gmail password — create one in Google Account Security)
  • Attachments: Enable to receive a photo of the motion event

Telegram Alerts (Recommended)

Telegram notifications are instant, free, and include photos. MotionEyeOS supports webhook notifications that can be routed to Telegram:

  1. Create a Telegram bot via @BotFather, get the bot token
  2. Get your Telegram chat ID by messaging your bot and calling the Telegram getUpdates API
  3. Use the Webhook notification option in MotionEyeOS to POST to the Telegram API

Webhook Notifications

For custom integrations (WhatsApp, Slack, home automation), use webhooks:

  • Configure the webhook URL in Motion Notifications → Webhook Notifications
  • MotionEyeOS will POST a JSON payload to your URL on every motion event
  • Include %f in the URL/body to send the captured image file path

Remote Access and Live Viewing

Local Network Viewing

Within your home network, access the MotionEyeOS web interface at http://PI_IP_ADDRESS. The interface works in any browser including mobile. The live stream appears directly in the browser — no app required.

Remote Access Options

Option 1: VPN (Recommended) — Set up a WireGuard VPN on the same Pi or a separate Pi (see our WireGuard guide). Connect via VPN, then access the camera interface as if on your local network. Most secure option with zero port forwarding required for the camera itself.

Option 2: Ngrok Tunnel — Install ngrok on the Pi for instant HTTPS tunneling:

curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc
sudo apt install ngrok
ngrok http 80

Option 3: Cloudflare Tunnel — Free, reliable HTTPS access without port forwarding, using Cloudflare’s global network.

Mobile Apps

MotionEyeOS is fully mobile-responsive. For Android users, TinyCam Monitor supports MotionEyeOS cameras natively for a more app-like experience with push notifications.

Multi-Camera Setup

One of MotionEyeOS’s strongest features is the ability to view and manage multiple cameras in a single dashboard.

Adding Multiple Cameras

In the MotionEyeOS interface, click the plus icon to add cameras:

  • Local Camera: A camera physically connected to this Pi (CSI or USB)
  • Network Camera: Another MotionEyeOS Pi, RTSP camera, or MJPEG stream URL

Distributed Architecture

For a whole-home surveillance system, deploy multiple Pi Zero 2 W boards as individual camera nodes, each running MotionEyeOS. Then connect them all to a central MotionEyeOS Pi 4/5 running as the NVR hub. The hub displays all streams and handles recording.

Storage Considerations

Motion-triggered recording at 1080p generates approximately 500MB–1GB per hour of motion events. For long-term storage:

  • Mount a USB hard drive (2TB+) to the Pi for local NVR storage
  • Configure NFS mount to a Synology/QNAP NAS
  • Set automatic file cleanup after 30–90 days in MotionEyeOS settings

Frequently Asked Questions

Can MotionEyeOS work without internet?

Yes, MotionEyeOS works entirely on your local network with no internet required for basic recording and motion detection. You only need internet connectivity for remote access from outside your home, email/Telegram alerts, and time synchronisation (NTP). All video is stored locally — no cloud service required.

How much storage do I need for a 4-camera setup?

It depends on activity levels. For a typical home with 4 cameras recording motion events at 1080p/10fps: budget 2–5GB per camera per day in a moderately busy environment. A 2TB USB drive provides approximately 100–200 days of footage with automatic cleanup policies. Use H.264 codec — it’s 3–4x more efficient than MJPEG.

Does MotionEyeOS support night vision cameras?

MotionEyeOS works with any camera, including IR night vision models. The Arducam IMX477 with IR-cut filter switching is ideal — it delivers full-colour video by day and switches to infrared mode at night automatically. For best results, ensure your camera has IR illuminators for the area you’re monitoring.

Can I use AI object detection with MotionEyeOS?

MotionEyeOS uses pixel-difference based motion detection, not AI. For AI-powered detection (person detection, car detection), consider switching to Frigate NVR which runs YOLO/ONNX models on the Pi and integrates with Home Assistant. Frigate requires at least a Pi 4 4GB and optionally a Coral TPU accelerator for real-time processing.

Will the security camera work during power outages?

Not unless you have a UPS or battery backup. For critical security monitoring, use a UPS for both the Pi and your Ethernet switch. The Pi reboots quickly (30–60 seconds) after power restore, and MotionEyeOS starts automatically. For truly uninterrupted surveillance, a solar-charged battery system is the ultimate solution.

Build your security camera today. Find Raspberry Pi boards, Arducam camera modules, and accessories at Zbotic.in — India’s leading source for Raspberry Pi and camera components. Genuine products, fast shipping across India.

Tags: DIY camera, home surveillance, motion detection, MotionEyeOS, Pi camera, Raspberry Pi, security camera
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
Arduino MPU6050 Tutorial: Gyro...
blog arduino mpu6050 tutorial gyroscope accelerometer guide 595094
blog how to turn raspberry pi into a kodi media centre india guide 595099
How to Turn Raspberry Pi into ...

Related posts

Svg%3E
Read more

Raspberry Pi Benchmarks: Performance Testing All Models

April 1, 2026 0
Table of Contents Introduction and Use Cases Hardware Requirements Software Installation Configuration and Setup Testing and Validation Advanced Features Troubleshooting... Continue reading
Svg%3E
Read more

Raspberry Pi PoE: Power Over Ethernet Setup Guide

April 1, 2026 0
Table of Contents Introduction and Use Cases Hardware Requirements Software Installation Configuration and Setup Testing and Validation Advanced Features Troubleshooting... Continue reading
Svg%3E
Read more

Raspberry Pi GSM HAT: SMS and Cellular IoT

April 1, 2026 0
Table of Contents Introduction and Use Cases Hardware Requirements Software Installation Configuration and Setup Testing and Validation Advanced Features Troubleshooting... Continue reading
Svg%3E
Read more

Raspberry Pi RS485: Industrial Sensor Network

April 1, 2026 0
Table of Contents Introduction and Use Cases Hardware Requirements Software Installation Configuration and Setup Testing and Validation Advanced Features Troubleshooting... Continue reading
Svg%3E
Read more

Raspberry Pi CAN Bus: Vehicle OBD2 Data Reader

April 1, 2026 0
Table of Contents Introduction and Use Cases Hardware Requirements Software Installation Configuration and Setup Testing and Validation Advanced Features Troubleshooting... Continue reading

Add comment Cancel reply

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

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now