What is it?
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
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
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)
End result (rev2)
3d print
Found it on http://www.thingiverse.com/thing:244361
All credits for this design go to adafruit.
TODO
- Create check if there is enough free space before taking the picture
Project costs in € or $
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
- I guess not so much
Wonderful Work! Exactly what i was looking for.
Thank you very much!