Project 07 · The Build Log

A DIY Security Camera with Phone Alerts (Under $60)

Intermediate ~1 hour Under $60 all-in, est.

DIY Pi Security Camera with Phone Alerts (Under $60)

Disclosure: As an Amazon Associate I earn from qualifying purchases.

Brand-name porch cameras cost $100–200 and then charge you monthly to watch your own footage. This build does the honest core of that job — motion detection, recorded clips, an alert on your phone — for under $60, with every frame stored on hardware inside your own house. No cloud account. No subscription. No footage of your porch on a stranger’s server.

Get the full kit → jumps to the parts list. It’s a natural partner to Project 02: that box guards your network’s questions; this one watches its driveway.

What You’ll Need

Prices are estimates checked in October 2026 — and the total below is shown with its math, because “under $60” headlines deserve receipts.

Total: ~$54 est. for the camera itself (board + camera + cable + card), ~$62 if you also need a fresh power supply — the only line we’ll ever add to this project’s headline math.

Step 1 — Assemble and Flash (20 Minutes)

Camera ribbon into the Zero’s (narrow) port with the adapter cable — contacts facing the right way, latch closed with fingertip pressure, never force. Flash Raspberry Pi OS Lite with Imager (hostname like porchcam, SSH on, WiFi set — this camera lives on WiFi for most people; place it where the signal is strong, which Step 5 covers). Boot, update, and prove the camera with rpicam-still -o test.jpg: a boring photo of your desk is the certificate that everything downstream can work.

Step 2 — Teach It to Notice Motion (20 Minutes)

The software pattern is a classic, and it’s the same two-layer thinking as the bird camera, minus the AI: a lightweight watcher compares frames (Picamera2 can hand you a small low-resolution stream perfect for this) and, when enough pixels change between frames, the camera records a proper clip — starting a few seconds before the trigger from its rolling buffer, so you catch the approach, not just the doorstep. The motion package and several small Python projects implement exactly this; pick one maintained implementation and configure three numbers: sensitivity (how much change counts), clip length, and cooldown between events. Expect one evening of tuning: too sensitive and every headlight sweep is an event; too dull and it misses the delivery driver it exists to catch. That tuning is the project’s real work, and it’s satisfying in the way only a well-set threshold is.

Step 3 — The Phone Alert (10 Minutes)

An event nobody hears about is just archiving. The simple, reliable alert path: when a clip finishes recording, a small script sends it (or its best frame) to your phone via a messaging bot (Telegram bots are the classic, free, ten-minute version of this) or plain email. Photo-first is the right design: the alert shows you the frame, and the clip is one tap away on the Pi’s local web view. Keep the alert channel and the camera on your own accounts — no third-party “camera cloud” in the middle, which is the entire point of building instead of buying.

Step 4 — Storage That Manages Itself (10 Minutes)

Rules that keep this boring forever: clips live in a dated folder; a nightly cron deletes anything older than your retention window (14 days is a sane home default); and if you have a NAS or any always-on storage in the house, a second cron quietly copies the day’s events there — a camera whose only copy of footage is inside the camera is a camera that can be unplugged by the person it filmed. Set a fixed IP (DHCP reservation, the Project 02 trick) so the web view and the copies never lose the trail. Then forget about it. Security gear you have to babysit isn’t security gear.

Step 5 — Placement, the Unglamorous Decider

What NOT to Buy

The Total, Honestly

Build It This Weekend

Zero 2 W + Camera Module 3 + the little cable everyone forgets + card. Flash, prove the still photo, teach it motion, wire the alert, set retention, mount it where the WiFi is honest. By tonight, your porch reports to you.

Next in the series: pocket-sized nostalgia — Project 12, the retro handheld, takes the Project 01 library off the TV and onto the bus.