Firmware Libraries for the OpenBCI Ganglion Board
openbci / openbci_ganglion_library Goto Github PK
View Code? Open in Web Editor NEWFirmware Libraries for the OpenBCI Ganglion Board
License: MIT License
Firmware Libraries for the OpenBCI Ganglion Board
License: MIT License
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)
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?
/
now sets the board mode, where:
0
1
2
3
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.
Original issue:
Considering Cyton as reference:
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 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.
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.
The BLE software revision string advertised by the device should be "3.0.1" but instead advertises as "3.0.0". The version string is set in the makeUniqueId
method, but this value is not correctly reported.
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.
- It does not happen with synthetic data ("[" command)
- It does not happen directly after reboot (power cycle).
Problem: Sending messages too fast one after the other can lead to earlier messages never being picked up. See openbci-archive/OpenBCI_NodeJS_Ganglion#27
If a delay is introduced it seems to work https://github.com/OpenBCI/OpenBCI_NodeJS_Ganglion/tree/development
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.