Hand on Music

by HoPE in Circuits > Arduino

209 Views, 0 Favorites, 0 Comments

Hand on Music

Schermata 2021-09-06 alle 12.02.55.png

Our project, Hand on Music, is a music glove. It’s important to start defining our Music Glove as an innovative musical instrument. We wanted to create something able to produce music in a fun and magical way, to surprise and amaze everyone that would eventually interact with this project.

At the beginning of the project, our main purpose was to have fun while playing with music and to learn more about electronics and programming. Later, once we finished the last prototype, we thought about another goal we could reach: using our project for physical rehabilitation. Speaking with knowledgeable people, we ascertained our project could be used in the medical field regarding psychological rehabilitation, ergo we’re working to create something to reach this goal.

Hand on Music is a glove on which we applied one flex sensor per finger for a total of 5 sensors. These types of sensors measure the bending angle of our fingers producing a sound whenever we flex our finger more than a certain value that we are able to decide. The project is based on a simple circuit, the positive cable of each flex-sensor have to be connected directly to the Arduino 5V port while the negative must be conducted both to the pin corresponding to the sensor and to the ground. We decided to put the Arduino and breadboard on an armband so that the project can be easily worn and moved.

To build the structure we have taken into account some points that must be respected for the whole apparatus to work properly, namely:

  • The structure must be easily wearable;
  • The structure must be autonomous and not tied to non-portable instruments or that would limit its movement;
  • The cables that make up the structure must be fixed or tied between them in such a way as not to hinder movement;
  • The structure must be adjustable and adaptable from person to person.

Supplies

  • Work glove made of fabric
  • Needles, threads and patches
  • Cables (more or less thick) and Arduino connection cables
  • Armband
  • Speakers
  • Arduino and breadboard
  • Arduino music extension (music shield)
  • Insulating tape
  • Flex sensors
  • Resistors
  • Velcro strips

Testing the Sensors

Schermata 2021-09-03 alle 10.19.24.png
Schermata 2021-09-06 alle 11.46.30.png

Firstly, it is important to test the flex sensors.

Once their functioning has been ascertained it's necessary to test the circuit as well. Our instrument is based, as said in the introduction, on a simple circuit: the positive cable of each flex-sensor connected to the Arduino 5V port while the negative conducted both to the pin corresponding to the sensor and through a sensor to ground (Check the Tinkercad circuit and reply it on your board).

As for the program we have used a previously written code that can be used to control the musical extension (Musical Instrument Shield) that goes on the Arduino (https://dlnmh9ip6v2uc.cloudfront.net/assets/4/9/1/2/0/512276a2ce395f9712000000.zip).

The logic of the program is very simple: when the input signal, received by the Arduino board through the analog port, exceeds a set value the note-On function allows the production of the note. The notes to be used can be inserted in the note-Value array, while the chosen instrument can be associated with the instrument variable. (It is good to specify that the value of these variables must be integers. The note-number correspondence is easily acquired from the web).

We'll attach the Arduino file with our program.

Downloads

Soldering the Wires to the Flex Sensors

IMG_6911.JPG
IMG_5632.jpg
  • There is not a specific type of wires needed to be used
  • There have to be two wires per sensor (one soldered to the positive pin and one to the negative)
  • The length has to be decided based on where the Arduino is planned to be placed (wrist, forearm, upper arm)
  • To have fewer wires swinging around is advisable to twist the two wires of each sensor one with the other
  • It is necessary to put a little piece of insulating tape on the soldered parts so that they do not touch each other, protecting the connections
  • To make it even more still it's useful to put a little piece of tape on the ends to keep the two wires together

Making of the Actual Glove

IMG_6907.JPG
  • It can be used every type of glove as long as it's thick enough to sew on it
  • It is necessary to create on the back of each finger a sort of "hood" of cloth inside which the flex sensors will be positioned
  • Once assembled, everything must be fixed to the glove with needle and threads.

Connect the Glove to the Arduino

IMG_6906.JPG
IMG_6912.JPG
  • Since there are various wires, it is better to braid them so that they all converge tidily on the mini-breadboard
  • After that, the circuit has to be closed by connecting the mini-breadboard to the Arduino

Play Some Music!

Set the instrument you prefer as well as the notes you prefer and enjoy your brand new instrument!