Skip to content

msdev1650/BrainlinkPro-Unity-Bridge

 
 

Repository files navigation

BrainLink Pro Unity3D Integration

BrainLink Pro Unity3D Integration is a project that enhances the BrainLinkParser-Python to facilitate low-latency integration of a BrainLink Pro device with Unity3D.

BrainLink Pro Integration

Installation

1. Python Setup

  • Install Python 3.11. Note: Version must match exactly.

2. Required Python Libraries

Install the following libraries using pip:

pip install tkinter pyserial fastapi uvicorn

3. BrainLinkParser

Ensure BrainLinkParser.py is located in the same directory as your script or within your Python path.

4. Running the Python Script

For Windows 11 users:

  1. Open PowerShell in the script's directory.

  2. Execute the following command:

    python .\BrainLinkMonitor.py

5. Unity3D Integration

  1. Import the provided C# script from UnityClient/EEGDataReceiver.cs into your Unity project.
  2. Install the necessary dependencies, particularly:
    • Newtonsoft.Json
  3. Create a TextMeshPro text element in your scene to display the EEG values.

Usage

  1. Start the Python script to begin receiving data from the BrainLink Pro device.
  2. In your Unity project, use the EEGDataReceiver script to process and display the incoming EEG data.

License

This project is a fork of BrainLinkParser-Python, which does not specify a license.

The additional code and modifications made in this fork are available for use under the MIT License.

If you're the original author of BrainLinkParser-Python and have any concerns, please contact us.

Acknowledgments

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.5%
  • C# 48.5%