Skip to content

Commit

Permalink
edits2
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-oldfield committed Nov 24, 2024
1 parent ae6cc55 commit b71c91f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions _posts/2024-11-24-thomaseo-cosmic_clash.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ excerpt: "Cosmic Clash - exploring gamification of physiotherapy exercises using
### Introduction
Can a game be used to help patients do their physiotherapy exercises better? What would this game look like and how would it work? These are the questions that we have been working on answering this Autumn in a collaboration between IMV and IFI at UiO alongside an industrial partner - SiFi Labs.
<br>
<br>



Expand Down Expand Up @@ -46,8 +47,8 @@ Cosmic Clash! is the name of the game. It’s an arcade-style point-and-shoot ga
### Data Processing
<div style="display: flex; align-items: center;">
<div style="flex: 1; padding-right: 20px;">

**IMU**
<strong>IMU</strong>
<br>
An IMU is a sensor used to measure motion and orientation. The BioPoint IMU, in this instance, integrates a 3-axis accelerometer and a 3-axis gyroscope, which allow it to measure linear acceleration and angular velocity. The IMU data packets from the BioPoint include a quaternion — a four-component representation of the device's orientation in 3D space. The sampling rate of the IMU is 100Hz. Check the diagram for a reminder of Euler (rotational) angles.
</div>
<div style="flex: 1;">
Expand All @@ -71,9 +72,9 @@ The following equations are used to compute roll, pitch, and yaw from quaternion

<div style="display: flex; align-items: center;">
<div style="flex: 1; padding-right: 20px;">

**EMG**
EMG sensors detect the electrical activity produced by muscles during contraction, providing information about muscle activation levels, timing, and patterns. The EMG sensor in the Biopoint has a sample rate of 2 kHz. Similar to an audio waveform image, EMG data moves between positive and negative values - the further away from zero in either direction, the higher the signal level. To utilise this signal in our game, found the absolute value of a rolling average (across 8 samples in each data packet) and applied a threshold. When the signal goes over the threshold, a shoot command is sent.
<strong>EMG</strong>
<br>
EMG sensors detect the electrical activity produced by muscles during contraction, providing information about muscle activation levels, timing, and patterns. The EMG sensor in the Biopoint has a sample rate of 2 kHz. Similar to an audio waveform image, EMG data moves between positive and negative values - the further away from zero in either direction, the higher the signal level. To utilise this signal in our game, found the absolute value of a rolling average (across 8 samples in each data packet) and applied a threshold. When the signal goes over the threshold, a shoot command is sent.
</div>
<div style="flex: 1;">
<img src="/assets/image/2024_11_24_thomaseo_cosmic_clash_3.png" alt="Credit: SiFiLabs" width="400">
Expand All @@ -84,6 +85,7 @@ EMG sensors detect the electrical activity produced by muscles during contractio




### System Architecture
The game was developed using the node.js runtime. This environment allowed us to develop a browser-based game with the capability for two players to collaborate simultaneously. Currently, data is acquired and processed in python and passed to a node server using web sockets. In the project folder, java script files handle game mechanics and html files render objects in the browser.
<br>
Expand Down

0 comments on commit b71c91f

Please sign in to comment.