Giter Club home page Giter Club logo

openbci_ganglion_library's Introduction

OpenBCI_Ganglion_Libraries

Firmware Libraries for the OpenBCI Ganglion Board

openbci_ganglion_library's People

Contributors

andreaortuno avatar biomurph avatar per1234 avatar philippitts avatar

Stargazers

 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

openbci_ganglion_library's Issues

LIS2DH config is not according to datasheet

OpenBCI_Ganglion_Library.cpp
Line 652: LIS2DH_write(CTRL_REG4, 0x08); // 0x10 = +/- 4G, 0x00 = +/- 2G axis data continuous update
I Think this is not correct .
According to datasheet 0x08 is not allowed
pls check ( comment in this line is correct)

read 4 channels values always 0

This code seems not working. I always get 0 readings for all 4 channels.

The read last 4 bits of STATUSCOM register is always 1111, which means 4 channels are not ready according to data sheet.

What am I missing?

ADD: Boarm mode changing

  • Change board types on the fly! No longer do you have to upload new code to the Cyton's Pic32 just to do an analog read. You can now read from analog or digital pins with the press send of a code! / now sets the board mode, where:
    • BOARD_MODE_DEFAULT is 0
    • BOARD_MODE_DEBUG is 1
    • BOARD_MODE_ANALOG is 2
    • BOARD_MODE_DIGITAL is 3

Improve OTA flashing experience

Flashing via OTA currently requires modifications to the Simblee Arduino package as described in the documentation. This process currently only works with MacOS although a solution for Windows has been documented by teknomage in this forum thread.

Update the Simblee Arduino package to include the required files for OTA deployments and update the included platform.txt so that it does not need to be modified by users.

error in compiling GanglionWithSD

I got the following error when compiling SD_Card_Stuff.ino from Arduino, using OBCI_Ganglion_SD.h from https://github.com/OpenBCI/OpenBCI_Ganglion_SD

/Volumes/Data/Documents/Arduino/libraries/OpenBCI_Ganglion_Library/examples/GanglionWithSD/SD_Card_Stuff.ino: In function 'boolean setupSDcard(char)':
SD_Card_Stuff:147: error: void value not ignored as it ought to be
   int numFiles = root.ls(0x00);
                              ^
exit status 1
void value not ignored as it ought to be

I have no problem of compiling DefaultGanglion.ino

Synthetic mode broken on v3 firmware

Synthetic mode appears to stream incorrect data as documented on the forum. This is likely because synthetic mode is still streaming packets formatted with the v2 packet strategy or the v3 packet implementation for synthetic mode is not correct.

Simblee board files for Arduino - bad links, missing from doc

Shirley quickly replied to this thread with a link to Google Drive with the zipped Arduino board files. But should this be in the repo, or somewhere official?

https://openbci.com/forum/index.php?p=/discussion/2028/simblee-board-files-for-arduino-missing

Dead link for Simblee Arduino download here,

http://docs.openbci.com/Hardware/09-Ganglion_Programming_Tutorial

Shirley's upload, (thanks!):

https://drive.google.com/open?id=1aZijlZ081pie5su9li1vdSes1nh_IMtv

I notice the zip is about 400 megabytes and expands to over 1.5 GB. Gulp. Is that including more than what is needed? Seems rather heavyweight compared to other Arduino IDE board files I've seen, which are only in the 10's of megabytes in size. This zip includes both PIC32 gcc, and Arm gcc plus all libs.

Streaming errors occur after reconnecting

As reported in the OpenBCI forum:

I am having problems with firmware 3.0.1 (and bled112). After some time (a minute or more) ganglion disconnects (and stops transmitting), the blue led stays on, and it is not possible to connect again without rebooting the board.

I observe it mostly with BioEra, but it happens also with OpenBCI_Gui. I downgraded to 3.0.0 and it happened too. Now I downgraded to 2.0.1 and I have not seen a problem for almost an hour running continuously. Looks like this firmware is good and the board is also good.

It only happens with real data and only when the software disconnected from the device previously.

  1. It does not happen with synthetic data ("[" command)
  2. It does not happen directly after reboot (power cycle).

Channel 4 produces noisy data

Channel 4 appears to produce noisy data. The data artifacts appear to be similar to those produced in the v2 version of the firmware, but this hasn't been confirmed experimentally. More information can be found in this forum post.

Channels 1-3 appear to function as expected.

Accelerometer does not continuously output data

LIS2DH_write(CTRL_REG4, 0x08); // 0x10 = +/- 4G, 0x00 = +/- 2G axis data continuous update
According to data sheet chapter 8.9 bit 4 should be zero. Hence 0x08 should not be allowed
behaviour is such that sometimes data output is stopped. when the device is shaked than it continues.
Behaviour looks like the device is going to sleep and wakes up again after being shaked. This would be defined in registers ACT_THS and ACT_DUR but I could not find those in the code to be set???
Observed with GUI 4.0.2

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.