Contrk Ind
Contrk Ind
workshop
living
food
play
outside
Table of Contents
Control A Computer With Your Mind! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/Control-A-Computer-With-Your-Mind/
http://www.instructables.com/id/Control-A-Computer-With-Your-Mind/
On the headset, remove the batteries and the screws that hold the top plate on.
Locate the Neurosky EEG board, as pointed out on the left.
Solder a wire to the T-Pin on the EEG board.
Solder a second wire to the Ground terminal on the battery case.
Drill or carve a small hole in the plastic casing that the wires can run through.
Put a small dab of hot glue on the wires after running them through the hole to hold them in place.
Now youre headset should be ready for outputting data! Replace the batteries and ensure everything is still working, and then screw the top casing back on. The next
part is connecting an Arduino to the headset to collect the data!
http://www.instructables.com/id/Control-A-Computer-With-Your-Mind/
If you like, you can fasten the Arduino to the top of the headset using tape or zip ties.
Connect the T pin wire from the headset to the RX pin on the Arduino.
Connect the Ground wire from the headset to a Ground pin on the Arduino.
Using a USB cable, connect the Arduino to your computer.
Download and install the Arduino software version 1.0.5.
The software doesnt work with any newer versions.
Before starting up the software, download and install the Arduino Brain library. You want to place it in your Arduino Libraries folder.
Startup the software and load up the test program by going to File > Examples > Brain > BrainSerialTest
Upload it to the Arduino (you may have to temporarily remove the RX wire in order to do this)
Open up the serial console, put the headset on your head, turn it on, and see what results you get!
The first number is the signal strength, the second is the attention value, and the third is the mediation value.
***PLEASE NOTE*** If you continuously get a 200,0,0 as your status, this may be due to a grounding issue with the headset. If you are using a laptop, unplug it and let it
run off of battery while your headset is plugged in to see if it fixes the issue.
http://www.instructables.com/id/Control-A-Computer-With-Your-Mind/
4. Download and unzip the custom firmware we will need for this project. This zip file contains two hex files: Arduino-keyboard-0.3.hex and Arduino-usbserialuno.hex
1.
wget http://www.tinkernut.com/demos/arduino_hid/arduino_hid.zip
2.
unzip arduino_hid.zip
5. Use the DFU programmer to erase the chip, upload a new firmware, and reset the chip. For this example, we will just upload an Atmega16u2 version of the USB
firmware.
1.
sudo dfu-programmer atmega16u2 erase
2.
sudo dfu-programmer atmega16u2 flash --debug 1 Arduino-usbserial-uno.hex
3.
sudo dfu-programmer atmega16u2 reset
With the new firmware uploaded, you now have to power-cycle the Arduino. You can do this by simply unplugging it and plugging it back in.
http://www.instructables.com/id/Control-A-Computer-With-Your-Mind/
Check this code for errors and then upload it to the Arduino. Now all thats left to do is follow the same steps as in steps 2 and 3 to upload the Arduino Keyboard
firmware. Briefly, here are the
1.
2.
3.
4.
5.
http://www.instructables.com/id/Control-A-Computer-With-Your-Mind/
medValue = brain.readMeditation();
}
if(brain.readSignalQuality() == 0) {
if (medValue < 50) {
buf[0] = 0;
buf[2] = 0x17; // letter T
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x0C; // letter I
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x11; // letter N
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x0E; // letter K
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x08; // letter E
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x15; // letter R
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x11; // letter N
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x18; // letter U
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x17; // letter T
Serial.write(buf, 8);
delay(40);
releaseKey();
buf[0] = 0;
buf[2] = 0x28; // enter
Serial.write(buf, 8);
delay(40);
releaseKey();
}
}
}
void releaseKey()
{
buf[0] = 0;
buf[2] = 0;
Serial.write(buf, 8); // Release key
}
Before we can upload it to the Arduino, however, we need to convert the Arduino back into USB mode, so repeat Steps 2 and 3 for that.
And finally, once you have it uploaded to your Arduino, you will need to repeat step 4 to convert your Arduino back into keyboard mode.
If everything is successful, once you have your headset on and plugged into your computer, once your meditation value drops below 50, you should see your keyboard
commands executed on the screen!
http://www.instructables.com/id/Control-A-Computer-With-Your-Mind/
Related Instructables
Internet Of
Brain (IoT) by
arunmag
Mind Controlled
Robotic Arm by
LeelaKrishna
Adding
Bluetooth to an
EEG headset for
mind-controlled
projects by
AndreLe
BrainControlled
Wheelchair by
jerkey
BrainControlled RC
Helicopter by
puzzlebox
EEG - brain
computer
interface
(Photos) by
jgrecoarroyo
Advertisements
Comments
3 comments
Add Comment
pabdullah says:
EvolvedAwesome says:
This is SO COOL :)
2choo4yoo says:
So awesome.
http://www.instructables.com/id/Control-A-Computer-With-Your-Mind/