Arduino EEG

23,458

92

11

About: I love making stuff, whether it's robots, music or electronics.


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!

:)

Share

Recommendations

  • First Time Author

    First Time Author
  • Big and Small Contest

    Big and Small Contest
  • Make it Glow Contest 2018

    Make it Glow Contest 2018

11 Discussions

0
None
VarvaraL1

1 year ago

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 ?

2 replies
0
None
Treker2VarvaraL1

Reply 1 year ago

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.

0
None
AhmedM540Treker2

Reply 11 months ago

hello! Treker2

how can you record it on byb spike recorder ?

only mindflax and arduino?

and can you do the same thing with processing?

or insted of brain grapher use BYB SPIKE recorder by using Processing 3.3.6?

0
None
rraviprasanth47

1 year ago

Shall we use DIE-EEG circuit instead of headset

0
None
awesomeness0400

1 year ago

Hi, this seems like a pretty awesome project. I've seen the other EEG headsets, and maybe I'm just looking in the wrong place, but I always see them with electrodes that attach to your scalp. Is this not needed for this version, or is that one better?

1 reply
0
None
Treker2awesomeness0400

Reply 1 year ago

I really don't know how accurate this thing is, its marketed as a toy but from what I read about the company who makes the EEG technology (neuro-sky) it is using real EEG sensors, whether they are being impaired by the lack of conductive gel or sensors on the scalp... I dont know, but my guess is that because it is not supposed to take super accurate readings. Its not required...

0
None
Treker2

3 years ago

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.

1 reply
0
None
billbilltTreker2

Reply 3 years ago

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...

0
None
Treker2

3 years ago

Thanks

0
None
Treker2

3 years ago

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

0
None
Treker2

3 years ago

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