I’ve had a few goes at using the Pi for time lapse and it worked pretty well so I decided to take a really long one and see how it went. This one is of some broad beans growing, the first try ended badly after a few days when someone (no names, you know who you are!) knocked the camera over while watering the beans. Anyway, this one took 400 hours to make, with a picture taken every hour. I’ve edited out the boring nighttime ones 🙂
The setup is pretty much the same as the standard tutorial https://www.raspberrypi.org/learning/timelapse-setup/
My Bash script is
raspistill -o /home/pi/photos/$DATE.jpg
Just make sure the ‘photos’ or what ever you call it directory exists or it wont save the file, I lost a day due to this. Then make it executable with
chmod +x yourfilename.sh
Then the Cron setting to take a pic every hour is (sudo crontab -e to edit it)
0 * * * * /home/pi/camera.sh /dev/null 2>&1
Save it with ctrl + O
Then every hour it will snap a pic. You can play around with the resolution with raspistill settings and invert it etc.
I managed to line it up without it connected to the TV which was more luck than judgement but I did manage to get it upside-down which looked a little odd 🙂 Luckily I used Movie Maker to combine the pics which can flip the video for you. Each image is set to 200ms so it give 5fps and turns 16 1/2 days into less than a minute!