Across my apartment a demolition is going on. I took this opportunity to start a timelapse project of the demolition.
The rev1 was a simple setup with a bash script making a picture every 5 minutes.
After a while I found it hard to get the camera positioned good (I had to make a picture, download it, adjust it and do it all over again, arghhh), so I wanted to to use the TFT screen that I had lying around for this project.
Going over some TFT screen projects I found https://learn.adafruit.com/diy-wifi-raspberry-pi-touch-cam?view=all
I adjusted the existing code a bit to meet my needs.
The adjusted code for the Raspberry Pi can be found on my github https://github.com/timdows/raspberry-projects/tree/master/Timelapse camera
Camera project for Raspberry Pi + camera + Adafruit PiTFT By PaintYourDragon (Phil B) for Adafruit Industries
The code I use to make a movie, on my ubuntu machine, out of all these pictures consists of two parts.
- Rename the files (remove the echo to execute it)
i=1; for f in *; do echo mv “$f” “$( printf “%05d” $i ).jpg”; ((i++)); done
- Use ffmpeg to make a movie out of these files
cd ~/bin && ./ffmpeg -r 20 -i ~/source_folder/%05d.jpg -s hd720 ~/target_folder/week30.mp4
End result (rev1)
- Create check if there is enough free space before taking the picture
|Raspberry Pi model B (512MB)||€ 21|
|Raspberry Pi Camera Board||€ 25|
|320×240 2.8″ TFT Touchscreen||€ 38|
|WiFi module||€ 19|
|3d print||€ 38|
|Other materials||€ 2|
- I guess not so much