Arduino Time Lapse




Introduction: Arduino Time Lapse

That's what we are going to do:

We need:
-Arduino board.
-Sd Breakout Board.
-TTL Serial JPEG Camera.
-RTC Breakout Board (optional).


Step 1: Wiring

This is how wiring works:

5V -> 5V
TX -> D2
RX -> 10K Resistor -> D3

5V -> 5V
CLK -> D13
D0 -> D12
DI ->D11
CS -> D10

5V -> 5V
SDA -> A4
SCL -> A5

***This part is optional. I use it to save files with this date format:
D for day
H for Hour
M for Minute
S for Seconds

This way, I could mix this project with a weather station to know how was the sky when the moisture value was XX%.
The other reason is that I could plug out the board and plug in back without file overwriting issues.

I had long wire to the camera, this way I could fix it to something and keep the SD somewhere where the the card manipulation wouldn't move camera support (I toke the SD card out some seconds to check everything was fine).

Step 2: Firmware

This are the libraries that you might need:

SD (adafruit) >>

Camera >>

RTC >>


Full Code:

If you are not going to use the RTC for naming files, just declare an int variable and ++ on every loop.
You'll have to fill the file name array with 0 to keep names in alphabetic order (I did had some issues with that).
I'll try to upload a new code for this version soon.

Step 3: Jpg Capture to Avi

I used a 2Gb SD card.

The cam takes a picture every 15 seconds (what I takes to save each image to SD).
Every image is 47Kb, so make your math.

For this test video I used 3000 pictures (24h ), 150Mb.

Video Editing:

I used: "PhotoLapse 3"


Just choose the containing jpg's folder, "Load files from current folder". Then choose a FPS that suits your project (20FPS make it smooth and nice cloud movement).
> Create Movie

Watch it, did you liked it?¿
If so, time to share it!!! But... You might have noticed that it might be 1Gb of video (as it isn't compressed). I suggest you to use this freeware tool:
With it, you can compress the movie to div-x or any other format. There are tons of tutorials. I even editted the video and cut some night hours, as nothing happened.

Enjoy your Vids!!!



    • Creative Misuse Contest

      Creative Misuse Contest
    • Fix It! Contest

      Fix It! Contest
    • Metalworking Contest

      Metalworking Contest

    4 Discussions

    Nice tutorial! I would rather save the photos on the SD card, display directly to a TFT display (3.5 "or larger), you would have any schematic to do this?
    Thank you very much

    Hi xfoguet thanks for this great project. It runs very well after including

    #include <SPI.h>

    have a question. Is it possible to show the taken picture an a
    sainsmart 1.8 TFT while the arduino ist saving the picture on the SD

    Then I can see the pictures an have the chance to make the camera position better.

    Greetings from Berlin, Germany