Electromyography Spacecraft

by JesúsL80 in Circuits > Arduino

593 Views, 2 Favorites, 0 Comments

Electromyography Spacecraft

IMG-20190206-WA0022.jpg

Hello everybody and welcome to our project!

First of all, we would like to introduce ourselves. We are a group of three students of ‘Creative Electronics’, a BEng Electronic Engineering 4th year module at the University of Malaga, School of Telecommunication (https://www.uma.es/etsi-de-telecomunicacion/).

The aim of this project is to demystify and demonstrate friendly uses of medical instruments, such as electrodes, by developing a videogame using these electrodes as sensors. The electrodes read the electrical activity of muscles, that is called electromyography (EMG). We treat that signal and use it to control the movement of the spaceship in our videogame. The electrodes are connected to both forearms, and we are able to register 3 types of movements. Holding tight something soft with our left or right hand will produce a movement of the spaceship to the left or right. The third type of movement is registered by holding tight both hands at the same time, and it will shoot the laser beam of our spaceship. Down below we will show you how to do that movement with your hands in video.

Let's get started!

Buying the Essentials

IMG_20190207_174933.jpg
Captura.PNG
IMG_20190115_171337.jpg
u_10142515.jpg
utp_pairs.jpg
índice.jpg
999127057-1.jpg
electrodos_5_1024x1024.jpg
madera_manualidades_caja_rectangular_cierre_cromado.jpg
nut.jpg
312iuCzoLkL._AC_US200_.jpg

Here is the list of the required components to make this project:

  • Arduino SAV-Maker, we reproduced this development board for this subject, so we decided to use it! Here is the link to the github: https://github.com/fmalpartida/SAV-MAKER-I
  • 2 x OLIMEX Arduino Shield for EMG/EKG.
  • Bluetooth Module HC-05.
  • A powerbank that fits in the wooden box and a USB cable to power up the Arduino.
  • 1 meter of wire with at least 3 threads inside.
  • 6x banana male connectors.
  • 2x 3.5mm jack male connectors.
  • 6x TENS electrodes.
  • A wooden box.
  • 4x bolts and nuts.
  • 2x iron plates, to keep all the components in the box tight.

Solder the Wire to the Jack and Banana Connectors

d62c75635c3678d3d7d9c27702e1a10e.jpg
IMG-20181223-WA0043.jpg
IMG-20181223-WA0038.jpg
IMG-20181223-WA0041.jpg

The OLIMEX shields have a female 3.5mm jack connector, therefore, it is required a wire with a male 3.5mm jack connector on one side of the wire, and 3 male banana connectors on the other side. These banana connectors will be connected to the electrodes. Each thread of the wire will be soldered as you can see in the diagram above. The white banana is the "ground electrode" or reference electrode, which will be sticked on our elbow. The two other banana connectors are the electrodes that read the electric activity of the forearm muscle. You need two wires in order to connect the shields to each forearm.

Connect Everything

IMG_20190208_173745.jpg
maxresdefault.jpg

As you can see in the image, the connections are very simple, thanks to the shields, which are placed on top of the Arduino. We also have to connect the bluetooth module, using the pins shown in the diagram. Connect the wires to the shields and the electrodes, and we are done with the hardware!

Coding

Here is the link to the github repository containing the videogame, coded in Processing, and the Arduino code.

The fully functional videogame is in the folder named Processing/EMG_Demo_Game

https://github.com/Mickyleitor/EMG_Demo_Game

Final Assembly

IMG_20190124_134612.jpg
IMG_20190208_173320.jpg
IMG_20190124_134657.jpg

Prepare the wooden box to introduce all the components, making a few holes for the bolts and wires. Try your plates and bolts, and if the components are loose, add a little piece of polystyrene like we did, to make sure that all the components are tight. This step is completely up to you, if you have a 3D printer available, you can print your own box!

Play!

Demo Electromyography Spacecraft

At first, you will need a few minutes to adapt, because the movement is a bit tricky, but once you get used to it, you will control it nicely. The video attached shows an early version of the videogame, because there are no objectives to shoot, you have to download the github version to try the final game!

Thanks for visiting our project and have fun making it!