• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
Maker Hacks

Maker Hacks

Ideas, news & tutorials for makers and hackers – Arduino/Raspberry Pi, 3D printing, robotics, laser cutting, and more

  • Home
  • About
  • 3D Printing
  • Laser Cutting
  • YouTube
  • Free Arduino Course
  • Recommendations
  • Contact

Raspberry Pi Security Camera

You are here: Home / Hardware / Raspberry Pi Security Camera
FacebookTweetPin
Author: Chris Garrett

Have you been wanting a wifi camera? Maybe for some added security, or perhaps to monitor the kids/pets/roommate?

Turn your Raspberry Pi into an internet camera!

Have you been wanting a wifi camera? Maybe for some added security, or perhaps to monitor the kids/pets/roommate?

Turn your Raspberry Pi into an internet camera!

raspberry pi security camera

Raspberry Pi projects abound, but this is a circumstance when I knew the solution for a while but only just got around to implementing it. It turns out it is really easy.

Many people use this set up rather than expensive internet security cameras. Rather than worrying about security, I wanted to know if it was worthwhile going to the front door when the dog barks!

Benji Dog is going deaf, so he tends to bark even if there is nobody there. If there really is a person at the door, I want to know if it is a parcel, girl guide cookies, or some other good reason to answer, or if I should ignore it because it is a salesperson or something equally annoying.

With Halloween just around the corner I thought it would be fun to use the motion detection and Python to trigger some scary stuff too …

What you need

  1. Raspberry Pi – I am using a Raspberry Pi 3 for the built-in wifi and because it has 4 USB ports.
  2. Camera – You can use USB cameras or you can use the official Pi camera. I went with the official Pi camera alone for now.
  3. Power – Supply your Pi with 5v, 2amps.
  4. Optional Extras – Due to where and how the front door is located, I am using an extra long Pi camera ribbon cable from Adafruit, and a Zero View camera holder that suctions to the glass. Using my 3d printers and Glowforge I will be creating a more permanent solution, check back for that!

Installation

The magic is all performed by MotionEyeOs. You can also install onto an existing operating system installation, but the disk image does all the heavy lifting for you.

While there are, of course, installation instructions, I simply downloaded the operating system image and burned it as I usually do using Etcher. 

Etcher.io

If you are new to using Etcher to make Raspberry Pi boot disks, follow the instructions in my Octopi tutorial and simply use the MotionEyeOs image file instead.

For network, I plugged in an ethernet cable, but there is an option to set up wifi before booting, or you can use a screen and keyboard to set it up too.

A really cool feature is you can set up the Pi as its own access point and access the camera that way.

Once your Pi has booted and is on the network, you can point your browser at the IP address. The default user is Admin with no password – you will want to change that as soon as you can!

On the web UI in the top left is a burger menu with all the options. You can expand the options to change the user passwords, set your timezone, and so on.

Burger Menu

Motion Detection

As mentioned earlier, there is built-in motion detection. You can get it to send you an email, but also there are options for webhooks and launching commands.

The easiest option after email is to use IFTTT.

Enter the URL to IFTTT in the form of the following …

https://maker.ifttt.com/trigger/*event_name*/with/key/*yourkey*

Swap in your API key that you get from the documentation linked from this page here.

Set up an app to text you, tweet you, or whatever.

IFTTT

Following the instructions here you can set up Google Drive storage.

Programming Your Own Scripts

The operating system comes with Python 2 installed, as the web UI is written in Python, and it being Linux you can also use shell scripting, but the OS is not really intended to be used this way so you would be better using webhooks or installing on top of Raspbian.

I will look at this in a future tutorial!

Accessing Your Camera from the Internet

Want to keep an eye on your house/pets/guests while you are away?

You will need to set up your pi for remote access. Follow that previous tutorial to get working over the external web.

Related

Category: HardwareTag: Hacks, making, raspberry pi
FacebookTweetPin

About Chris Garrett

Marketing nerd by day, maker, retro gaming, tabletop war/roleplaying nerd by night. Co-author of the Problogger Book with Darren Rowse. Husband, Dad, 🇨🇦 Canadian.

Check out Retro Game Coders for retro gaming/computing.

☕️ Support Maker Hacks on Ko-Fi and get exclusive content and rewards!

Previous Post:glowforge-passthrough-hackGlowforge Passthrough Hack: How to Trick the Glowforge Front Flap to “Pass-In” Large Materials
Next Post:Arduino Stepper with Potentiometer Speed Control

Sidebar

  • Facebook
  • Twitter
  • Instagram
  • YouTube

Recently Popular

  • Gweike Cloud Review
  • How to choose the right 3D printer for you
  • Glowforge Review – Glowforge Laser Engraver Impressions, Plus Glowforge Versus Leading Laser Cutters
  • Prusa i3 Mk3S Review
  • Best 3D Printing Facebook Groups
  • xTool D1 Pro Laser Cutter Review
  • Elegoo Mars Review – Review of the Elegoo Mars MSLA Resin 3D Printer
  • Glowforge ‘Pass-Through’ Hack: Tricking the Front Flap of the Glowforge with Magnets to Increase Capacity
  • How to Make a DIY “Internet of Things” Thermometer with ESP8266/Arduino
  • Wanhao Duplicator i3 Review
  • IKEA 3D Printer Enclosure Hack for Wanhao Di3
  • Creality CR-10 3d printer review – Large format, quality output, at a low price!
  • 3D Printed Tardis with Arduino Lights and Sounds
  • Anet A8 Review – Budget ($200 or less!) 3D Printer Kit Review
  • Make your own PEI 3D printer bed and get every print to stick!
  • Upgrading the Wanhao Di3 from Good to Amazing
  • How to Install and Set Up Octopi / Octoprint
  • Creality CR-10 S5 Review
  • Glowforge Air Filter Review
  • Thunder Laser Review
  • 3D Printing
  • CNC
  • Hardware
  • Laser Cutting
  • News
  • Retro Computing
  • Software

amiga amos arduino basic programming budget buying cad cnc commodore corexy c programming creality crypto doctor who emulation esp32 esp8266 filament fpga glowforge Hacks Ideas kids lighting linux Makes making Monoprice Parts pc props prusa python raspberry pi ratrig resin Reviews robots software sounds technology tips upgrades wanhao xtool

.

Maker Hacks Blog Copyright © 2023 · All Rights Reserved · Powered by Mai Theme