• Home
  • |
  • Blog
  • |
  • Step By Step Procedure To Build Your Own Surveillance System Using Raspberry Pi
Step by Step Procedure to Build Your Own Surveillance System Using Raspberry Pi

Raspberry Pi is a tiny computer that can be used for pretty much anything. People use this tiny computer in a variety of things, in IoT projects, network monitoring systems, automating infrastructures, photo and video editing, gaming, crypto-mining, and the list never stops here. It is impossible to cover its applications from one person. We have tried covering some small but useful projects of Raspberry Pi in our earlier posts. We published How to set up Raspberry Pi, different ways to boot and connect Raspberry Pi, use Raspberry pi as a file servermedia server, set up OTT platform, and many more small tutorials. We are going to add another tutorial to the list. In this post, we will show you a step-by-step procedure to build your own surveillance system using Raspberry Pi.

What Is Required To Build Your Own Surveillance System Using Raspberry Pi?

Here are some of the things that you should have handy before you start building your own surveillance system using Raspberry Pi. Please ensure you have things listed here.

  1. Raspberry Pi Mod 3 or 4 with WiFi or Ethernet socket.
  2. Power adopter to power on the Raspberry Pi.
  3. Memory Card to write the Motion Eye OS.
  4. Raspberry Pi Camera Module.
  5. Ethernet Cable if WiFi is not supported.
  6. Computer to download and write Motion Eye OS to the Memory Card.
  7. Router with internet connection.
  8. Optionally, Mouse, Keyboard, Monitor to connect Raspberry Pi, and Raspberry Pi case.

What Is Motion Eye OS?

Motion Eye OS is a perfect solution to build your own surveillance system using Raspberry Pi. Its web-based and user-friendly interface with support for a variety of USB, IP, and Raspberry camera modules make ti perfect to use with Raspberry Pi to build a fully functional surveillance system for your facility. You will be pleased to see its array of features that would force you to use it for this project.

  • Motion detection with email notifications
  • You can set a working schedule
  • Take still images
  • Store your files in an SD card, USB drive, or upload your files to Google Drive or Dropbox
  • Access your media files through FTP server or SFTP server

How To Build Your Own Surveillance System Using Raspberry Pi?

The process of building a surveillance system will be divided into six sections:

  1. Install Motion Eye OS on Raspberry Pi
  2. Connect Motion Eye OS over the WiFi network
  3. Connect Camera module to the Raspberry Pi board
  4. Access Camera on Motion Eye OS
  5. Configure initial Set up of Motion Eye OS
  6. Configure static IP, file saving, motion detection, and other settings on Motion Eye OS

How To to build your own surveillance system using Raspberry Pi?

  1. Install Motion Eye OS on Raspberry Pi

    1. Download the Motion Eye OS from here. Choose the Raspberry Pi module that you have and download the OS.

    2. Extract the image file from the downloaded archive, then write the image file to your SD card using Etcher or Raspberry Pi imager software.

    3. Insert the formatted SD card directly into the Raspberry Pi SD card slot and boot the Pi if you want to use the Ethernet cable.

    4. Boot process may take 1 to 2 minutes as it has to perform a few initialization steps before boot up.
    * preparing the data partition on the SD card
    * configuring SSH remote access
    * auto-configuring any detected camera devices

    Note: Please do not disconnect or reboot your Pi during this process.

    5. Your Raspberry Pi starts listening on port number 80. You can connect the Pi using an Ethernet card and type the Raspberry Pi IP address:80 on the browser to connect the Motion Eye OS.

  2. Connect Motion Eye OS over the WiFi network

    You can skip this step if you want to connect Motion Eye OS over the Ethernet cable. This step is only for those who want to connect Raspberry Pi over the WiFi network.

    To connect Raspberry Pi over WiFi, create a file named wpa_supplicant.conf inside boot directory. Write this content to the file. You need to add Country Code, WiFi name, and password to this file.

    Visit this page for more information.

    country=US
            update_config=1
            ctrl_interface=/var/run/wpa_supplicant

          network={
                scan_ssid=1
                ssid=”MyWiFiSSID”
                psk=”password”
            }

  3. Connect Camera module to the Raspberry Pi board



    Follow these video tutorial to connect the camera module to the Pi.


    Connect Camera module to the Raspberry Pi board

  4. Access Camera on Motion Eye OS

    Your Raspberry Pi listens on port number 80. You can access the Raspberry Pi from a different computer on the same network by typing IP address:80 of the Pi on the browser.

    The default username and password to connect are:
    Username: admin
    Password: admin or [No password, leave blank]

    You should be able to see the live image from the camera if your camera is properly connected to your Raspberry Pi.


    Login Motion Eye OS

  5. Configure initial Set up of Motion Eye OS

    It is a good practice to change the default passwords, timezone, hostname, and other account settings.

    Go to the three bars menu, open the General Settings, enable Advanced Settings.
    Change the admin username and set a password.
    Set a name for a surveillance user and its corresponding password.
    Set your timezone and a hostname.


    Initial Set up of Motion Eye OS

  6. Configure static IP, file saving, motion detection, and other settings on Motion Eye OS

    You can see the static IP and WiFi configurations are under the Network settings. Configure Static IP rather than using automatic IP. This will help you remember the IP and make a bookmark in your browser.

    We recommend you configure storage settings if you want to store a large amount of data. You can configure your data to be stored either on a local drive or cloud storage. You need to choose the storage type as per your needs.

    Record on motion is a good option to have. It allows storing the recordings and saving images only when motion is detected. This saves a lot of storage space and effort. You can set up this under the ‘Video Recording’ and ‘Still Image’ options.

    Setting up Motion Notification and working schedule are the excellent features it is shipped with. It helps to keep everything tracked from the remote.

    Configure static IP, file saving, motion detection, and other settings on Motion Eye OS

