Use motion
on a Raspberry Pi to record time lapse videos.
- Raspberry Pi 2 Model B 1GB
- Logitech HD Pro Webcam C920
- USB Flash Drive 32GB+ (not HDD)
- 16GB MicroSDHC card
- MicroUSB power adapter
During installation only...
- USB keyboard
- USB mouse
- HDMI cable
- Ethernet internet connection
- External display (HDMI input)
-
Download and extract Raspbian OS (Wheezy)
-
Burn Raspbian image onto a formatted microSD card. See installation guide.
sudo dd bs=1m if=/path/to/2015-05-05-raspbian-wheezy.img of=/dev/rdisk2
-
Insert microSD card into Raspberry Pi and power it up. Plug in the mouse, keyboard, camera, thumb drive, ethernet.
-
Run through the install screens. Don't forget to expand the volumes. And localize.
-
Open up a shell and update the packages
sudo apt-get update && sudo apt-get upgrade
-
Install Motion
sudo apt-get install motion
-
Clone the contents of this repo into /home/pi/timelapse
-
Make sure the scripts are executable.
chmod a+x scripts/*
-
Make a target directory for the thumb mount.
sudo mkdir /media/thumb
-
Add the contents of
setup/fstab
to the end of/etc/fstab
. Reboot. -
Add the contents of
setup/crontab
to pi's crontabcrontab -e
-
Sit back and enjoy. And don't pick your nose... you're on camera now.
More to come...
Special thanks to fellow Huger Dave Gómez for just about everything.