Introduction: Arduino EEG


First:
A link for the remix contest:
https://m.instructables.com/id/How-to-hack-EEG-toys-with-arduino/

Hello instructibles!! I just made something really really cool. Its not quite mind reading but it sure is close! I have made an arduino powered eeg machine, also known as Electroencephalography machine. Now normaly these will cost you lots of money and are hard to understand without a degree in neuro science, but this arduino version is much cheaper and easier! So you might be asking... What does it do? In short it reads brainwaves that are created by your brain. This allows us to tell how much a person is paying attention or if he/she is deppressed or in an emotional state.

Step 1: Required Materials

You will need a few things in order make this. Most of the stuff I had lying around so it did not cost me much.

1: a mindflex eeg headset (must have a nerosky brand control board inside)

2: an arduino

3: a usb cable

4: a computer

5: basic tools (screwdriver, multimeter, wire-snips)

6: a soldering iron



Step 2: Dismantle the Headset

First, before you do anything make sure you remove the batteries and turn off the headset. Next, unscrew the four screws on the left side of the headset and open it up.

Now look for the smaller circuit board with 6 pins sticking out and a label saying "NeuroSky" after you have found that board, go and solder a wire to the pin that is labeled T and then solder another one to the pin on the bigger board that has a black wire connecting to it.

Step 3: Hookup the Arduino

Hook up the wire soldered to the T pin to the RX pin on the Arduino and the pin soldered to the black wire to GND on the Arduino

Step 4: Wrap It Up

Put the headset back together and zip tie the Arduino to the mind flex, then put the batteries back in.

Step 5: Upload Some Code

Download the Arduino Brain library and upload the brain serial out example code. Note: make sure you disconnect the RX pin wire before uploading as it can cause errors if it is still plugged in. Once you have uploaded it keep your Arduino connected to your computer and plug the RX pin back in. Then turn on the headset.

Open the serial monitor to see if you are getting csv data from the headset.

Step 6: See Your Mind

Download processing here:

https://processing.org/download/

And get the brain grapher code here:

https://github.com/kitschpatrol/BrainGrapher

Then run it while the Arduino is on and sending data. And with enough fiddling with the connection quality indicator you should get realtime brainwave data.

Step 7: Your Done!

Congratulations you have successfully completed this instructible! And created an EEG headset!

:)

Comments

author
VarvaraL1 made it! (author)2017-02-09

Hey! Thank you a lot for the tutorial! If someone knows how to extract only one channel out of all others ? like perceiving only Low Alpha ?

author
Treker2 made it! (author)Treker22017-02-09

Thanks VarvaraL1! the serial data that the Arduino is interpreting is in CSV format, all of the channels and the connection status are being sent to the Arduino in a string of data something like this... (100, 400, 300, 1, 1, 0) every time it takes a reading. if you look through some of the processing code, you might be able to figure out what each section of the string means.

author
Neiljams made it! (author)2016-04-05

This was a fun and easy project, thanks for sharing. I thought the com line was being effected by noise from the ground wire though. I moved the power line completely away from the com line to the otherside of the unit. It helped some. I still think the com signals are being effected by noise.

20160405_230325.jpg
author
Treker2 made it! (author)Treker22016-04-06

Thanks so much! The mind flex headset is clearly not the best of EEG technology. It's probably just bad circuitry.

author
Treker2 made it! (author)2015-09-08

So your saying that even DIY wearable electronics can kill you?! I mean come on! Get off my instructable!
This device will not kill you.

author
billbillt made it! (author)billbillt2015-11-21

There is always some prick out there that likes to piss on your parade... I think this is a great job!!.. As soon as I can get a headset I will try this...

author
Treker2 made it! (author)2015-09-10

Thanks

author
Treker2 made it! (author)2015-09-08

EEG machines do not "attach to the human body"
They just pick up electrical signals from the brain, I can guarantee that any current that happens to reach the headset will short out the board before it reaches the electrodes

author
Treker2 made it! (author)2015-09-08

The EEG machine does not interfere with brainwaves, it simply reads them.

About This Instructable

19,124views

85favorites

License:

Bio: I love making stuff, whether it's robots, music or electronics.
More by Treker2:The Overwhelmingly Awesome Retro EmulatorSmartphone Controlled RobotArduino EEG
Add instructable to: