I am back with an another instructable which is really cool.
So far i have been working on building a prototype with a application or use case.
This is something I am building it for fun and I love it.
I have built EEG based bot, Automation, VR navigation, etc!
This time i am building the EEG based mood light.
Step 1: Parts Needed
1M LED strip
12v Power supply.
Step 2: What Is Brain? How We Hack the Data?
There are two parameter you need to know one is Brain which is the main part of our body which sends electrical impulse to the parts of the body via nerves..
These signals are called as synapse.. so we use sensors/electrodes to decode those electrical activity over the brain and send it to the device we are going to work called as Electroencephalography
The human brain has the same general structure as the brains of other mammals, but has a more developed cerebral cortex than any other. Large animals such as whales and elephants have larger brains in absolute terms, but when measured using the encephalization quotient, which compensates for body size, the human brain is almost twice as large as the brain of the bottlenose dolphin, and three times as large as the brain of a chimpanzee. Much of the expansion comes from the cerebral cortex, especially the frontal lobes, which are associated with executive functions such as self-control, planning, reasoning, and abstract thought. The portion of the cerebral cortex devoted to vision, the visual cortex, is also greatly enlarged in humans.
Electroencephalography (EEG) is the recording of electrical activity along the scalp. EEG measures voltage fluctuations resulting from ionic current flows within the neurons of the brain.
In clinical contexts, EEG refers to the recording of the brain's spontaneous electrical activity over a short period of time, usually 20–40 minutes, as recorded from multiple electrodes placed on the scalp. Diagnostic applications generally focus on the spectral content of EEG, that is, the type of neural oscillations that can be observed in EEG signals.
Step 3: What Is Mindwave:
Here is am going to explain the sensor which is being used to record the signal from our brain scalp.
To understand the MindWave and MindWave Mobile, we must first understand what an EEG sensor is. The first recording of the human brain’s electric field was made by Hans Berger, a German psychiatrist, in 1924. Berger gave the recording the name electroencephalogram (EEG). Put simply, the EEG is performed by placing electrodes all over the subject’s scalp, and then reading in the electrical signals for analysis. Fast forward to today, and you have all of this technology packed into a compact form factor that is the MindWave. which sends all the EEG data by Bluetooth.
The amplitude of the EEG is ~ 100 µV when measured on the scalp, and
about 1-2 mV when measured on the surface of the brain. The bandwidth of this signal is from under 1 Hz to about 50 Hz.
Step 4: Connecting It to HC05
HC05 default works as slave. But here we need to change that into master so as to connect it to the slave mindwave device to get EEG data.
I used this awesome link to configure it as Master
Once it is being configured connect this to the Edison arduino shield to pin D0 and D1
Power the board and push the arduino sketch to the board,
You can see your EEG data on the serial console.
Step 5: Connecting LED Strip to the Intel Edison:
I bought a 1Metre LED stripe. It is non programmable.
It has four pins on it. They are
12v, red gnd, blue gnd, green gnd.
Now I cannot drive the LED directly from Edison GPIO.
I used ULM 2003 chip which is basically a 8 bit transistor array.
I connected the wires in this manner and powered it by the 12v power supply i got from the LED stripe and tested the LED and it works without much of heating.
Always be careful while working with high voltage.
Step 6: Testing!!!!!!!
Now you can test the module with the code.
You can now see the light color changes based upon your brain signal.
You can modify the code to vary based upon other brain parameters too
Below is the test video of the same.
Suggestions and comments are welcomed.