Skip to content

004. Taking a picture with the Raspberry Pi at regular intervals

vtjeng edited this page Oct 25, 2015 · 1 revision

Once your Pi is set up, it's time to start taking pictures. With your monitor connected, you can capture test images using the raspistill(https://www.raspberrypi.org/documentation/usage/camera/raspicam/raspistill.md) command to make sure that everything is working.

Once you're satisfied, to take a picture with the Pi at regular intervals, you should use the rtlC script. By running it with the appropriate options (I choose -d 24, for a delay of 24 seconds), you'll continue to capture images as long as the Raspberry Pi is on.

To run it at startup, you should insert it into your crontab, like this:

@reboot /path/to/rtlC -d 24 &

Note: The camera module will stop working if a command to capture an image is received while another one is still running. Be mindful of this while modifying the rtlC script!