You are currently viewing the United Kingdom version of the site.
Would you like to switch to your local site?
6 MIN READ TIME

Record video using motion detection

Jonni Bidwell does his bit for the surveillance state by setting up motion-triggered recording on the Raspberry Pi. He’s got his beady eyes on you!

OUR EXPERT

Jonni Bidwell is fairly contrary. His garden grows with silver bells and cockle shells and Raspberry Pis all in a row.

There are all sorts of things you can do with a Pi and a camera - some of which we dare not mention, and some of which we’ve already covered. Back in LXF265, for example, we showed you how to make a Pi bodycam. We’ve also done stop-motion video (LXF249) and a neat Pi camera booth (LXF248). Way, way back in LXF195 we also made a motion-detecting camera, and we thought it’d be good to revisit this because it’s actually much simpler to set up now. One application for this project is filming wildlife in your garden. Depending on your local climate, you’ll want to waterproof your Pi beforehand and there are a number of external cases that can do just this. You’ll need to have some means of powering it too. We used a PiJuice HAT, which you can connect to an external USB battery or solar panel to top up.

There are a few options software wise, but we’re going to use the same motion software used by Kent Elchuk in our previous motion-detecting tutorial. This will connect to your home wireless network, and enable you to stream via a web browser. By default, the stream will be quite low quality (one Jpeg image per second, which will save battery power). When motion is detected (when a pre-determined number of pixels in the image, subject to some filtering, have changed) the camera will start recording until the motion stops and save a higher-quality video file.

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99p
SUBSCRIBE NOW
30 day trial, then just £9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
Summer 2020
VIEW IN STORE

Other Articles in this Issue


In This Issue
Soft Mints, no Snap
“Won’t people think it’s 20 years old?” management asked when
REVIEWS
Robolinux 11
RoboLinux is a project that we’ve been meaning to look
Calculate Linux 20.6
Back in Elizabethan times, “calculating” used to be a crime,
Besiege
Besiege is notionally a game about engineering medieval siege weapons
Waveshare Game HAT
We heard you like playing games from yesteryear, so how
ROUNDUP
Integrated Development Environments
Mats Tage Axelsson is happiest when writing how to make
MINT 20
Summer is well upon us and what better way to
INTERVIEW
MAINFRAME MAGE
John Mertic is director of program management for the Linux
OPEN SOURCE UNDERGROUND
Those of you who want to exercise your mind and
Pi USER
UBUNTU Pi
The official Canonical-supported desktop flavour of Ubuntu for the Pi
OpenVX lands on Raspberry Pi
This Raspberry Pi thing is all getting very serious. Clearly,
Magnify via Pi
The High Quality Camera for the Pi has been available
Aging Vulkans
We’ve reported that the Pi 4 will be gaining an
Learn how to program the 50 pence chip
Mike Bedford discovered PICs many years ago and felt an
CODING ACADEMY
Revisit the arcade classic Pong in Python
Calvin Robinson is a subject matter expert at the National
REGULARS AT A GLANCE
A new generation of Linux-only PCs
Something unusual is happening in the world of computing: companies
Maintain the maintainers
The Linux Foundation has had its annual shindig at Open
Microsoft Linux Defender
Microsoft is hoping to boost its security protection for Android
BETTER CALL MATT
Matt Yonkovit is Percona’s chief experience officer and a member
SKY HIGH
Keith Edmunds is Tiger Computing Ltd’s MD, which provides support
NEWSDESK
Google is getting a taste of the education market and
Distro watch
A 64-bit live system designed for USB flash drives and
VIRTUAL PLUMBING
2020 has been, and continues to be, a redefining year
LINUX ON APPLE’S ARM
Jon Masters has been involved with Linux for over 22
Kernel Watch
Linus Torvalds has announced the release of Linux 5.8. He’s
ONGOING DEVELOPMENT
Peter Oskolkov posted patches titled Introduce FUTEX_SWAP, which attempts to
Your free downloads
To replace our regular covermounted DVD we’re offering five top
Answers
In looking at the new printers from HP and Epson,
Mailserver
Your “Unpeeling the Onion Browser” article (LXF264, June issue) was
Intel Core i9-10900K
We’re long past the days of monolithic chip designs. Now
Audacity
Shortly after Mike Bedford’s excellent hands-on Audacity tutorial in LXF264,
Ksnip
Three years ago, we said that Ksnip was a promising
PDF Quirk
Modern Linux desktops are mostly a pleasure to use, yet
Apostrophe
There are at least a dozen various text editors for
Pidgin
The usual path for Linux and Windows users that need
QEMU
Virtualisation software is a dream come true for distro-hoppers, because
Bauh
We’re living in a world where traditional package managers (such
Blobby 2
Blobby Volley 2 is a great head-to-head beach volleyball game
JFDuke3D
There are many theories why Duke Nukem 3D has become
Parachute
The cornerstone of desktop productivity is being able to work
Wihotspot
How do you share a Wi-Fi connection in Linux? Well,
TUTORIALS
Find your files in Broot
Shashank Sharma is a trial lawyer Delhi. He’s been participating
Multi-user task and project management
Nick Peers has spent most of the past few months
Configure Proton for enhanced gaming
John Knight When he’s not running away from Australian snakes
Develop video games with the Godot engine
Calvin Robinson is a subject matter expert at the National
Chat
X
Pocketmags Support