RepositoryProcessingUSHoa Kỳ
kitschpatrol

kitschpatrol/brain-grapher

Processing-based visualizer for NeuroSky EEG brainwave data output from the Arduino Brain library.

240sao
85fork
0issue
5lượt xem

Brain Grapher

License: MIT

Processing-based visualizer for NeuroSky EEG brainwave data output from the Arduino Brain library.

Overview

Brain Grapher showing EEG waveforms and channel monitors

Brain Grapher is a proof of concept for visualizing brainwave data over time. It reads comma-separated serial packets from an Arduino connected to a hacked MindFlex EEG headset, then displays signal quality, attention, meditation, and eight EEG power bands.

The interface provides per-channel graph toggles, four rendering modes, local or global scaling, a time-scale slider, and a connection-quality indicator.

Getting started

Dependencies

  • Processing, historically tested with version 3.0.2. Compatibility with newer versions has not been verified.
  • ControlP5 GUI Library 2.2.5 is included with this project in the /code folder. No separate installation is needed.
  • An Arduino connected over USB and a compatible EEG headset. The Arduino Brain library provides the expected serial output, and the hardware tutorial explains the MindFlex setup.

Installation

  1. Install the Arduino Brain library and upload its BrainSerialTest example to your Arduino.
  2. Download or clone this repository.
  3. Open BrainGrapher/BrainGrapher.pde in the Processing editor. Keep the other .pde files and the code folder together inside BrainGrapher.

Usage

Selecting a serial port

The sketch prints the available serial ports and their indices in Processing's console when it starts. Find your Arduino in that list, then change the index in setup() to match:

serial = new Serial(this, Serial.list()[0], 9600);

For example, use Serial.list()[1] for the port listed as [1]. Run the sketch again after changing the index. The Arduino must send data at 9600 baud. Close other applications using that serial port, including the Arduino Serial Monitor.

Serial data format

Each packet contains 11 comma-separated integers in this order, followed by a newline:

signal quality,attention,meditation,delta,theta,low alpha,high alpha,low beta,high beta,low gamma,high gamma

Signal quality ranges from 0 (good signal) to 200 (no signal). Attention and meditation range from 0 to 100. The remaining eight values represent EEG power bands.

The sketch skips the first three packets to avoid initialization noise. When signal quality is 200, it zeros the eight EEG power values.

Background

Created by Eric Mika at NYU ITP in spring 2010. Revised in spring 2012 for Processing and ControlP5 updates, in early 2014 to bundle dependencies and update ControlP5, and in spring 2016 to support Processing 3 and ControlP5 2.2.5.

The repository was originally named Processing-Brain-Grapher, became BrainGrapher in 2014, and is now hosted at kitschpatrol/brain-grapher.

License

MIT © Eric Mika

The bundled ControlP5 library is covered by its own license.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC++
kitschpatrol/brain

Arduino library for reading NeuroSky EEG brainwave data.

986
Nov 6, 2026
RepositoryMATLAB
sccn/eeglab

EEGLAB is an open source signal processing environment for electrophysiological signals running on Matlab and developed at the SCCN/UCSD

813
Dec 1, 2026
RepositoryC++
BRAINSia/BRAINSTools

A suite of tools for medical image processing focused on brain analysis

131
Nov 13, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026