Summary

  • Add support for EmotiBit devices - #579
  • Fixes for Ganglion Native board for MacOS - #581

EmotiBit

In this release we’ve added initial support for EmotiBit. We are going to improve it further and as of right now not all EmotiBit sensors are integrated into BrainFlow. So, there may be minor changes in returned data format in the future.

Currently EmotiBit devices have three BrainFlow presets with following data types:

  • BrainFlowPresets.DEFAULT_PRESET, it contains accelerometer, gyroscope and magnetometer data
  • BrainFlowPresets.AUXILIARY_PRESET, it contains PPG data
  • BrainFlowPresets.ANCILLARY_PRESET, it contains EDA and temperature data

Example:

import time

from brainflow.board_shim import BoardShim, BrainFlowInputParams, BoardIds, BrainFlowPresets
from brainflow.data_filter import DataFilter


def main():
    BoardShim.enable_dev_board_logger()

    params = BrainFlowInputParams()
    board_id = BoardIds.EMOTIBIT_BOARD.value

    presets = BoardShim.get_board_presets(board_id)
    print (presets)
    
    board = BoardShim(board_id, params)
    board.prepare_session()
    board.start_stream()
    time.sleep(10)
    data_default = board.get_board_data(preset=BrainFlowPresets.DEFAULT_PRESET)
    data_aux = board.get_board_data(preset=BrainFlowPresets.AUXILIARY_PRESET)
    data_anc = board.get_board_data(preset=BrainFlowPresets.ANCILLARY_PRESET)
    board.stop_stream()
    board.release_session()
    DataFilter.write_file(data_default, 'default.csv', 'w')
    DataFilter.write_file(data_aux, 'aux.csv', 'w')
    DataFilter.write_file(data_anc, 'anc.csv', 'w')


if __name__ == "__main__":
    main()