Monday, February 3, 2014

software.for The data from the NeuroSky to computer

Posted by rinson
That’s the extent of the hardware hack. Now on to the software. The data from the NeuroSky is not in a particularly friendly format. It’s a stream of raw bytes that will need to be parsed before they’ll make any sense. Fate is on our side: the packets coming from the Mind Flex match the structure from NeuroSky’s official Mindset documentation. (See themindset_communications_protocol.pdf document in the Mindset developer kit if you’re interested.) You don’t need to worry about this, since I’ve written an Arduino library that makes the parsing process as painless as possible.
Essentially, the library takes the raw byte data from the NeuroSky chip, and turns it into a niceASCII string of comma-separated values.