| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,6 +24,7 @@ option (BUILD_BLUETOOTH "BUILD_BLUETOOTH" OFF) | |||
| 24 | 24 | option (BUILD_BLE "BUILD_BLE" OFF) | |
| 25 | 25 | option (BUILD_ONNX "BUILD_ONNX" OFF) | |
| 26 | 26 | option (BUILD_TESTS "BUILD_TESTS" OFF) | |
| 27 | + option (BUILD_PERIPHERY "BUILD_PERIPHERY" OFF) | ||
| 27 | 28 | ||
| 28 | 29 | include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/macros.cmake) | |
| 29 | 30 | configure_msvc_runtime () | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,7 +114,8 @@ public enum BoardIds | |||
| 114 | 114 | FREEEEG128_BOARD = 52, | |
| 115 | 115 | AAVAA_V3_BOARD = 53, | |
| 116 | 116 | EXPLORE_PLUS_8_CHAN_BOARD = 54, | |
| 117 | - EXPLORE_PLUS_32_CHAN_BOARD = 55 | ||
| 117 | + EXPLORE_PLUS_32_CHAN_BOARD = 55, | ||
| 118 | + PIEEG_BOARD = 56 | ||
| 118 | 119 | }; | |
| 119 | 120 | ||
| 120 | 121 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1268,3 +1268,40 @@ Available :ref:`presets-label`: | |||
| 1268 | 1268 | - :code:`BrainFlowPresets.DEFAULT_PRESET`, it contains accelerometer, gyroscope and magnetometer data | |
| 1269 | 1269 | - :code:`BrainFlowPresets.AUXILIARY_PRESET`, it contains PPG data | |
| 1270 | 1270 | - :code:`BrainFlowPresets.ANCILLARY_PRESET`, it contains EDA and temperature data | |
| 1271 | + | ||
| 1272 | + PiEEG | ||
| 1273 | + ------ | ||
| 1274 | + | ||
| 1275 | + PiEEG Board | ||
| 1276 | + ~~~~~~~~~~~ | ||
| 1277 | + | ||
| 1278 | + PiEEG (Measure EEG with RaspberryPi) – Brain-computer interface (EEG, EMG, and ECG bio-signals) is an open-source Raspberry Pi shield that measures biosignals such as those used in electroencephalography (EEG), electromyography (EMG), and electrocardiography (ECG). It integrates seamlessly with BrainFlow's API, allowing for easy data streaming, processing, and analysis. | ||
| 1279 | + | ||
| 1280 | + .. image:: https://live.staticflickr.com/65535/53823500137_3bf2e27dbf_z.jpg | ||
| 1281 | + :width: 640px | ||
| 1282 | + :height: 384px | ||
| 1283 | + | ||
| 1284 | + `PiEEG Website <https://pieeg.com/>`_ | ||
| 1285 | + | ||
| 1286 | + To create such a board, you need to specify the following board ID and fields of the BrainFlowInputParams object: | ||
| 1287 | + | ||
| 1288 | + - :code:`BoardIds.PIEEG_BOARD` | ||
| 1289 | + - :code:`serial_port`(optional), e.g., COM3, /dev/spidev0.0, etc. | ||
| 1290 | + | ||
| 1291 | + Initialization Example: | ||
| 1292 | + | ||
| 1293 | + .. code-block:: python | ||
| 1294 | + from brainflow.board_shim import BoardShim, BrainFlowInputParams, BoardIds | ||
| 1295 | + params = BrainFlowInputParams() | ||
| 1296 | + params.serial_port = "/dev/spidev0.0" | ||
| 1297 | + board = BoardShim(BoardIds.PIEEG_BOARD, params) | ||
| 1298 | + board.prepare_session() | ||
| 1299 | + board.start_stream() | ||
| 1300 | + | ||
| 1301 | + Supported platforms: | ||
| 1302 | + | ||
| 1303 | + - Raspberry Pi | ||
| 1304 | + | ||
| 1305 | + **Note**: Ensure that you have the necessary permissions to access the serial port on your operating system. For Unix-like systems, you may need to configure permissions for the serial port or run with sudo. | ||
| 1306 | + | ||
| 1307 | + **To use this board you need to compile BrainFlow from the source code right on your Raspbery Pi device with flag --build-periphery(build.py) or with -DBUILD_PERIPHERY=ON(CMake) and install desired bindings using local libraries.** | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,7 +64,8 @@ public enum BoardIds | |||
| 64 | 64 | FREEEEG128_BOARD (52), | |
| 65 | 65 | AAVAA_V3_BOARD(53), | |
| 66 | 66 | EXPLORE_PLUS_8_CHAN_BOARD(54), | |
| 67 | - EXPLORE_PLUS_32_CHAN_BOARD(55); | ||
| 67 | + EXPLORE_PLUS_32_CHAN_BOARD(55), | ||
| 68 | + PIEEG_BOARD(56); | ||
| 68 | 69 | ||
| 69 | 70 | private final int board_id; | |
| 70 | 71 | private static final Map<Integer, BoardIds> bi_map = new HashMap<Integer, BoardIds> (); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,6 +60,7 @@ export BrainFlowInputParams | |||
| 60 | 60 | AAVAA_V3_BOARD = 53 | |
| 61 | 61 | EXPLORE_PLUS_8_CHAN_BOARD = 54 | |
| 62 | 62 | EXPLORE_PLUS_32_CHAN_BOARD = 55 | |
| 63 | + PIEEG_BOARD = 56 | ||
| 63 | 64 | ||
| 64 | 65 | end | |
| 65 | 66 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,5 +58,6 @@ | |||
| 58 | 58 | AAVAA_V3_BOARD(53) | |
| 59 | 59 | EXPLORE_PLUS_8_CHAN_BOARD(54) | |
| 60 | 60 | EXPLORE_PLUS_32_CHAN_BOARD(55) | |
| 61 | + PIEEG_BOARD(56) | ||
| 61 | 62 | end | |
| 62 | 63 | end | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -67,7 +67,8 @@ export enum BoardIds { | |||
| 67 | 67 | NTL_WIFI_BOARD = 50, | |
| 68 | 68 | ANT_NEURO_EE_511_BOARD = 51, | |
| 69 | 69 | EXPLORE_PLUS_8_CHAN_BOARD = 54, | |
| 70 | - EXPLORE_PLUS_32_CHAN_BOARD = 55 | ||
| 70 | + EXPLORE_PLUS_32_CHAN_BOARD = 55, | ||
| 71 | + PIEEG_BOARD = 56 | ||
| 71 | 72 | } | |
| 72 | 73 | ||
| 73 | 74 | export enum IpProtocolTypes { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,6 +73,7 @@ class BoardIds(enum.IntEnum): | |||
| 73 | 73 | AAVAA_V3_BOARD = 53 #: | |
| 74 | 74 | EXPLORE_PLUS_8_CHAN_BOARD = 54 #: | |
| 75 | 75 | EXPLORE_PLUS_32_CHAN_BOARD = 55 #: | |
| 76 | + PIEEG_BOARD = 56 #: | ||
| 76 | 77 | ||
| 77 | 78 | ||
| 78 | 79 | class IpProtocolTypes(enum.IntEnum): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,6 +49,7 @@ | |||
| 49 | 49 | #include "muse_bled.h" | |
| 50 | 50 | #include "notion_osc.h" | |
| 51 | 51 | #include "ntl_wifi.h" | |
| 52 | + #include "pieeg_board.h" | ||
| 52 | 53 | #include "playback_file_board.h" | |
| 53 | 54 | #include "streaming_board.h" | |
| 54 | 55 | #include "synthetic_board.h" | |
@@ -277,6 +278,9 @@ int prepare_session (int board_id, const char *json_brainflow_input_params) | |||
| 277 | 278 | case BoardIds::EXPLORE_PLUS_32_CHAN_BOARD: | |
| 278 | 279 | board = std::shared_ptr<Board> (new Explore (board_id, params)); | |
| 279 | 280 | break; | |
| 281 | + case BoardIds::PIEEG_BOARD: | ||
| 282 | + board = std::shared_ptr<Board> (new PIEEGBoard (board_id, params)); | ||
| 283 | + break; | ||
| 280 | 284 | default: | |
| 281 | 285 | return (int)BrainFlowExitCodes::UNSUPPORTED_BOARD_ERROR; | |
| 282 | 286 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -71,7 +71,10 @@ BrainFlowBoards::BrainFlowBoards() | |||
| 71 | 71 | {"50", json::object()}, | |
| 72 | 72 | {"51", json::object()}, | |
| 73 | 73 | {"52", json::object()}, | |
| 74 | - {"53", json::object()} | ||
| 74 | + {"53", json::object()}, | ||
| 75 | + {"54", json::object()}, | ||
| 76 | + {"55", json::object()}, | ||
| 77 | + {"56", json::object()} | ||
| 75 | 78 | } | |
| 76 | 79 | }}; | |
| 77 | 80 | ||
@@ -1082,6 +1085,16 @@ BrainFlowBoards::BrainFlowBoards() | |||
| 1082 | 1085 | {"battery_channel", 2}, | |
| 1083 | 1086 | {"other_channels", {3}} | |
| 1084 | 1087 | }; | |
| 1088 | + brainflow_boards_json["boards"]["56"]["default"] = { | ||
| 1089 | + {"name", "PIEEG"}, | ||
| 1090 | + {"sampling_rate", 250}, | ||
| 1091 | + {"package_num_channel", 0}, | ||
| 1092 | + {"timestamp_channel", 9}, | ||
| 1093 | + {"marker_channel", 10}, | ||
| 1094 | + {"num_rows", 11}, | ||
| 1095 | + {"eeg_channels", {1, 2, 3, 4, 5, 6, 7, 8}}, | ||
| 1096 | + {"eeg_names", "Fp1,Fp2,C3,C4,P7,P8,O1,O2"} | ||
| 1097 | + }; | ||
| 1085 | 1098 | } | |
| 1086 | 1099 | ||
| 1087 | 1100 | BrainFlowBoards boards_struct; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments