Hoa Kỳkitschpatrol/brain-grapher
Processing-based visualizer for NeuroSky EEG brainwave data output from the Arduino Brain library.
Brain Grapher
Processing-based visualizer for NeuroSky EEG brainwave data output from the Arduino Brain library.
Overview
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
/codefolder. 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
- Install the Arduino Brain library and upload its BrainSerialTest example to your Arduino.
- Download or clone this repository.
- Open BrainGrapher/BrainGrapher.pde in the Processing editor. Keep the other
.pdefiles and thecodefolder together insideBrainGrapher.
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
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.
EEGLAB is an open source signal processing environment for electrophysiological signals running on Matlab and developed at the SCCN/UCSD
A suite of tools for medical image processing focused on brain analysis
Python tool for converting files and office documents to Markdown.
Reverse engineer anything with agents, from app behavior down to native binaries.
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.
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...