GithubHelp home page GithubHelp logo

pi-eeg / eegwithraspberrypi Goto Github PK

View Code? Open in Web Editor NEW
856.0 43.0 87.0 34.94 MB

Open-Source board for converting RaspberryPI to Brain-computer interface

Python 69.22% C 26.02% C++ 4.62% Makefile 0.13%
pieeg eeg ads1299 bci bci-systems open-source ironbci biosignal texas-instruments eeg-signals-processing

eegwithraspberrypi's Introduction

Actual scripts will be here , now just only Python

Manual

Easy way to the neuroscience world with a shield for Raspberry Pi. Open-source.

To Buy - PiEEG is available in the market at our partner shop Elecrow

LinkedIn for updates (Not a medical device)

It is not a medical device!!! And cannot be used for any medical purposes!!!

This project is the result of several years of work on the development of BCI. We believe that the easiest way to get started with biosignals is to use a shield. We will try to reveal the process of reading EEG signals as fully and clearly as possible.

Warnings

Warning

You are fully responsible for your personal decision to purchase this device and, ultimately, for its safe use. PiEEG is not a medical device and has not been certified by any government regulatory agency for use with the human body. Use it at your own risk.

Caution

The device must operate only from a battery - 5 V. Complete isolation from the mains power is required.! The device MUST not be connected to any kind of mains power, via USB or otherwise.
Power supply - only battery 5V, please read the datasheet!!!!!

Tweet

alt tagโ€‹

How it Works

1.1.Read_data.c C script for reading data in real-time and saving to a txt file
1.2.Read_data.cpp C++ script for reading data in real-time and saving to a txt file
real_time.py GUI python script for reading data in real-time
robot_control.py script to control a robot by blinking

Connect the shield to Raspberry Pi 3 or Raspberry Pi 4 and after that connect the device to a battery (power supply) and connect electrodes. Full galvanic isolation from mains required.
This also applies to the monitor. Use only a monitor that is powered by the Raspberry Pi, as in the picture below, left. Electrodes positioned according to the International 10-20 system, right.
alt tagโ€‹

Device Pinout

Shield connected with Raspberry Pi only at the next points:
43 +5V
44 GND
37 MOSI
34 MISO
35 CLK
36 CS

Description of Code

Python script does not allow reading data from ADS1299 with a frequency of 250 Hz. It's necessary to use .c or .cpp scripts for reading data in real-time and Python for signal processing and visualization.

Video - Control Robot Toy by Blinking

Software demonstrations

For Beginners

During the measurement, in addition to artifacts caused by muscle activity, be concerned about the increased resistance between the body and the floor. For example, in the picture below, the moment when the feet touch the floor with and without an insulated shoe. Without insulated shoes - increased noise is noticeable.

Citation

I. Rakhmatuiln, M. Zhanikeev, and A. Parfenov, "Raspberry Pi Shield - for measure EEG (PIEEG)," 2021 5th International Conference on Electrical, Electronics, Communication, Computer Technologies and Optimization Techniques (ICEECCOT), 2021, pp. 410-413, DOI: 10.1109/ICEECCOT52851.2021.9707969 link

Rakhmatulin, I., Volkl, S. (2020). PIEEG: Turn a Raspberry Pi into a Brain-Computer Interface to measure biosignals. arXiv:2201.02228, https://arxiv.org/abs/2201.02228

Contacts

http://pieeg.com/

eegwithraspberrypi's People

Contributors

444b avatar bastivkl avatar ildaron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eegwithraspberrypi's Issues

ADS1299 connections to subject

Hi,

If you look carefully at the TI ADS1299 datasheet material, the 'Bias' electrode is the SAME as Ground in other EEG systems. This means that a SEPARATE ground connection to the subject is NOT required.

In fact if you ARE connecting the AGND or DGND to the subject, you are defeating the 1 gigaohm amplifier input impedance. Since the power supply ground connections are LOW impedance. And the ADS1299 channel pins, SRBx reference pin(s) and Bias are all high impedance connections, 1 gigaohm nominal. The higher the amplifier input impedance, the more immunity the amplifier has to skin impedance effects, and the lower the noise levels.

In some EEG applications, such as with electrode caps, it is common practice to place the Ground / Bias electrode on the midline, such as AFz, POz, CPz, etc. This applies the counter-mains injections evenly to both sides of the scalp.

However it is also common to see examples of Bias and Reference just being applied to opposite ear lobes. But in no cases should the Bias be applied OFF the head, such as to a hand (as shown in your original diagram). This is a poor location for anti-mains injection.


Additionally, it's highly recommended to BATTERY power your Raspberry PI, to eliminate any potential danger of mains voltages to find a path to the subjects head (by cheap power supply adapter malfunction). This could be done with an appropriate power bank. Or it is also possible to find medical grade wall power supplies. The medical certification number is 60601.

https://www.google.com/search?q=medical+5+volt+power+adapter+60601

William Croft

How to make this shield

Hello, ildaron, what software can I use to open .gbr files, I tried Altium and CAM350, but I couldn't find the contents of BOM and centroid. Can you tell me how to make this shield? I look forward to your reply.

Missing LICENSE

I see you have no LICENSE file for this project. The default is copyright.

I would suggest releasing the code under the GPL-3.0-or-later or AGPL-3.0-or-later license so that others are encouraged to contribute changes back to your project.

Schematic removed

The schematic and related hardware were removed from the repository. Is this project now closed source?

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.