Introduction: Mind Controlled Drone

1) Getting the parts and software

2) Solder the Bluetooth module to the mindflex and then put it in the case

3) Connect to the Module from your laptop

4) Use brainwave osc to read brainwaves

5) Open processing and import the proper libraries and then paste in this code

6) Open Ar-drone webflight and now the keyboard that is controlled by your mind controls the drone

More in depth Instructable

Another in depth instructable

Step 1: The Parts

  • HC-06 Bluetooth Serial Module
  • MindFlex EEG Headset
  • 3 AAA Batteries
  • Small Screwdriver
  • Soldering Iron
  • Computer with Bluetooth connectivity

Stuff to download

  • Download BrainWavesOSC

  • Node.js

  • Download Processing

  • Download ar-drone webfligt

Step 2: Solder the Bluetooth Module to the MindFlex Headset

    Here are some Informative Pictures on where to solder each part

    Step 3: Connect to the Bluetooth Module With Your Computer

    1. Find your Bluetooth module in your bluetooth settings and connect to it
    2. The password is "1234"

    Step 4: Using BrainWavesOSC to Read Your Mind Waves

    1. Unzip the BrainWaves folder and edit the settings.xml file to match your Bluetooth String
    2. Change it and save the file
    3. Make sure you're connected to the Bluetooth module and then run BrainWavesOSC and you'll start seeing your brain waves

    Windows Users: You have to find the COM Port that the Bluetooth module is connected to. It's probably COM11 or COM5. You can use the device manager to see what your ports are connected to.

    Mac Users: Type inls /dev/tty.* in your terminal. A list of serial devices will pop up. The one you want to copy should look like this /dev/HC-06-DevA.

    Step 5: Make a Processing Application That Will Interpret Those OSC Messages and Then Be Able to Stimulate Your Keyboard

    1. Open Processing and import the Osc5 Libraries
    2. Then paste in this code
    3. Edit the code so that when your meditation or attention levels are high the "t" key is pressed
    4. Edit the code so that when your meditation or attention levels are low the "l" key is pressed

    Step 6: Ar-drone Webflight

    Download ar-drone webflight

    1. Follow the instructions on the github project
    2. You will copy the config.js.sample to config.js and edit to select your plugins (You don't need ffmpeg because there's already a plug called video-stream that will stream live video from your drone, just make sure it's not commented out)

    Step 7: MIND CONTROL THE DRONE

    1. Connect to the drone's wifi
    2. Make sure you're connected to the bluetooth module
    3. Run "node app.js" in your terminal
    4. Point your browser to https://localhost:3000/ or https://localhost:3000/ (it depends on your computer type)
    5. Then run the processing app and go back to your browser
    6. The Processing app will be pressing the "t" key when your attention or meditation levels are high depending on how you edited the code. When "t" is pressed it will take off. When "l" is pressed it will land.