My experiences with Mindwave Mobile 2

Medical imaging course · project
EEG · BLE · Arduino · HC-05

During this academic term, I took a lecture on medical imaging. For the project associated with this lecture, I decided to work with the MindWave Mobile 2 device since our department owns one, and I may not have the opportunity to interact with this kit after graduation. My initial goal was to control a robotic arm using thought signals. However, as I explored the kit, I realized that it might not function consistently or reliably.

I started by investigating how the kit operates, understanding its capabilities, and assessing whether it functions appropriately. This preliminary exploration helped me evaluate its potential applications and limitations in controlling external systems like robotic arms.

How It Works?
Figure 1. Diagram of Mindwave Mobile 2
Figure 1. Diagram of Mindwave Mobile 2

As seen in Figure 1, the device has two electrodes: one functions as the ground, while the other captures EEG signals from the frontal lobe. The kit operates using a single AAA alkaline battery and communicates via BLE (Bluetooth Low Energy). BLE is a specialized type of Bluetooth that allows devices to interact with low energy consumption. This communication method is widely used in applications such as syncing daily fitness data from smartwatches or enabling home security systems with devices like the ESP32-C6.

What is an EEG Signal?

To visualize our body’s activities, various techniques like EMG, EEG, and EKG are used. Our body generates small electrical signals in different ways, such as muscle contractions, the electrical activity of neurons communicating with one another, and the systolic activity of the heart. These signals occur at different frequency levels. To monitor this information, processes like amplification and filtering are performed using various signal conditioning elements.

EEG refers to an electroencephalogram. In Figure 2, you can see a basic example of EEG monitoring, although the headset design may vary depending on specific requirements.

Figure 2. Basic Usage of EEG Monitoring
Figure 2. Basic Usage of EEG Monitoring
What Does the NeuroSky MindWave Mobile Provide?

The NeuroSky MindWave Mobile kit captures raw EEG data and provides frequency bands such as alpha, beta, gamma, and theta. Additionally, it offers signal quality metrics, blink detection, meditation levels, and attention levels.

It’s clear that we can’t directly control motors using the power of thought alone, but it may be possible to identify specific frequency band values under certain conditions. This idea came to my mind, but I haven’t tried it, and my study ended with this kit.

Efforts for Communication

Initially, I wanted to use a Raspberry Pi 4 because it has its own Bluetooth module. However, my recent experiments with the HC-05 module did not go as expected. To troubleshoot, I researched various studies online, and I have included some of the sources I found useful.

I installed the necessary libraries and successfully obtained raw data a few times, but I was unable to parse it. After some time, I noticed that the Bluetooth connection was no longer working. Eventually, I switched to using an Arduino Mega with the HC-05 module.

Here are the sources I used:

Using this video, we pair the HC-05 module with our kit, and after pairing, we can establish communication. You can find more details in the following GitHub link:

GitHub - ailr16/mindwave-arduino-tools: Neurosky Mindwave API for Arduino boardsNeurosky Mindwave API for Arduino boards. Contribute to ailr16/mindwave-arduino-tools development by creating an account on GitHub.

Next, I recreated the code by adding output components such as LEDs and servo motors. This final project focuses on adjusting the LED intensity and controlling the servo motor angles.

In short, controlling devices using this kit is not quite effective because we haven’t determined specific states like relaxation or attention. Additionally, controlling devices with rapid changes in brain activity does not perform well.

Here is the link to my code and a demonstration of my study.

Circuit of Final Study
Circuit of Final Study

GitHub - muhammeddincmdx/MedicalProjectContribute to muhammeddincmdx/MedicalProject development by creating an account on GitHub.