NeuroKnights is a prototype that connects an EEG processing pipeline to a Unity chess game. I worked on the interface, support for two acquisition boards, and the integration between the Python application and the game.
The team used steady-state visually evoked potentials, or SSVEPs. These are EEG responses associated with looking at a target flickering at a particular frequency. The pipeline looks for those responses and maps the detected target to a game input.
Seeing what the hardware is doing
I built the interface for configuring acquisition and inspecting the live signals, then extended it to support two boards. That gave us a place to check the incoming data before trying to explain unexpected behavior in the game.
Getting the input into Unity
The Python pipeline sends commands over TCP. Unity receives them on a separate thread and queues the actions for its main thread. Those actions move the selection or select and deselect a piece.
Keeping a small command interface between the two applications meant the signal-processing side could change without rebuilding the chess controls.
