Skip to content

ketan0/smart-glove

Repository files navigation

Smart Glove: a tactile counterpart to smartwatches.

./images/glove.jpg

The smart glove is designed to expand our conception of what it means to interact with computers, and our environment. Rather than having to pull out a device and actively type or tap on it, with the smart glove, we can activate features simply by clicking our fingers together. Watch this short demo to get a taste of what can be done with a smart glove.

This project received a hardware shoutout in the Interhackt design hackathon!

Materials

  • Fingerless Glove
  • Raspberry Pi Zero WH
  • Push buttons (like these)
  • Female-male jumper wires

Assembly

To assemble the glove, I first soldered the push buttons to the jumper wires (on the male end, removing the plastic casing.) Then, I fastened the buttons to the glove using the remaining two connectors to poke through the fabric, and placed electrical tape underneath. Finally, I plugged the jumper wires into the GPIO pins (for each button, one goes to an input pin, and one goes to ground,) and fastened the Raspberry Pi onto the glove using paperclips.

Setup

Clone the repository on your Pi, and install dependencies using Pipenv:

git clone https://github.com/ketan0/smart-glove.git
cd smart-glove/
pipenv install

In config.py, fill in the dictionary PINS_TO_FINGERS, which maps GPIO pins (refer to pinout.xyz) to fingers (numbered 0 - 4, from thumb to pinky finger.) To use the features for adding to a spotify playlist and sending messages to a certain person on messenger, fill in the SPOTIFY_PLAYLIST_ID and the MESSENGER_ID of the person you want to communicate with.

Also, create a file named .env in the root of the repository, and fill in the following variables (don’t commit this file to source control, as it contains sensitive info!):

# for your Spotify app
# see https://spotipy.readthedocs.io/en/2.17.1/
SPOTIPY_CLIENT_ID=""
SPOTIPY_CLIENT_SECRET=""
SPOTIPY_REDIRECT_URI=""

# your Facebook email/password (for Messenger features)
FB_EMAIL=""
FB_PASSWORD=""

# the IP of your Philips Hue Bridge
HUE_BRIDGE_IP=""

Usage

To start listening for button presses on the glove, run:

pipenv shell
python glove_control.py

The glove starts out in “select mode,” from which you can enter “spotify mode,” “hue mode,” and “messenger mode” by pressing the various buttons (see glove_control.py for details, and to modify this behavior.)

About

Smart glove, powered by Raspberry Pi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages