2 Getting Started
2.1 Prerequisites
MATLAB-ver2017bwas used to develop the BioNES. It was also tested withver2015bandver2018bfor 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.luafile.
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.min MATLAB. - Connect Arduino board to PC with USB cable. Upload
BioNES.inosketch to Arduino board. - Connect the ear-clip sensor to the Arduino board.
- Run
BioNES.mand wait for the GUI to appear. - In the GUI select the
COMport for the Arduino and press theConnectbutton. - After a successful connection, appropriate settings can be selected.
- Select the biofeedback checkbook (if biofeedback gameplay is needed) and press the
Connectbutton in theGamepanel. TheFCEUXwindow will open with the pre-configured settings. - Start the acquisition from the
Start/Stopbutton in theControlpanel. - 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
Figure 2.1: GUI of BioNES. Various sub-components (Settings, Plot, Information, and Control) are labelled. Minimum interaction steps to use are numbered 1 to 4.
Figure 2.2: Biofeedback enables NES game in FCEUX emulator. Feedback bar is shown on the top
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 availableCOMports. 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
COMport 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/Stopbutton at will or let it finish by itself till the session duration.