Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Science Project Recorded as Time-lapse with Raspberry Pi

One science project we had for school was to observe the influence of light warmness over growth of plants.

The scientific method has six basic steps:

  1. State the problem
  2. Gather information about the problem
  3. Formulate a hypothesis
  4. Test the hypothesis by experimentation
  5. Record and analyze the experiment
  6. State the conclusions

In order to record the experiment, we have decided to create a time-lapse video taking pictures at 5 minutes intervals. This would allow us to compare the growth of plants in the two scenarios, using cold and warm light.

List of materials

  • plant tray (with multiple cells)
  • soil for plants
  • plant seeds
  • light source (led light is best, one cold one warm)
  • Raspberry Pi (Raspberry Pi Zero W costs 10$, you can use any model with wifi to avoid network cables)
  • Raspberry Pi Camera Module (or you can use an old web cam attached to the usb port)

What is Time-lapse? the photographic technique of taking a sequence of frames at specific intervals to record changes that take place over time. When the photos are assembled in a video and shown at normal speed the action seems faster.

Experiment Setup

The setup for our project looked like this:

Time-lapse with raspberry pi
Time-lapse with raspberry pi

Placed each tray on a separate shelf and attached the lights on top of the shelf. Top light warm, bottom light cold.

In order to avoid ambient light interfere with the led light, a cardboard was placed on the side of the shelf.

We have used two Raspberry Pi devices to record each shelf independently. If you have enough space you can place only one camera that can cover both shelfs.

Raspberry Pi Setup

After attaching the camera and configuring the OS on the Raspberry Pi, you are ready to take pictures.

Test that you can run the raspistill command. (see here raspistill documentation)

raspistill -o test.jpg

Create a script to start the raspistill in timelapse mode:

nano timelapse.sh

Copy paste the following command:

raspistill -o plants-%04d.jpg -tl 300000 -t 1209600000 --rotation 90

Note: the above command will take on picture every 5 minutes and a total time of 1.4 days. The rotation parameter was needed to rotate the image at capture time, you can rotate to accommodate your specific setup. (see more details about raspistill timelapse)

Save the script and exit, make the script executable.

chmod a+x timelapse.sh

Run the script:

nohup ./timelapse.sh &

Sample of pictures:

Create the video

In this tutorial there are several options to create the video from the pictures.

We have taken a different approach, using iMovie.

In iMovie, import all pictures into project, drag it on the timeline, set the cropping to FIT, select all pictures in timeline and set duration 0.1

iMovie timelapse
iMovie timelapse

Videos from our experiment:

Part 1
Part 2
Part 3

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *