Building a Motion Activated Security Camera with the Raspberry Pi Zero @Raspberry_Pi #piday #raspberrypi

Screen Shot 2017 01 05 at 12 05 24

Fantastic project tutorial from Mark West, via RaspberryPiPod.

Recently my wife and I suspected that some unwanted guests had been visiting our garden.  After a discussion we decided that we needed a motion activated camera that could send us emails once it detected movement.  We also wanted the ability to view the live video stream from the camera on demand.

As a fully fledged Raspberry Pi geek I knew right away that I wanted to build my own solution.  My wife was not so convinced, and starting listing the dozens of unfinished projects I currently have on my backlog.  After promising her that I would see this project through to the bitter end I finally got permission to build a proof of concept

This project required no coding, but quite a bit of configuration. It took about 6-7 hours to complete once I had the parts in place.  I spent most of this time wrestling with Linux and this blog will hopefully help anyone attempting a similar project.

Read more.

2358Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!

Make a robot friend with Adafruit’s CRICKIT – A Creative Robotics & Interactive Construction Kit. It’s an add-on to our popular Circuit Playground Express, FEATHER and other platforms to make and program robots with CircuitPython, MakeCode, and Arduino. Start controlling motors, servos, solenoids. You also get signal pins, capacitive touch sensors, a NeoPixel driver and amplified speaker output. It complements & extends your boards so you can still use all the goodies on the microcontroller, now you have a robotics playground as well.

Join 7,500+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython in 2018 – Python on Microcontrollers is here!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/

Maker Business — Fewer startups, and other collateral damage from the 2018 tariffs

Wearables — Light as a Worbla feather

Electronics — How to make your own magnetic field probe!

Biohacking — The State of DNA Analysis in Three Mindmaps

Python for Microcontrollers — One year of CircuitPython weeklies!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


  1. Thanks for sharing my blog! I’m currently working on a new blogpost where I explain how I used artificial intelligence to filter out the false positives. Part 1 is available here : https://utbrudd.bouvet.no/2017/01/10/smarten-up-your-pi-zero-web-camera-with-image-analysis-and-amazon-web-services-part-1.

    Cool captcha by the way 😀

  2. Amazon Rekognition is nothing close to “free”. While there may be merit in trying to decipher hundreds of still-images (per month) according to their pricing model – you’d be better off financially by hiring a team of security guards working 24/7 to protect that “garden” rather than analyze just one single real-time video feed for any duration.



  3. Jason:

    My solution only sends images to Rekognition when it detects movement. At worse this is 50 images a day, but mostly it’s 10-15.

    Under the AWS Free Tier (https://aws.amazon.com/free/) I can send 5,000 images a month completely free for the first twelve months.

    If I continue using my camera after the free period, and average 50 images a day, then Rekognition will process 18,250 images on my behalf. At the current pricing ($1 per 1,000 images) I’ll pay $18 a year.

    How many security guards are you planning on hiring for that?

    Sorry you are not impressed by my "garden". I’d like a bigger one, but the property prices in Oslo are just insane. I think we are experiencing a bubble :S

    If anyone is interested, the second part of my follow up blog (where I discuss AWS pricing) is now up : https://utbrudd.bouvet.no/2017/01/10/smarten-up-your-pi-zero-web-camera-with-image-analysis-and-amazon-web-services-part-2/

Sorry, the comment form is closed at this time.