Raspberry Pi Time Lapse Camera

From MakerCave
Jump to navigation Jump to search

Inspired by the the fotosyn's Raspberry Pi Time Lapse Camera Project.

  • Raspberry Pi
  • Raspberry Pi Camera Module
  • 64GB SD Card
  • USB WiFi Adapter
  • SanDisk 16GB USB Thumbnail Drive
  • 3D-Printed Case
  • Mounting Arm
  • Velcro
  1. Configure Raspberry Pi
  2. Install Raspberry Pi Camera Module
  3. Install tightvnc.
  4. Install SanDisk 16GB thumb drives.
  5. Install hostap
  6. Install WiFi dongle

How to start raspiLapseCam

  1. Log into the Raspberry Pi using ssh.
    • Camera ad-hoc network IP address is 11.0.0.200
  2. Set date and time (if not connected to the Internet).
    • The Raspberry Pi does not have a Real-Time Clock and sets the current date and time through a NTP server. However, with no Internet connection in the field, the date and time must be manually set. Run the following command:
      sudo date -s 'YYYY-MM-DD hh:mm:ss'
  3. Mount the thumb drive
    • sudo mount /dev/sda1 /media/SanDisk16GB
  4. Change your directory to the one in which you wish to save your time lapse images.Usually this will be on the USB thumb drive:
     cd /media/SanDisk16GB/timelapse/
  5. Run the raspiLapseCam.py python script:
    • sudo /home/pi/timelapse/raspiLapseCam.py &
    • sudo nohup python /home/pi/timelapse/raspiLapseCam.py > /dev/null 2>&1&
      This allows the python script to run in the background even after you have logged out of the ssh sessions. However, one of the issues I had was that nohup automatically defaults to screen output to a file called nohup.out, which can quickly grow in size and eventually bring your Raspberry Pi to a grinding halt. The > /dev/null turns off logging to nohup.out.
  6. Note the process number. This is necessary if you wish to stop raspiLapseCam running.