i had heard a few years back about the ability of hooking up toy EEGs so you can interface them with your computer. 

I was reminded of this for a project i wanted to do for a class (instructable coming soon ;-)), and i also found a "Star Wars force trainer" on amazon for 30 bucks. 

Here is the simple step by step instructions on how to turn a force trainer into a working EEG you can see with your computer. 

special thanks to frontier nerds for the initial code and the hack of a similar toy. 

Step 1: What you'll need

- Arduino, any kind will do
- Star Wars Force Trainer toy
- A computer running processing and the arduino development enviroment
- solid core wire
- basic soldering supplies

<p>I got this error </p><p>Arduino: 1.6.6 (Mac OS X), Board: &quot;Arduino/Genuino Uno&quot;</p><p>Multiple libraries were found for &quot;Brain.h&quot;</p><p> Used: /Users/lucascoding/Documents/Arduino/libraries/Brain</p><p> Not used: /Users/lucascoding/Documents/Arduino/libraries/Brain-master</p><p>Sketch uses 4,686 bytes (14%) of program storage space. Maximum is 32,256 bytes.</p><p>Global variables use 748 bytes (36%) of dynamic memory, leaving 1,300 bytes for local variables. Maximum is 2,048 bytes.</p><p>avrdude: ser_open(): can't open device &quot;/dev/cu.usbmodem1a21&quot;: No such file or directory</p><p>ioctl(&quot;TIOCMGET&quot;): Inappropriate ioctl for device</p><p>Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.</p><p> This report would have more information with</p><p> &quot;Show verbose output during compilation&quot;</p><p> enabled in File &gt; Preferences.</p>
<p>Just awesome work, thanks for sharing..</p><p><strong><a href="http://www.rachelallan.com/prom-dresses/rachel-allan/2" rel="nofollow">Buy prom gowns</a> </strong></p>
<p>Seeing you stare at the computer screen while wearing it makes me wonder if you could scroll with it. That would be awesome.</p>
<p>there is a new fangled eeg called emotiv, they have a great ted talk. You might be able to create specific patterns by visualizing something. if this creates a repeatable brainwave state you could use that frequency pattern to trigger certain commands. Thats how Emotiv does it anyway. they also have an algorithm to flatten out the folds in the brain. This is because everyone's folds are different...</p>
<p>Fantastic work, awesome processing scripts. I'm trying to write my own, slowly getting there. </p>
<p>I hear you wavelet, i'm in the same boat.</p>
<p>my brother is a handicap he dosn't do any thenk but he now wathe we toking about and he anderstand move his ayes pleas need help contacte me </p><p>gimail or google+: karimmariami12@gmail.com</p><p>my email : amine_1997_aout@hotmail.com</p>
AHHHHHHHH THE BRAIN TEST ARDUINO EXAMPLE SAYS <br> <br> <br>BrainTest:9: error: 'Brain' does not name a type <br>BrainTest.pde: In function 'void loop()': <br>BrainTest:26: error: 'brain' was not declared in this scope <br>BrainTest:34: error: 'brain' was not declared in this scope
make sure you have the brian library declared
<p>Hello, i am also getting the same error. did your error resolve?</p>
After browsing through the frontier nerds' post, I noticed the comparisons between the force trainer (seen in this instructable) and the mindflex. The article mentions that while the mindflex has EEG Power Band Values, the force trainer does not. What exactly does that mean? Which one would you recommend? If they're the same I'd go with the force trainer ($30 cheaper on amazon), but again I'm not really sure what the differences are in terms of features and things we can tap into. Thank you in advance! Can't wait to try this instructable out this summer!
The Frontier Nerds post has some great information, but they do say you can't get full raw EEG data from the MindFlex. I have managed to do this by making some extra changes to the TGAM1 board that is inside the headset. Basically, you will see a port called B1 on the board, and there is a 10K resistor connecting this to GND. If you remove this and replace it with a 10K resistor to VCC then you get full EEG data at 57600 baud, rather than just the summary values at 9600 baud that you get normally.
<p>Could you elaberate more on where it is? I can't find B1 for the life of me.</p>
<p>there's a picture here... http://darrenmothersele.com/blog/2013/10/07/mindflex-raw-eeg-data/</p>
<p>I just saw this and it looks awesome! I actually have the star wars force trainer and am going to see what I can get working. </p>
<p>http://arduinoz.blogspot.com for more details on eeg robot control http://youtu.be/fDrkZbU4zX8</p>
Ok so I originally get the 11 values when I first turn on the Force Trainer headset, however then I can only get the Attention, Meditation, and Connection Status information. Interestingly, if I turn the headset on and off continuously, the Brain Serial Output (Arduino Serial Monitor) shows 11 values again and again. It seems that after the initial check only 3 values are sent. Can you confirm? here's the pic of my hardware mod.<br><br>
<p>The Force Trainer, unlike the Mindflex, only outputs the 3 values, not all 11.</p>
I'm having the same problem - I can get the Attention and Meditation values to come up in a live feed and graph, but I can't get any of the other values (brain waves) to feed in except for the initial output when I first turn on the unit.
Any solution on this? I have the exact same problem. First read has all the values, but thereafter there is only 3.
I never heard back regarding this.
Hi there <br>I keep getting 200,0,0 as the only values and I&rsquo;ve already checked the connection with other wires and it seems fine. Numbers don&rsquo;t lie so I'm doing something wrong. Here is what I get from first line to the sixth: <br>55,0,0,89718,14644,761,1032,1341,626,645,218 <br>29,0,0 <br>29,0,0 <br>200,0,0 <br>200,0,0 <br>200,0,0 <br>And so on.. <br> <br>I&rsquo;m getting the data directly from the EEG chip (pin &ldquo;t&rdquo;) to the RX in my arduino and also sharing the ground. <br>Any clue?
I've successfully made one of these before, but am having the same problem as Fairlane--the repeated monitor output is:<br><br>[0] &quot;200&quot;<br>[1] &quot;0&quot;<br>[2] &quot;0&quot;<br><br>Does anyone have any info on this problem? Any info would be great!
Where you able to resolve this issue? I am getting the same problem here. At the beginning I got only the 3 first readings ok but now they are showing 200, 0, 0 and I am not getting any of the other readings.
200 means there is an issue with the connection. You will not see eSense values (attention/meditation) unless you have 0 where you have 200.
How would this compare to other EEG devices, specifically the Neurosky Mindwave? Would the sampling rate (I think that's what it's called) be less, or would it be significantly less accurate? Lastly, could this be used to measure sleep cycles of a person?
READ the readme
&quot;Fairlane says: Oct 24, 2011. 3:07 PMReply <br>Ok so I originally get the 11 values when I first turn on the Force Trainer headset, however then I can only get the Attention, Meditation, and Connection Status information. Interestingly, if I turn the headset on and off continuously, the Brain Serial Output (Arduino Serial Monitor) shows 11 values again and again. It seems that after the initial check only 3 values are sent. Can you confirm? here's the pic of my hardware mod.&quot; <br> <br> I'm having the same problem and I already made my own program using the brain.cpp functions and it cant get me the values. I thought maybe I damaged the eeg chip when i was soldering it, but I just put all the pieces together and check if the toy was working properly and it was. Also, I start my own serial reading code and I'm getting serial numbers, but I just need a reference to interpret correctly the data. <br> <br>I would appreciate if somebody know how to solve the problem with the original code. It would save a lot of my hobby time
Same problem here
HELP???? <br> <br>Hey , it says serial does not run in 64 bit mode when i try to play it, suggestions???
I could have used this 'ible about six month ago. I have the Mindflex and I ended up getting the Neurosky Mindset, which is basically a version of the Mindflex headset streamlined for getting the FFT information. At a cost of $200. Yours does pretty much the same thing. But the Mindset is wireless, which is nice :)
What do you do when you desire a different derivation of EEG than FPz to A1? Can the user plug in different electrodes to use in the Mindset? Or do they have to use that stupid arm on the forehead?
You really don't have many options. I'm not an electrical engineer, but from what I've read from those who have taken the Neurosky EEG platform (which is the basis for Mindflex and the Mindset) apart, is that they use an active electrode with onboard signal processing. <br><br>It seems to me it would be easier to build your own EEG than to try to modify the Mindset to accept multiple electrodes. <br><br>I've stuck the Mindset to other parts of my scalp, which is awkward because of the armature, and tend to just get squirrely results and poor signal.
What do you suggest for a starter to begin desiging an arduino and learning the intrinsics of the coding, which I really have a tough time with.
a truely wonderfull iable, I love it. Also I wouldn't worry about the mains shock warning. As an EE I see it is possible for it to be hazardous but not likely. <br> <br>I just wouldn't use it while taking abath licking an extension chord and making toast. Geez with these safety finatics these days we will soon have to install bumbers and airbags on our kids to keep them from getting hurt by playing together..somewhere you just got to come to terms we will all eventualy get it, untill then have fun..Kudos with the proj!
How about in the rain, or when sweaty and touching a ground TV cart. C'mon, the risk of electocution is there. I got shocked by an improperly grounded hospital bed once while performing a sleep study on someone.
If you check out the demo video for the Emotiv Epoc, that is probably the closest you'll come to controlling a videogame with your mind. Their demo video shows a man learning to rotate a virtual cube in various directions and making it disappear and reappear on screen. The Epoc has more sensors than the NeuroSky, but it's about three times the price (NeuroSky $100 / Epoc $300), too, and their proprietary software is extremely expensive.
My contribution to the community, Mindflex Duel hack, 50Hz conversion, and output raw.<br><br>http://morloklabs.blogspot.com/2011/12/mindflex-duel-hacking-conversion-50hz-y.html
Ok, I'm new here - does the author reply to these, or how does one get his attention?<br><br>Being a PIC micro person myself, I was inquiring what the baud rate is - 9600, 8 data, 1 stop bit???<br><br>YAG
I am going to see if I can attach this to one of those t-shirt equalizers. An EEG t-shirt haha :D
C:\Users\Vincenzo\Documents\arduino-1.0-windows\arduino-1.0\libraries\Brain/Brain.h:14: note: Brain::Brain(const Brain&amp;)<br>BrainSerialOut.cpp: In function 'void loop()':<br>BrainSerialOut.pde:-1: error: 'class Brain' has no member named 'update'<br><br>I keep getting this error in Arduino and I don't know what it means. Please help? <br><br>Thanks you~
seems to be a defective brain
Help Needed: Does anyone know how to make a EEG/windows laptop interface that would allow one to record P300 brainwave &quot;latency&quot; (speed) and &quot;amplitude&quot; (power) readings using the oddball paradigm evoked potential? There are university neuro labs with big-time equipment to take such measurements. Someday maybe there will be a simple IPAD application. Thanks, guys.
would anyone feel like making me one of these? I'm trying to do some research on Binaural Beats. and would like to have a &quot;EEG&quot; that doesn't break my bank.
Hi, so this is REALLY great, except that when i run the processing code, it says, ArrayIndexOutOfBoundsException: 0 in the following line of code:<br>serial = new Serial(this, Serial.list()[0], 9600); please help!
This is my first time working with Arduino. I managed to make all connections and see lines of three number values scrolling in the serial monitor window when running serial out example. I need help getting the graphs to pop up. Step by step instructions would be great. Also, should there be more than three values displayed in the serial monitor? Thanks for a great project.
This stumped me at first, too. I realized that he means you should load that visualizing code to Processing. You can download it here: http://processing.org/ You load the code and run it much the same way as you would Arduino. Also, you'll probably have to create a sketchbook folder called &quot;libraries&quot; for the library (controlP5) you'll need to run it. Mine went to: /Users/*myname*/Documents/Processing/Libraries. You can see where your sketchbook folder location is by checking your preferences in Processing. Hope that helps!
Thanks for the quick response. I must be doing something wrong. I keep getting errors. I hate to ask but, can you give me an &quot;idiot-proof&quot; step-by-step instruction list? I understand if this is too much, I am very new to Arduino but would like to sue this set-up.<br>Thanks
so can re reverse this and put signals into the brain?
Wow! As soon as I saw this, I simply had to give it a try. Brain wave reading is one of those things I've always wanted to do. <br> <br>So I have a properly hacked headset and the graph program works on my computer. However, when I connect the headset to my computer, only attention and meditation give values. The other columns of the graph remain empty. <br> <br>Any suggestions? How can I fix it?

About This Instructable


326 favorites


Bio: Freelance Lanceman
More by frenzy: Cómo hacer una placa iluminada con teclas de un teclado Una funda para tu dispositivo, hecha de un traje de buceo Dead Drop inalámbrico
Add instructable to: