Settings for Cyton + WIFI Shield + ThinkPulse with Brainflow
I am currently using the ThinkPulse sensors along with the Cyton board and WIFI shield. I'm encountering a situation where I need to adjust the hardware settings to PGA gain 8 or lower and Bias include to NO in order to resolve an issue with the railed situations.
For my Python code in the BrainFlow library, I'm using the command 'board.config_board('x1040010X')' to configure sensor 1 with gain 8 and Bias set to No. I would like to understand the meaning of these seven digits and how they affect the configuration.
Here is my primary Python code:
import argparse
import time
import pandas as pd
import numpy as np
from brainflow.board_shim import BoardShim, BrainFlowInputParams, BoardIds #BrainFlowPresets
def print_data(sample):
print(sample)
BoardShim.enable_dev_board_logger()
params = BrainFlowInputParams()
params.ip_port = 12345
params.ip_address = '192.168.4.1'
board = BoardShim(BoardIds.CYTON_WIFI_BOARD.value, params)
board.prepare_session()
#
board.config_board('x1040010X')
board.config_board('x2040010X')
board.config_board('x3040010X')
board.config_board('x4040010X')
board.config_board('x5040010X')
board.config_board('x6040010X')
board.config_board("x7040010X")
board.config_board("x8040010X")
board.start_stream()
time.sleep(30)
data=board.get_board_data()
board.stop_stream()
board.release_session()
print(data)
Could you please confirm if this configuration is correct or suggest an alternative solution?
Thank you
Comments
Hi Kaveh,
The Cyton SDK page describes the command strings available:
https://docs.openbci.com/Cyton/CytonSDK/#channel-setting-commands
William
Thank you for your reply. For the test, I've checked it with power_down, changing the second number to one and it is working