Gesture based MIDI glove

Summary of Gesture based MIDI glove


This article details the design and implementation of a gesture-based MIDI glove that controls a virtual synthesizer. Using an Inertial Measurement Unit (IMU), flex resistors, and a microcontroller, the device translates hand movements into musical notes, pitch changes, instrument swaps, and vibrato effects. The system connects to a computer via serial-to-USB conversion and utilizes "Hairless MIDI to Serial" software to interpret data.

Parts used in the Gesture Based MIDI Glove:

  • Atmel Mega 1284 microcontroller
  • LSM9DS0 Inertial Measurement Unit (IMU)
  • Two flex resistors
  • Voltage buffer circuit
  • Serial to USB converter
  • Hairless MIDI to Serial software
  • Virtual synthesizer application
  • Woolen glove casing
  • Peter Fleury I2C library
  • Sparkfun Arduino library for IMU

Introduction

Musical Instrument Digital Interface, or MIDI, is a standard that describes a protocol, digital interface and specific physical connections that allow electronic music devices and computers to communicate with each other. For our final project, we created a MIDI glove that is capable of connecting to a virtual synthesizer on our computer and controlling it. Additionally, we used a piece of software called “Hairless MIDI to Serial”, which aided in changing the serial data from the glove into a MIDI stream that we could output to the computer (which was our virtual synthesizer). The glove has the functionality to play a specific instrument while being able to change the pitch, change the instrument you are playing, change the key of the notes being played, and turn pitch bend on or off, causing vibrato. When your pointer finger is pressed one, the MIDI note is turned on and stays on as long as the finger is held down. The pitch of the note is changed by tilting your hand left or right about the X axis. To change instruments, you flick your hand to the right. To change keys, you flick your hand up or down. When your middle finger is held down, wiggling your hand about the X axis causes vibrato in the note.

High Level Design

Rationale and Source of Our Project Idea

We chose to do this project as both my partner and I had an interest in music and have had experience to MIDI controllers in the past. It seemed like a realistic project that would have some cool outcomes when we were done. We thought it would be a perfect idea to combine the extracurricular interest with the academic course to make this really cool device! Inertial Measurement Units have come down in price and have become very viable for musical instruments. We have always wanted to work with accelerometers and gyroscopes and this was a great way to apply it to music.

Quick Solutions to Questions related to Gesture Based MIDI Glove:

  • How does the glove control the pitch of a note?
    The pitch is changed by tilting your hand left or right about the X axis while holding down the pointer finger.
  • Can you change instruments with this glove?
    Yes, flicking your hand to the right triggers an instrument change command.
  • Does the glove support vibrato effects?
    Yes, wiggling your hand about the Y axis while holding down both fingers causes vibrato.
  • What software converts the glove data to MIDI?
    The project uses Hairless MIDI to Serial software to convert serial data into a MIDI stream.
  • How are keys changed on the synthesizer?
    Flicking your hand up or down about the X axis increments or decrements the key of the music.
  • What threshold value was chosen for detecting flick gestures?
    A rotation rate threshold of 240 degrees per second was selected to distinguish intentional flicks from normal movement.
  • Why was a voltage buffer included in the circuit?
    A voltage buffer was needed because the accelerometer required a stable 3.3 V source capable of supplying current, not just a signal.
  • Is the device safe for direct skin contact?
    All electrical components are mounted on the outside of a woolen glove, ensuring no direct contact with the user.

About The Author

Author avatar

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Stay in the loop

New AVR projects, tutorials and schematics, every week.

Subscribe Browse projects

Scroll to Top