Timelapse camera

What is it? questionmark

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.

Python code questionmark

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

Bash code questionmark

The code I use to make a movie, on my ubuntu machine, out of all these pictures consists of two parts.

  1. Rename the files (remove the echo to execute it)
    i=1; for f in *; do echo mv “$f” “$( printf “%05d” $i ).jpg”; ((i++)); done
  2. 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)

IMG_20141012_124809IMG_20141012_124750IMG_20141012_124813

End result (rev2) questionmark

Raspberry PI with touchscreen in the printed box without the top
Screen when it makes a photo
My modification to the program, Timelapse menu settings
Extra filename options in the menu
End result front
End result back

3d print questionmark

Found it on http://www.thingiverse.com/thing:244361
All credits for this design go to adafruit.

raspberry_pi_hero

TODO questionmark

  1. Create check if there is enough free space before taking the picture

Project costs in € or $ questionmark

Object Price
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
Total € 143

What could be better questionmark

  1. I guess not so much

29 thoughts on “Timelapse camera”

Comments are closed.