Skip to content

Setting up the Raspberry Pi

Friedrich Preusser edited this page Mar 28, 2022 · 17 revisions

Getting started with the Raspberry Pi

Good information on how to get started with a Raspberry Pi can be found here. If you use a fresh memory card, you can install the Raspberry Pi operating system via the Raspberry Pi Imager.

An excellent overview of examples for using the Rasperry Pi as a research tool and instructions on how to get started with the Pi, can be found here or in the associated paper by Jolle W. Jolles.

First time starting the Pi

If you've just installed your Pi, change the password, allow SSH and enable the camera port. You can do this by typing sudo raspi-config on the command line in the Pi.

Install WormObserver specific components

Open the terminal on the Raspberry Pi and type the following commands:

  • You'll need to install PyQt5 to display the WormObserver graphical user interface. sudo apt install python3-pyqt5

  • Download the WormObserver GUI. For this, your Pi needs to be connected to the internet.
    We will need to download two files:

  1. curl https://raw.githubusercontent.com/Fritze/WormObserver/master/PI/GUI/WormObserver_gui.ui -o WormObserver_gui.ui
  2. curl https://raw.githubusercontent.com/Fritze/WormObserver/master/PI/GUI/WormObserver.py -o WormObserver.py

Set-up ssh to connect to your workstation

You can also omit this step. In that case, make sure to tick the "Keep videos on raspberry pi" option. Files will remain on the Pi and you can transfer them manually.
(make sure to have enough space on your SD card)

In order for the WormObserver GUI to automatically send your files to a workstation for processing, you'll need to establish a ssh connection without password from your Raspberry Pi to your workstation. A good explanation about how to do this can be found here.

Start the WormObserver GUI

Type python3 WormObserver.py

This will start the graphical user interface:
Overview GUI

Once you start your timelapse, all settings will be saved to a metadata file as .txt file.