Software ADS1299 V2

edited August 2014 in Software
good morning everyone

I'm trying to compile the source code for ads1299 board version 2, however I have a problem, show me the following errors:

<strong>ADS1299Manager.cpp: 10: error: 'ADS1299Manager' has not been declared
ADS1299Manager.cpp: In function 'void initialize ()':
ADS1299Manager.cpp: 11: error: 'OPENBCI_V2' was not declared in this scope
ADS1299Manager.cpp: At global scope:
ADS1299Manager.cpp: 15: error: 'ADS1299Manager' has not been declared
ADS1299Manager.cpp: In function 'void initialize (int)':
ADS1299Manager.cpp: 17: error: 'setVersionOpenBCI' was not declared in this scope
ADS1299Manager.cpp: 18: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 18: error: 'PIN_DRDY' was not declared in this scope
ADS1299Manager.cpp: 18: error: 'PIN_RST' was not declared in this scope
ADS1299Manager.cpp: 18: error: 'PIN_CS' was not declared in this scope
ADS1299Manager.cpp: 18: error: 'SCK_MHZ' was not declared in this scope
ADS1299Manager.cpp: 19: error: 'delay' was not declared in this scope
ADS1299Manager.cpp: 21: error: 'verbose' was not declared in this scope
ADS1299Manager.cpp: 22: error: 'reset' was not declared in this scope
ADS1299Manager.cpp: 27: error: 'ADSTESTSIG_AMP_1X' was not declared in this scope
ADS1299Manager.cpp: 27: error: 'ADSTESTSIG_PULSE_FAST' was not declared in this scope
ADS1299Manager.cpp: 27: error: 'configureInternalTestSignal' was not declared in this scope
ADS1299Manager.cpp: At global scope:
ADS1299Manager.cpp: 31: error: 'ADS1299Manager' has not been declared
ADS1299Manager.cpp: In function 'void setVersionOpenBCI (int)':
ADS1299Manager.cpp: 33: error: 'OPENBCI_V1' was not declared in this scope
ADS1299Manager.cpp: 34: error: 'use_neg_inputs' was not declared in this scope
ADS1299Manager.cpp: 35: error: 'OPENBCI_NCHAN' was not declared in this scope
ADS1299Manager.cpp: 36: error: 'use_SRB2' was not declared in this scope
ADS1299Manager.cpp: 39: error: 'use_neg_inputs' was not declared in this scope
ADS1299Manager.cpp: 40: error: 'OPENBCI_NCHAN' was not declared in this scope
ADS1299Manager.cpp: 41: error: 'use_SRB2' was not declared in this scope
ADS1299Manager.cpp: At global scope:
ADS1299Manager.cpp: 48: error: 'ADS1299Manager' has not been declared
ADS1299Manager.cpp: In function 'void reset ()':
ADS1299Manager.cpp: 50: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 51: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 53: error: 'delay' was not declared in this scope
ADS1299Manager.cpp: 57: error: 'deactivateChannel' was not declared in this scope
ADS1299Manager.cpp: 60: error: 'use_SRB1' was not declared in this scope
ADS1299Manager.cpp: 60: error: 'setSRB1' was not declared in this scope
ADS1299Manager.cpp: At global scope:
ADS1299Manager.cpp: 68: error: 'ADS1299Manager' has not been declared
ADS1299Manager.cpp: In function 'void deactivateChannel (int)':
ADS1299Manager.cpp: 70: error: 'byte' was not declared in this scope
ADS1299Manager.cpp: 70: error: expected `; 'before 'reg'
ADS1299Manager.cpp: 76: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 76: error: 'delay' was not declared in this scope
ADS1299Manager.cpp: 79: error: 'constrain' was not declared in this scope
ADS1299Manager.cpp: 80: error: 'reg' was not declared in this scope
ADS1299Manager.cpp: 80: error: 'CH1SET' was not declared in this scope
ADS1299Manager.cpp: 80: error: expected `; 'before 'N'
ADS1299Manager.cpp: 81: error: 'config' was not declared in this scope
ADS1299Manager.cpp: 81: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 82: error: 'bitset' was not declared in this scope
ADS1299Manager.cpp: 83: error: 'use_neg_inputs' was not declared in this scope
ADS1299Manager.cpp: 83: error: 'bitClear' was not declared in this scope
ADS1299Manager.cpp: 84: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 87: error: 'BIAS_SENSP' was not declared in this scope
ADS1299Manager.cpp: 87: error: 'use_neg_inputs' was not declared in this scope
ADS1299Manager.cpp: 87: error: 'BIAS_SENSN' was not declared in this scope
ADS1299Manager.cpp: 88: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 89: error: 'bitClear' was not declared in this scope
ADS1299Manager.cpp: 90: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: At global scope:
ADS1299Manager.cpp: 99: error: 'ADS1299Manager' has not been declared
ADS1299Manager.cpp: 99: error: 'byte' has not been declared
ADS1299Manager.cpp: 99: error: 'byte' has not been declared
ADS1299Manager.cpp: In function 'void activateChannel (int, int, int)':
ADS1299Manager.cpp: 105: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 105: error: 'delay' was not declared in this scope
ADS1299Manager.cpp: 109: error: 'constrain' was not declared in this scope
ADS1299Manager.cpp: 110: error: 'byte' was not declared in this scope
ADS1299Manager.cpp: 110: error: expected `; 'before 'configByte'
ADS1299Manager.cpp: 112: error: 'configByte' was not declared in this scope
ADS1299Manager.cpp: 115: error: 'use_SRB2' was not declared in this scope
ADS1299Manager.cpp: 116: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 116: error: 'CH1SET' was not declared in this scope
ADS1299Manager.cpp: 120: error: expected `; 'before 'reg'
ADS1299Manager.cpp: 120: error: 'use_neg_inputs' was not declared in this scope
ADS1299Manager.cpp: 120: error: 'reg' was not declared in this scope
ADS1299Manager.cpp: 120: error: 'BIAS_SENSN' was not declared in this scope
ADS1299Manager.cpp: 121: error: expected `; 'before 'biasSettings'
ADS1299Manager.cpp: 122: error: 'biasSettings' was not declared in this scope
ADS1299Manager.cpp: 122: error: 'bitset' was not declared in this scope
ADS1299Manager.cpp: 123: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 123: error: 'reg' was not declared in this scope
ADS1299Manager.cpp: 130: error: 'use_SRB1' was not declared in this scope
ADS1299Manager.cpp: 130: error: 'setSRB1' was not declared in this scope
ADS1299Manager.cpp: 133: error: 'ADS1299' has not been declared
ADS1299Manager.cpp: 133: error: 'CONFIG3' was not declared in this scope
ADS1299Manager.cpp: At global scope:
ADS1299Manager.cpp: 136: error: 'ADS1299Manager' has not been declared
ADS1299Manager.cpp: 136: error: variable or field 'setSRB1' declared void
ADS1299Manager.cpp: 136: error: 'boolean' was not declared in this scope </strong>



someone could help me with this problem? is there any special way to compile this?

I thank you for your help.

Keep up the work.

cheers Miguel Sousa

Comments

  • Hi,

    To my eye, it looks like you're missing the header files (the *.h) files.  You also need to move all of the *.h and *.cpp files to the Arduino's Libraries directory.

    Specifically, you need to move "ADS1299.h", "ADS1299.cpp", "ADS1299Manager.h", and "ADS1299Manager.cpp" (and probably "Definitions.h" and "keywords.txt" as well).  For my Arduino installation, you'd need to move these files to:

    C:\Users\Generic\Documents\Arduino\libraries\

    Note that this info applies to the software that was made available for OpenBCI V1 and V2.  With the new V3 boards and V3 software, things might change.

    Hope this helps!

    Chip
  • Thank you for your help.
    I was putting in the wrong place files.

    I'm trying to make your v2 project, however I am using the Teensy 3.1 instead of the arduino. I wonder in terms of software which changes, because it is not responding me by serial monitor. I made some changes spi comunication but without success.
  • edited August 2014
    What were the changes you made to the SPI functions? If you're using the ADS1299 library from OpenBCI's Github be aware that it contains platform specific code and probably won't work with anything but the Due. However it's easy to convert it to use the Arduino SPI library, you just have to rewrite spiWrite and spiRead.

    On the Teensy 3.1 the maximum SCLK speed is a little over 3 MHz at 96 MHz main clock. That's not enough when you try to read back 9 x 24 bit at 16 kHz. You'll be limited to 8 kSPS at best, depending on your implementation. You can try my library, it has been tested with an ADS1298 and a Teensy 3.1, so it might just work for you. You can find it at https://github.com/ferdinandkeil/ADS129X.

    Ferdinand
  • biomurphbiomurph Brooklyn, NY
    the V2 code is specific to the Arduino UNO. Our spi implementation touches the low-level fuses for that peripheral.
    You will have to make some major changes to get it to work on the teensy
Sign In or Register to comment.