Giter Site home page Giter Site logo

zaeburn / eeg-101 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neurotechx/eeg-101

1.0 2.0 0.0 63.02 MB

Interactive neuroscience tutorial app using Muse and React Native to teach EEG and BCI basics.

License: ISC License

JavaScript 68.03% Python 3.00% Java 28.11% Objective-C 0.86%

eeg-101's Introduction

banner

An Interactive EEG tutorial that teaches EEG and BCI basics.

Overview

  • Teaches the basics of EEG, including where signals come from, how devices work, and how to process data
  • Contains a general purpose binary classifier for EEG data
  • Streams data from the Muse with the LibMuse Java API
  • Built with React Native for Android
  • Completely free, open-source, and available for use/adaption in any project

Find EEG 101 on the Android Play Store!

Video Walkthrough

https://www.youtube.com/watch?v=GunGP1yrqM8&feature=youtu.be

Lesson Content

  • Neurophysiology of EEG
  • EEG hardware
  • Filtering
  • Epoching
  • Artefact Removal
  • The Fourier Transform
  • The Power Spectral Density Curve
  • Brain waves
  • Brain-Computer Interfaces
  • Machine Learning

Currently In Development

  • iOS version
  • UI/UX Tweaks
  • Advanced lesson content, including event-related potentials

How it works

screens

Our goal with EEG 101 was to create a flexible base for EEG and BCI mobile development that novice programmers can build on top of for multiple platforms with different EEG devices. To satisfy those concerns, we've built the app in React Native, which allows for fast, straight-forward front-end development and the potential to port to iOS, Web, or Desktop (Electron) in the future.

Currently, EEG 101 is split right down the middle between Java and React. If you're interested in how we connect to the Muse, process EEG data, and plot the results in real time, check out the graph and signal classes in the android source folders. Our implementations are all (for the most part) typical Android components written in Java.

If you'd like to use EEG 101 as a base for your own app in React Native, take a look at how we've written the tutorial in the src folder. Connecting to a Muse and plotting real-time EEG data is as simple as using one of the Native components we have already prepared.

Setup

  1. Install and setup React Native. Note: EEG 101 uses lots of native code, so create-react-native-app and Expo are not an option. Follow the instructions for "Building Apps with Native Code." You may also need to install the JDK, Node, Watchman, and the Gradle Daemon as well
  2. Install yarn
  3. Clone this repo git clone https://github.com/NeuroTechX/eeg-101.git
  4. Download the LibMuse SDK from Muse's developer website. We've already taken care of integrating the sdk library into the app, so just make sure you end place libmuse_android.so in <clonedRepoName>/EEG101/android/app/libs/armeabi-v7a/ and libmuse_android.jar in <clonedRepoName/EEG101/android/app/libs/
  5. run yarn install in the EEG101 folder
  6. Connect an Android device with USB debug mode enabled. Because the LibMuse library depends on an ARM architecture, EEG 101 will not build in an emulator
  7. Run react-native start to start React packager
  8. In new terminal, run adb reverse tcp:8081 tcp:8081 to ensure debug server is connected to your device and then react-native run-android to install EEG 101

Common setup problems

  1. Gradle build error: Attribute "title" has already been defined
  1. INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.eeg_project signatures do not match the previously installed version; ignoring!
  • Solution: Uninstall any pre-existing versions of the app on your device
  1. Could not connect to development server
  • Solution: Make sure that the device is connected, run adb reverse tcp:8081 tcp:8081, and restart the React packager (react-native-start)
  1. Could not get BatchedBridge
  • Solution: Run adb reverse tcp:8081 tcp:8081 again and reload
  1. Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'

eeg-101's People

Contributors

jdpigeon avatar hubertjb avatar rcassani avatar braintrain3000 avatar kowalej avatar twuilliam avatar dennlinger avatar nicproulx avatar

Stargazers

Hadj H. avatar

Watchers

James Cloos avatar Zaeburn Mercer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.