Sunday, December 22, 2024

DIY: Brain Controlled Lights!!! (Using EEG Based IoT Controller)

Have you ever thought of controlling things with just your thoughts? Well, it is now possible!

The idea for this IoT project came while working on the BioSecure project wherein a unique pattern was created using a brain controlled EEG and EMG signals to act as a unique password. This led to the development of a machine learning (ML) model that understood brain signals and thereby created unique patterns using our thoughts. For example, when thinking in a particular language, the ML model is able to read those thoughts and translate them.

To achieve this, the brain data corresponding to the level of mental attention needs to be obtained using an EEG sensor. This level is then given a threshold value. When the attention level goes above this threshold value, lights or other IoT connected appliances (that were thought of) switch on/off.

- Advertisement -

This project does not end here. The journey of discovery will continue, which will later evolve into a brain-computer interface (BCI) and might become the world’s first thoughts translator that uses an ML model.

Author’s prototype during testing for Control Lights Through Thoughts
Fig. 1: Author’s prototype during testing for Control Lights Through Thoughts

Sounds highly interesting and quite futuristic as well? If so, let us start the project by shopping for the components mentioned under Bill of Material.

- Advertisement -

Prerequisite

There are various EEG sensors such as OpenBCI and NeuroSky MindWave available in the market. For this project, the NeuroSky MindWave Mobile 2 EEG sensor is being used.

Install Bluez driver into the Raspberry Pi. But if you have the latest version of the Raspbian OS, there is no need to do so as the driver and relevant software are pre-installed.

Open the Bluetooth devices in Settings and pair the EEG sensor via Bluetooth with the Raspberry Pi. On successful connection with serial ports, a message with the serial port name will be displayed. Note it down.

Bluetooth setting
Fig. 2: Bluetooth setting
Serial port name
Fig. 3: Serial port name

Please register to view this article or log in below. Tip: Please subscribe to EFY Prime to read the Prime articles.

Ashwini Sinha
Ashwini Sinha
A tech journalist at EFY, with hands-on expertise in electronics DIY. He has an extraordinary passion for AI, IoT, and electronics. Holder of two design records and two times winner of US-China Makers Award.

SHARE YOUR THOUGHTS & COMMENTS

EFY Prime

Unique DIY Projects

Truly Innovative Electronics

Electronics News

Latest DIY Videos

Electronics Components

Electronics Jobs

Calculators For Electronics