ici·bici

a brain-computer interface for under £20 that you can use with your phone, tablet, laptop...




Project Overview

Powered by NeuroTech X


ALERT: if your board has a blue screw terminal, the positive and negative battery terminals are reversed. Read the hardware instructions, below, carefully before use.

TL;DR: join the icibici Google Group to plug yourself in.

Motivation

In summer 2016, we met to build a low-cost brain-computer interface that you could plug into your phone. We want everyone interested in BCI technology to be able to try it out.

Two months later, we premiered the world's first £20 BCI at EMF camp as 'smartphone-BCI'.

As of summer 2017, we have:

We'd love to add your work to the list.

What we have

The v0.1 circuit reads a bipolar EEG signal and sends the signal out along an audio cable, for use in a smartphone, tablet, laptop, etc.

EEG signals are difficult to work with as they are very faint, and easily interfered with by other signals, including muscle movements and mains electricity - both of which are much more powerful. Also, the interesting frequencies range between 4Hz to 32Hz (depending on the intended use), but a smartphone sound card will filter out all signals below 20Hz.

Thus, the v0.1 circuit:

  1. amplifies the signals that comes from the electrodes, boosting them from the microvolt to the millivolt range;
  2. uses amplitude modulation to add a 1kHz carrier tone, allowing the signal to bypass the 20Hz high-pass filter behind the phone's audio jack.

For more details of the circuit, visit the hardware repo. The circuit design files are open source: please use them, and improve upon them.

The signal can be used by any software that accepts and uses signals from an audio port. We describe, below, two apps that are in development alongside the hardware. In both cases, frequency analysis is performed on the input signal, to extract the features of the original EEG signal. There is an example of an android app that does this whole process in the software repo .

The diagnostic Android app is under development and right now just offers:

The code needs to undergo some refactoring and implement some more cool functionality.

Ryan Lintott is working on a Unity-based SSVEP text-entry app that hopefully will work in all supported platforms (namely iOS, Android, Windows, OSX and Linux).


The Hardware

Kit v0.1

Each v0.1 kit should contain:

  • 1x PCB
  • 1x 9V battery
  • 1x croc clip (for SHLD)
  • 1x jumper wire (for SHLD)
  • 1x 1m 3.5mm male-to-male audio cable (to attach phone to PCB)
  • 3x electrodes (for A, B, COM)
  • 2x alcohol swabs (to clean skin, electrodes following use)
  • 1x resealable bag (to store Ten20 conductive gel)
  • 1x bathing cap (separately)
  • kitchen foil (separately; to SHLD electrodes)
Please check your kit before assembly/use‚Äč. You'll need a knife to cut the electrode ends and a small flat head screw driver to connect these cables ...

Assembly

  1. Check if your kit is complete :)
  2. Braid/twist the three electrodes to reduce independent interference. Leave 20cms at the electrode end to allow flexible placement.
  3. Prepare to attach the electrodes to the screw terminal
    • variant 1 (high quality connection): (gently) strip the ends of the electrode terminals (NOT the wires, nor at the cup end), exposing the gold contacts; OR
    • variant 2 (less antenna interference): cut the electrode wires short to mount the board (hot glue, etc.) directly to the cap
  4. Tightly wrap the braided part of the electrodes in tin foil to further reduce signal interference
  5. Attach the croc clip to the tin foil
  6. Attach the jumper wire to the croc clip and the SHLD terminal on the PCB
  7. Connect the electrodes to the screw terminal:
    1. A 1st electrode to scalp
    2. B 2nd electrode to scalp (order unimportant)
    3. COM ground to ear lobe or mastoid (if measuring from back) or middle of forehead (if from front)
  8. 3.5mm audio cable into the audio jack of both the PCB and the smartphone/tablet/device (n.b. the audio cable can be temperamental - you can check it with a regular audio signal)
  9. Connect the battery. If your board has a blue screw terminal, the positive and negative battery terminals are reversed. Do not use the board in this configuration. If your board is correctly configured, the terminal labeled "+" will have flanges. If the battery terminals are reversed, attach the battery to the terminals the wrong way around, using twist ties or coated wire.
  10. using the board
    1. do NOT use icibici while your phone is connected to the mains (i.e. charging)
    2. fill the electodes' cups with conductive gel. (Do not use the cups as scoops: they will snap.)
  11. cleaning up after use
    1. unplug the battery
    2. clean the electrodes for re-use (the conductive gel promotes corrosion)

Blue screw terminal board

Running the current in reverse through the boards (e.g. by attaching a battery directly to the battery terminals on a board with a blue screw terminal) should not harm the boards.

On 8 October 2017, we tested this by attaching an external signal generator to a positive and negative terminal separated by a saline solution in which the icibici electrodes were immersed: a functioning board should be able to read the signal crossing the saline solution. We first ran current backwards through the boards. We then re-inserted the battery the right way around and immersed the electrodes in the saline solution: they continued to correctly read the test signal.

In both early cases, the boards did not initially read the signals correctly. After we successfully read the signals on later boards that we had run in reverse, we re-tested the initial boards, and found that they did read the signals correctly. We have not sought to identify why our two initial tests were unsuccessful.

If you have questions about whether your board is functioning properly, attaching it to a signal generator like this is the cleanest test we have found so far.

Source files

  1. Gerber, Eagle, diptrace, .asc files and BOM are here. We've not put an open-source licence on this yet, but please treat it as such.

Known issues

  1. Xiao Mi Redmi Note: basic Android APK can either generate tone, or receive signal from board, but not both at once.

To do

  1. which variant for electrode preparation is better: hard, gold contacts, or shorter antenna wires?
  2. board design: would adding less than a 1 kHz carrier tone require less power, and distort the signal less? We don't think so: we think anything less than 650 Hz would be physiologically meaningful; a higher frequency carrier signal samples the neural signal more finely. (The Nyquist rate puts a lower bound on the sample rate.) You can experiment by changing the carrier signal in software.
  3. board design: can we simplify the circuit / make it less expensive?
  4. PCB design: generate XYRS files to ease future production.
Version 0.1

The Software


Android diagnostic APK

The basic Android diagnostic app is available for download here.

Sanity Check

After assembling the hardware, install the APK and connect the kit to do a sanity check:


Experiments

Placing the electrodes using the 10-20 system:


Experiments with the completed kit:


Unity text entry

v0.07 (8 Aug 2017)

  1. The larger the screen on your device, the better this works.
  2. Check out the github page for a complete description and Android download.
  3. To use the iOS version (available on Testflight) send an e-mail to Ryan Lintott at hello[at]abetterwaytodo[dot]com with an e-mail address, a first and last name.
  4. The app can also be run in the Unity emulator.

The Team


The team is composed by an amazing and heavily heterogeneous group of people that have voluntarily contributed in many different ways. This project would not have been possible without input and help from all the fellow travellers on this journey so far. In no particular order, many thanks to:

We've received more support anyone could hope for from NeuroTechX and their slack as well as the London Hackspace

This is a living project and we're still looking for people to contribute in whatever way they want to, please join the icibici Google Group.