Close

Fall detector installation to Raspberry Pi

A project log for Fall detector

Building a device to automatically monitor home care patients

kim-salmiKim Salmi 10/03/2016 at 20:130 Comments

Fall detector installation

Fall detector is installed to a Raspberry Pi 3 model B. Now follows a step-by-step guide for the installation.

For debuggin purposes RASPBIAN JESSIE (Full desktop image based on Debian Jessie) is installed as the operating system. For the final version RASPBIAN JESSIE LITE (Minimal image based on Debian Jessie) with Python and OpenCV installed would be better.

Installing the operating system to the SD card is simple and Raspberry Pi foundation has it all covered up on their website.

After the OS is runnign there are a few things that should be done. Localisation options can be set, if needed, with raspi-config. The following commands will set it to Finnish.

> sudo raspi-config
5 Internationalisation Options
I1 Change locale
fi_FI.UTF8

Keyboard language can be set to Finnish, or any other language, with setxbmap.

setxkbmap fi

Now everything can be updated. This can be made by connecting the device to the internet, via wifi or ethernet. After the connection is established the package list should be updated and then every program should be upgraded and lastly downloaded packages should be cleaned up. This can be made with the following commands.

> sudo apt-get udpdate
> sudo apt-get dist-upgrade
> sudo apt-get clean

After this the latest firmaware should be updated. Raspbian has a tool called rpi-update pre-installed and this can be used for the purpose.

sudo rpi-update

After the firmware is updated, a restart of the system is needed.

sudo shutdown -r 0

Python should be already installed in the system. This can be verified with running python from the terminal.

python

Next OpenCV can be installed with apt-get.

sudo apt-get install libopencv-dev python-opencv

Numpy should be already installed. This can be verified with trying to install it with the Python package manager pip, which is a recursive acronym that stands for "Pip installs Packages".

pip install numpy

Fall detector repository is cloned from Github.

git clone https://github.com/infr/falldetector-public.git

After this the system can be tested with running main.py.

cd falldetector-public/fall-detector-v1/
> python main.py

Discussions