Skip to content

ibehave-ibots/ECG-Video-Game

 
 

Repository files navigation

Game Demo

Game Demo

  • Two-player game
  • Player 1
    • Stick electrodes in the following locations
      • left arm (less muscular area)
      • right arm (less muscular area)
      • right leg near the shin
    • Set threshold on the Filtered Heartbeat Signal by manually dragging the horizontal line. A heart shows up on the game window.
  • Player 2
    • Collect hearts in the game by jumping (spacebar) to get points!

Heart Signal Acquisition

Setup and Installation

Shopping List:

ECG Data Acquisition GUI

Calliope and ECG Board

calliope editor

  1. Connect calliope mini v3 device from the Calliope Editor.
  2. Copy and paste the code from calliope_code.py to the editor and upload the code to the device.
  3. Connect ECG board to calliope device at A1 RX pin

ECG Stream

ecg monitor

(Note: Currently, the gui has only been tested on windows, but should work on other platforms as well.)

  1. Install Pixi: winget install --id=prefix-dev.pixi
  2. Set the CALLIOPE_PORT value in the plot_ecg.py file to match your device's location.
  3. Run the App (will auto-install any dependencies): pixi run ecg
  4. Use the scroll button on the mouse to zoom in and out, and drag the white threshold line in "Filtered Heartbeat Signal" to just below the maximum point where a heartbeat signal happens! You'll know it's working from the terminal: "Heartbead detected" will be printed each time the filtered signal goes above the threshold line.

iBOTS Heart Jump Game

alt text

(Note: Currently, the game has only been tested on windows, but should work on other platforms as well.)

  1. Install Pixi: winget install --id=prefix-dev.pixi
  2. Run the App (will auto-install any dependenci)s: pixi run game

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%