← Projects
raspberry-pi beginner Jul 15, 2026 ◑ 49 views ◯ 1 min read

Building a Raspberry Pi Timelapse Camera

Build time: 2-3 hours
Tools needed: 3D printer (optional, for mount)
raspberry pitimelapsecamerapython
Parts List

Prices and availability as of Nov 22, 8:52 AM ET and subject to change. The price shown on Amazon at the time of purchase applies.

Capture frames at intervals and assemble into video. Great for construction, plant growth, 3D print monitoring, or weather.

Hardware

Test Camera

libcamera-still -o test.jpg

If not detected: sudo raspi-config > Interface Options > Camera > Enable

Capture Script

import subprocess, time, os
from datetime import datetime

OUTPUT_DIR = "/home/pi/timelapse"
INTERVAL = 60  # seconds between frames

os.makedirs(OUTPUT_DIR, exist_ok=True)
frame = 0

while True:
    timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
    filename = f"{OUTPUT_DIR}/frame_{frame:05d}_{timestamp}.jpg"
    subprocess.run([
        "libcamera-still", "-o", filename,
        "--width", "1920", "--height", "1080",
        "-t", "1000", "--nopreview"
    ])
    frame += 1
    time.sleep(INTERVAL)

Assemble into Video

sudo apt install ffmpeg -y
ffmpeg -framerate 30 -pattern_type glob -i 'timelapse/frame_*.jpg' \
    -c:v libx264 -pix_fmt yuv420p output.mp4

Remote Deployment Tips