- 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 Signalby manually dragging the horizontal line. A heart shows up on the game window.
- Stick electrodes in the following locations
- Player 2
- Collect hearts in the game by jumping (
spacebar) to get points!
- Collect hearts in the game by jumping (
Shopping List:
- Connect calliope mini v3 device from the Calliope Editor.
- Copy and paste the code from
calliope_code.pyto the editor and upload the code to the device. - Connect ECG board to calliope device at
A1 RXpin
(Note: Currently, the gui has only been tested on windows, but should work on other platforms as well.)
- Install Pixi:
winget install --id=prefix-dev.pixi - Set the
CALLIOPE_PORTvalue in theplot_ecg.pyfile to match your device's location. - Run the App (will auto-install any dependencies):
pixi run python plot_ecg.py - 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.
(Note: Currently, the game has only been tested on windows, but should work on other platforms as well.)
- Install Pixi:
winget install --id=prefix-dev.pixi - Run the App (will auto-install any dependenci)s:
pixi run python game.py