See Also  What is Lockbit 3.0? Who is Behind It? How to Protect From Lockbit Ransomware?

We hope this post would help you learn How to Build Your Own Surveillance System Using Raspberry Pi. Thanks for reading this tutorial post. Visit our social media page on FacebookLinkedInTwitterTelegramTumblr, & Medium and subscribe to receive updates like this.

Recommend Products for Raspberry Pi Users

We have some Raspberry Pi accessory recommendations that we think you’ll find useful. These are products we’ve personally selected that we believe are must-haves for any Raspberry Pi owner. Take a moment to look through the list – you can click on any item to view more details or purchase it directly from Amazon. Whether you’re just getting started with your Pi or looking to expand its capabilities, we’re confident you’ll find something helpful among our top picks. Let us know if you have any other questions!

Declaimer: The below products contain affiliate links. We may receive a small commission if you purchase through these links at no additional cost to you. You can read our full affiliate disclosure here.

Read More:

About the author

Arun KL

Arun KL is a cybersecurity professional with 15+ years of experience spanning IT infrastructure, cloud security, vulnerability management, Penetration Testing, security operations, and incident response. He is adept at designing and implementing robust security solutions to safeguard systems and data. Arun holds multiple industry certifications including CCNA, CCNA Security, RHCE, CEH, and AWS Security.

To know more about him, you can visit his profile on LinkedIn.

Leave a Reply

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

  1. Indeed, a very clear procedure.
    I have a question concerning the Motion Eye project.
    On the GitHub page, the latest release of MotionEyeOs is more than 2 years old.

    The original creator seamed to have left the project.
    And I'm not sure about the evolution.

    What would you recommendation be considering this fuzziness in the MotionEye development?

    Thanks!

    1. There are plenty of alternatives, if you want to try out. We didn’t try anyother open-source projects to recommend. If you ever tried any of them. Please leave your findings here so that other readers can get some information.

  2. I just read the article "Step By Step Procedure To Build Your Own Surveillance System Using Raspberry Pi" and I am blown away by how easy it is to build a DIY surveillance system! The article provides a comprehensive guide with detailed step-by-step instructions and helpful screenshots that make the process a breeze, even for beginners.

    Using a Raspberry Pi as the base for the system is a great idea, as it is affordable and readily available. The article covers all the components needed to build the system, from the camera module to the infrared LED board, and explains how they all fit together.

    The article also includes some useful tips on how to secure the system and access the camera feed remotely, which is a great feature for those who want to monitor their home or office when away.

    Overall, I highly recommend this article to anyone looking to build their own surveillance system. It's a cost-effective and practical solution that doesn't require any technical expertise. Thanks for providing such a detailed and user-friendly guide!

    1. We are pleased to see comments like this. We feel proud and motivated when someone sends such feedback. We honestly try to give our best to our readers. However, sometimes we couldn’t because of various constraints.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Learn Something New with Free Email subscription

Email is also one of the ways to be in touch with us. Our free subscription plan offers you to receive post updates straight to your inbox.