Skip to content

Software for obtaining centre of pressure data from the Nintendo Wii balance board

License

Notifications You must be signed in to change notification settings

guyverthree/wiicop

 
 

Repository files navigation

wiicop.py

Python 3 software for obtaining centre of pressure data from the Nintendo Wii board. Works on linux computers only. Also obtains subject code and experiment factors such as group (case/control), acquisition time etc. This is used by students and researchers at the British School of Osteopathy, London website.

##INSTALL INSTRUCTIONS

  1. Go to here to download the zip file containing the xwiimote software and unzip it in a suitable directory. Or clone using git.

  2. Go to here to download the zip file containing the xwiimote bindings and unzip it another directory. Or clone using git.

  3. Install the following dependencies (ubuntu based distributions) via:

    sudo apt-get install libudev-dev libncurses5-dev libncursesw5-dev autoconf autogen libtool swig python3-dev python3-tk python3-pip

  4. Install python modules:

    sudo pip3 install pyudev pandas matplotlib

  5. Compile and install xwiimote library. Change (cd) to xwiimote directory (xwiimote-master), then run:

    sudo ./autogen.sh

    sudo ./configure

    sudo make

    sudo make install

  6. Create the xwiimote configure file in /etc/ld.so.comf.d:

    cd /etc/ld.so.conf.d

    sudo nano xwiimote.conf

    And add the following line to this file:

    /usr/local/lib

    and save: Ctrl O, Ctrl X. Next, reload library cache using the following:

    sudo ldconfig

  7. Test xwiimote libraries are installed and can connect Wiiboard by connecting Wiiboard via Bluetooth and running:

    sudo xwiishow

    and follow instructions.

  8. Compile and install xwiimote python bindings. Change (cd) to xwiimote-bindings directory and run following:

    sudo ./autogen.sh

    sudo ./configure PYTHON=/usr/bin/python3

    sudo make

    sudo make install

  9. Add user to input group to allow user (‘usersname’) to run xwiimote software:

    sudo usermod -a -G input usersname

    then log out and log back in again

  10. Create a directory to put the wiiboard software into, e.g. ~/Wiiboard. Copy wiicop.py and WiiCopFunctions.py into this directory. Then add this directory to your python path by adding this line to your ~/.bashrc file:

    export PYTHONPATH="$PYTHONPATH:home/yourusername/path/to/wiicopdir"

  11. In same directory create a directory called config_files to put study configuration files for each study. These need to be amended – see below.

  12. Create a study directory and a sub directory for each study. Amend config file for each study to point to the right directory

NOTES: In Linux Mint 18 Cinnamon edition the default bluetooth (Blueberry) tool doesn't seem to work. Uninstalling it and installing Blueman seems to work:

sudo apt-get remove --purge blueberry
sudo apt-get install blueman

Then reboot

About

Software for obtaining centre of pressure data from the Nintendo Wii balance board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%