LSL - Polar H10

PolarBand2lsl

PolarBand2lsl

Send PolarBand H10 Data to an LSL stream.

Manual:

  1. Install Python:
    • If not installed, download and install Python.
  2. Open an Anaconda Prompt:
    • Open an Anaconda prompt and execute the following commands:
      pip install pylsl --user
      pip install bleak --user
      

      This installs pylsl for LSL support and bleak for Bluetooth Low Energy communication.

  3. Platform Compatibility:
    • This solution is expected to work on PC, MAC, and Linux since bleak is used for Bluetooth LE communication.
  4. Configure the Code:
    • Change to the directory with this code. Update the MAC address in the code to match the MAC address of your band.
  5. Run the Stream:
    • Execute the following command:
      python Polar2LSL
      

      This starts the LSL stream.

  6. Recording:
  7. Sample Script for Peak Detection:
    • A sample script for peak detection is provided, based on Matlab Documentation.
      • This script uses the xdf import module of LabStreamingLayer (https://github.com/xdf-modules/xdf-Matlab) and the ‘findpeaks’ function from the MATLAB Signal Processing Toolbox.

Screenshot 2021-02-25 115853

  1. GUI Version:
    • Additionally, I’ve developed a GUI version that wraps around the code using Kivy. This GUI offers several advantages, such as the ability to discover nearby POLAR bands. You can find the release for windows only.

Stolen from:

Pareeknikhil

2023

Back to top ↑

2022

Back to top ↑

2021

Back to top ↑

2020

Back to top ↑