Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating pyautogui for versatile biofeedback control interfaces #6

Open
GeorgeFejer91 opened this issue Oct 26, 2023 · 1 comment

Comments

@GeorgeFejer91
Copy link

Hi all,
Another project I am working on is the creation of bioresponsive gameinterfaces, where I use the R-R intervals of heartbeats as a game controller. With the help of pyautogui (https://github.com/asweigart/pyautogui), whenever the heartbeat reaches a certain threshold, it initiates a keyboard event such as a button press. I find this solution quite practical, as it allows seamless integration with any type of PC game that is running in the background. The main issue I have is the latency, as there is often a 500 ms latency already, due to the streaming lag of my ECG device (Polar H10). But with the help of goofi-pipe, it may be possible to predict the occurrence of the next R interval and overcome this latency.

So my question (or request) is how difficult it would be to add a pyautogui module, which can initiate some keyboard event (Y) whenever some threshold value (X) is reached?

@PhilippThoelke
Copy link
Owner

This shouldn't be very complicated to add. It might be useful to implement this in two different modes:

  1. button press when the threshold on an input signal is surpassed
  2. button press whenever a previous node sends some data to the pyautogui node

Feel free to open a pull request if you want to have a go at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants