- Brain Pics - This project measures how my brain secretly feels about random people. - First I downloaded 35 million Google Profiles The database looks like this:
Then I hooked up a Teensy microcontroller to a The Teensy:
My Teensy microcontroller board fits nicely inside the case. The Teensy is hot glued in place, and soldered to the MindFlex. The Finished computer connected EEG mind reader. I had to modify the Arduino code for the Teensy: #include <Brain.h> HardwareSerial Uart = HardwareSerial();
// Set up the brain parser, pass it the hardware serial object you want to listen on.
Brain brain(Uart);
void setup() {
// Start the hardware serial.
Uart.begin(9600);
Serial.begin(9600);
pinMode(11, OUTPUT);
digitalWrite(11, HIGH);
}
void loop() {
// Expect packets about once per second.
// The .readCSV() function returns a string (well, char*) listing the most recent brain data, in the following format:
// "signal strength, attention, meditation, delta, theta, low alpha, high alpha, low beta, high beta, low gamma, high gamma"
if (brain.update()) {
//Serial.println(brain.readErrors());
Serial.println(brain.readCSV());
}
}
Here I'm making music with my MindFlex brain reader.
For the experiment, I display a random Google Profile picture for one second and measure the subjects brain waves. I put the Headset on and connect it to my computer.
Then I do fun stuff in Excel with the data I've just collected:
I find out in the end of that session that dawgies make my brain the most relaxed and attentive. Any questions? |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||