Hello,
I am new here and I have a question regarding the uses of Processing with a Mindflex connected to an HC-06 bluetooth module.
I saw this tutorial tutorial on instructables http://www.instructables.com/id/Adding-Bluetooth-to-an-EEG-headset-for-Mind-contro/ . For those who knows it's basically a way to connect an EEG headset with a bluetooth module device and use it to process the data of the brainwaves and rebroadcast the values back out through OpenSoundControl (OSC) - BrainwaveOSC (link)
Now this tutorial was inspired by this guy who connected the EEG device with an Arduino directly using cables http://www.instructables.com/id/How-to-hack-EEG-toys-with-arduino/ . From this arduino he was able to rebroadcast the values back out through Braingrapher in Processing https://github.com/kitschpatrol/BrainGrapher/blob/master/BrainGrapher/BrainGrapher.pde
Is it possible to slightly modify the code from the braingrapher so that I can use it to visualize the brainwaves data form the OSC instead of Arduino?
I tried to understand the braingrapher.pde code and this is what I found:
// Set up serial connection println("Find your Arduino in the list below, note its [index]:\n");
for (int i = 0; i < Serial.list().length; i++) { println("[" + i + "] " + Serial.list()[i]);}
Other than that I didn't find anything else about the Arduino connecting to the braingrapher in processing.
How to read values from brainwaveOSC in processing is explained here http://www.instructables.com/id/Throw-fireballs-with-your-mind-using-OSC-and-Proce/
void oscEvent(OscMessage theMessage){
// Print the address and typetag of the message to the console println("OSC Message received! The address pattern is " + theMessage.addrPattern() + ". The typetag is: " + theMessage.typetag());}
but I don't know how to combine the OSC readings with the braingrapher.pde .
Maybe someone could guide me through this so that I can realize my project and experimentation. It would be nice.
PS: The BrainwaveOSC allow to save data into CSV if that is matter as I noticed that the braingrapher also read from a csv data of arduino to convert it into graphs.
Best regards, pr0cesor