Giter Club home page Giter Club logo

enfocabrain's Introduction

EnfocaBrain

EnfocaBrain is a data collection system for electroencephalography (EEG) power spectrum, NeuroSky eSense (Attention and Meditation) with MindWave Mobile 2 and environmental data with CCS811 sensor.

Requirements

Installation

Clone the repo.

git clone https://github.com/jmainhard/enfocabrain.git

Make a virtual environment to install Adafruit CircuitPython and read data from Raspberry I2C.

python3 -m venv venv
source venv/bin/activate

Install packages from requirements.

pip install -r requirements.txt

Configure device token on .env. You can copy an example from .env.example

Also you can make sure that I2C is connected using i2cdetect

i2cdetect -y 1

This will display a grid of addresses with the addresses of all connected I2C devices. If your device is connected and powered on, you should see its address in this grid. If you don't see your device's address, this indicates that there is a problem with the connection, power, or address of the device.

Usage

To start enfocabrain automatically when the RP is booted write this to /etc/rc.local before exit 0 (replace the path with the actual one where you cloned the repo)

sleep 10
python3 /home/equipo1/enfocabrain/read_mindwave_mobile.py  > /home/equipo1/enfocabrain/mindwave.log 2>&1 &
/home/equipo1/enfocabrain/.venv/bin/python3 /home/equipo1/enfocabrain/main.py > /home/equipo1/enfocabrain/main.log 2>&1 &

Alternatively you can run the python scripts manually.

For reading from the mindwave mobile 2, first turn it on and then run:

python read_mindwave_mobile.py

For reading data from CCS811 start ccs811.py from the previosuly built virtual environment.

(venv) python cccs811.py

Contribute

Pull requests are accepted. For major changes, please open an issue first.

Please format your code with Python Black Formatter.

enfocabrain's People

Contributors

jmainhard avatar

Watchers

Kostas Georgiou avatar  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.