Introduction: Brain Controlled Light Bulb
A Future technology experiment
Step 1: Description
This is brain computer interface experiment to control any electrical appliance via just thinking in the mind
When you think something in the brain the neurons inside the brain communicate each other to carry information from one place to another, these communication take place in the form of electrical pulse
And these electrical pulse can be detectable now with the help of modern technology for example Brain sensor
The brain signal can be further classified into delta,theta,alpha,beta and gamma waves based on the frequency band from 0 hz to 100 hz and more
The brain sensor does certain calculation with the brain waves signals and results in two major signal
Called attention and meditation signal
My experiment is based on the attention signal of the brain sensor
Step 2: Components
Components:
1 Brain sensor (mind flex game headphone)
2 Arduino UNO micro controller
3 Bluetooth module (HC-05) in two set
4 SPDT relay
5 Jumper wires
6 Electrical cable
7 Light bulb
8 9 V power supply for arduino
Step 3: Pin Configuration
1 First you need to synchnize both Bluetooth modules in master-slave mode
2 Brain sensor Bluetooth (Slave)
Tx ß--------à Rx
RX ß---------àTX
5vß--------à Vcc
Groundß-------àGround
2 Arduino Bluetooth (Master)
Tx ß--------à Rx
RX ß---------àTX
5vß--------à Vcc
Groundß-------àGround
4 Pin 10 of Arduino to relay terminal A
5 Pin ground of Arduino to relay terminal B
6 220V AC supply to common pole of relay
7 NC terminal to the electrical appliance for example(light bulb)
Step 4: Arduino Code
//Program:
// Arduino Brain Library - Brain Serial Test
#include
const int BULBPIN = 10; // the number of the BULB pin
// Set up the brain parser, pass it the hardware serial object you want to listen on.
Brain brain(Serial);
int AttentionValue=0;
int BulbState = 0;
void setup() {
pinMode(BULBPIN, OUTPUT);
// Start the hardware serial.
Serial.begin(9600);
}
void loop() {
// Expect packets about once per second.
// The .readCSV() function returns a string (well, char*) listing the most recent brain data, in the following format:
// "signal strength, attention, meditation, delta, theta, low alpha, high alpha, low beta, high beta, low gamma, high gamma"
if (brain.update()) {
Serial.println(brain.readErrors());
Serial.println(brain.readCSV());
// Serial.println("Attention :" +brain.readAttention());
if(brain.readAttention()>75)
{
//Serial.println("Attention :" +brain.readAttention();
if(BulbState==LOW)
{
digitalWrite(BULBPIN, HIGH);
BulbState=1;
delay(50);
}
else
{
digitalWrite(BULBPIN, LOW);
BulbState=0;
delay(50);
}
}
delay(2000);
}
}
Step 5: How It Works
when we
think something our brain emits certain brain waves these brain waves
Signals are captured by the brain sensor. The slave Bluetooth module attached with the brain sensor sends the signals to the another synchronized master Bluetooth module which further send the signal to the ardunino micro controller, the microcontroller manipulate the signals and read the attention and if the attention signal rises enough to cross the limit of threshold value , it now send signal to relay to turn on or turn off the light bulb.
26 Comments
Question 3 years ago
i cannot paring
hc05 and nuerosky
Answer 2 years ago
There are lot of online tutorials on connecting of HC-05 with nuerosky for example
https://github.com/Thought-Controlled-Machine/TCM-REP/wiki/Configuring-HC05-for-Mindwave-Mobile-&-Data-Transfer
3 years ago
Very interesting project sir
Sir, please make more on this topic like brain control car and robots etc.
Reply 2 years ago
Thanks, The concepts is same for other brain controlled applications like game,robots car etc
Question 3 years ago
Hi, I am currently working on an EEG project. Instead of using a premade headset, I am making a mark-iv board from openbci. In that board, there are dry electrodes that connect to a Cyton-Board through jumper wires.
So, If I am using your circuit, where am I supposed to plug in the dry electrodes?
Answer 3 years ago
Sir how to learn more about BCI
I really want to make intresting project in this field
Reply 2 years ago
I followed this wonderful article on BCI
http://www.frontiernerds.com/brain-hack
Answer 2 years ago
These dry electrodes can be plug in the input pins of arduino
4 years ago
can i use brainsense-brain computer intserface instad of mindflex..?
this is the linkhttps://www.amazon.in/pantech-solutions-Brainsense-Brain-Computer-Interface/dp/B00U1BX1OU/ref=sr_1_2?keywords=mindflex&qid=1554025194&s=gateway&sr=8-2
Reply 4 years ago
of course you can , what we really need is a brain sensor of any kind which can read brain waves we can manipulate it accordingly to our project requirement
Question 4 years ago on Introduction
Thank you sir, great project. What is the program Brain.h? Did you previously code it or is it automatically found in the Arduino library?
Answer 4 years ago
Brain.h is inbuilt program from arduino brain library
6 years ago
from where did you got the brain sensor?
Reply 6 years ago
The brain sensor i used in this experiment is just a headset of mind flex game, i just hacked it as per instructed by below article (Thanks to frontiernerds)
http://www.frontiernerds.com/brain-hack
Reply 6 years ago
how can we make mind flex
Reply 4 years ago
We can purchase mind flex head band online and with a little modification it is ready to use as a brain sensor
Reply 5 years ago
you can buy Mind flex game from any online store and later you can use headset for this experiment after a slight modification
5 years ago on Introduction
hello sir,
is any program is required for interfacing bluretooth with arduino or it will directly sends the data to Rx arduino pin...??
plz help me sir
Reply 4 years ago
It will directly send data to bluetooth pin
Reply 5 years ago
It requires Bluetooth with arduino