2 Getting Started
2.1 Prerequisites
MATLAB-ver2017b
was used to develop the BioNES. It was also tested withver2015b
andver2018b
for backward and forward compatibility respectively.
-
Arduino hardware board.
- Grove ear-clip sensor.
- FCEUX.
- NES game ROM file. This version of BioNES uses the Super Mario Bros. game without any modification, for other NES games you have to make minor changes to the
BioNES.lua
file.
2.2 Installation and Running
- Download the latest stable release and extract contents into your MATLAB working directory. Alternatively, you can also download the latest code from the repository.
- Open
BioNES.m
in MATLAB. - Connect Arduino board to PC with USB cable. Upload
BioNES.ino
sketch to Arduino board. - Connect the ear-clip sensor to the Arduino board.
- Run
BioNES.m
and wait for the GUI to appear. - In the GUI select the
COM
port for the Arduino and press theConnect
button. - After a successful connection, appropriate settings can be selected.
- Select the biofeedback checkbook (if biofeedback gameplay is needed) and press the
Connect
button in theGame
panel. TheFCEUX
window will open with the pre-configured settings. - Start the acquisition from the
Start/Stop
button in theControl
panel. - The acquisition runs till a set time or can be stopped manually.
- After successful completion, the information panel shows various statistics related to the acquisition.
- Finally, the data can be saved for offline processing.
2.3 GUI
The user interface (Figure 2.1) is straightforward and easy to use. The various sub-components are arranged in panels as per their functionality. The main sub-components of the GUI and their functions are described below:
- Settings
-
Arduino
: Lists the availableCOM
ports. Establishes a connection to the Arduino. -
Game
: List the option to enable biofeedback and start the game. -
Settings
: Lists various settings with defaults.
-
- Information
-
Status
: Panel showing the current status of the GUI. -
Daq Information
: Panel for important information regarding the current session. -
Results
: Panel to display the results after the successful acquisition.
-
- Plot
-
Live plot
: Panel displaying a real-time plot of the acquired data.
-
- Control
-
Control
: Panel to control the state of the GUI and data logging.
-
Figure 2.1 shows the minimum number of steps (labeled from 1 to 4) required for a simple biofeedback session. However, the number of steps may increase depending upon the user’s preference. Following is a brief explanation for each of these steps.
- Select the
COM
port from the list to which the Arduino board is connected. - Connect to the board.
- Select the checkbox to enable biofeedback.
- Start the game.
- Start the acquisition and play the game. You can pre-maturely stop the acquisition using the
Start/Stop
button at will or let it finish by itself till the session duration.