Rustymind
A driver, parser and real time brainwave plotter for NeuroSky MindWave EEG headset
Install / Use
/learn @junjunjd/RustymindREADME
rustymind
Rustymind is a driver and parser for NeuroSky MindWave EEG headset written in pure Rust. You can use it to connect, interact, and plot real time brainwave data measured from the headset.
The parser is based on the mindwave mindset communication protocols published by NeuroSky.
See below for a screenshot of real time mindwaves plotted by rustymind-plot CLI based on rustymind parser.

Getting Started
rustymind-plot takes two arguments to run:
- MindWave device path. On Mac, the path would be in the format of
/dev/tty.usbserial-10000 - Headset ID (printed inside the battery case)
cargo run --bin rustymind-plot "/dev/tty.usbserial-10000" a05f
If you don't pass in the headset ID argument, the dongle will auto-connect to any headsets it can find.
To use rustymind as a library, you need to use connect_headset function and Parser struct. For example:
use rustymind::{connect_headset, PacketType, Parser};
let mut port = connect_headset("/dev/tty.usbserial-10000", b"\xa0\x5f")?;
let mut buffer: Vec<u8> = vec![0; 2048];
let mut parser = Parser::new();
loop {
let bytes_read = port.read(buffer.as_mut_slice()).unwrap();
for i in 0..bytes_read {
if let Some(x) = parser.parse(buffer[i]) {
for r in x {
match r {
PacketType::Attention(value) => {
println!("Attention value = {}", value);
}
PacketType::Meditation(value) => {
println!("Meditation value = {}", value);
}
PacketType::AsicEeg(value) => {
println!("EEG power values = {:?}", value);
}
_ => (),
}
}
}
}
}
This software is not intended to be used in medical diagnostics or medical treatment.
Related Skills
himalaya
341.0kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
coding-agent
341.0kDelegate coding tasks to Codex, Claude Code, or Pi agents via background process
