Note: This requires previous knowledge of how to solder and an idea of how to program AVR's is a big plus. With that in mind, have fun, be patient and post pictures of your product below!
Here's a video:
And here's a picture of mine:
Step 1: Parts
x1 40-pin DIP socket (www.digikey.com)
x1 8x8 LED Array (www.sparkfun.com)
x1 74138 De-multiplexer (www.digikey.com)
x2 Flex Sensors (www.sparkfun.com)
x(Many) Resistors 180 ohm and 10k ohm
x2 PC Board (www.sparkfun.com)
x6 Standoffs (www.sparkfun.com) and screws to fit (Local Hardware Store)
x1 Accelerometer on breakout board (www.sparkfun.com)
x2 Headers - Male (www.sparkfun.com), Female (www.sparkfun.com), and Right Angle (www.sparkfun.com)
x1 LM7805 (www.digikey.com)
x2 8 pin sockets (I got mine at Radio Shack)
x1 9v battery
x1 foot stick-on velcro
x1 Full-fingered bike glove
x1 spool polyester thread
x1 Programmer (I have this one)
x1 Wire stripper and clip
Some of the parts:
Step 2: Prepare the Boards
Step 3: Add the Resistors
Step 4: Wire the Top
Step 5: Populate the Bottom
Step 6: Wire the Bottom
Step 7: Flex Sensors and the Accelerometer
Dec 26, 2009: I have found that the way I mounted the index finger flex sensor caused the material connecting the sensor with the pins to degrade. I have since bought a replacement sensor and hot glued a piece of thin plastic to the sensor to prevent this area being the part doing most of the bending. I have tagged the location in the below photo.
Step 8: Adding IC's and the First Program
Here is a video of the code in action...
...and here's the code:
#define F_CPU 800000UL
ADMUX = 0b01100000;
ADCSRA = 0b10000000;
a = 0;
b = 0;
DDRD = 0xFF;
DDRB = 0xFF;
DDRA = 0b11100000;
ADMUX = 0b01100011;
ADCSRA |= 0b01000000;
PORTA = 0b00000000;
PORTD = ADCH;
PORTD = 0x00;
ADMUX = 0b01100010;
ADCSRA |= 0b01000000;
PORTA = 0b11100000;
PORTB = ADCH;
PORTB = 0x00;
Step 9: Attaching Your Circut to a Glove
I went to my local bike store and got the cheapest full-finger glove I could find. Full finger is necessary because otherwise you cannot attach the flex sensors very well. I then went by a fabric store and got some polyester thread and stick-on velcro. I put the glove on and placed the circuit on my hand. Part of positioning is comfort but another part is the flex sensors. They should be going down the middle of two fingers. I sewed loops around the three standoffs to hold the main board on (See picture #2) and then did loose loops 3/4 of the way down each flex sensor finger (#3 and 4). Make sure you don't sew your glove closed. Next I stuck a piece of velcro onto the side of my thumb to hold the battery. I have found after testing that it really pays off to sew this on too as the stick doesn't last for too long. Next I put a loop of velcro around the 9v (Picture 5). This setup seems to work pretty well. As you see in the pictures on the first and last slides, I have now added sleeves for the flex sensors but if you don't have the time, loops should do fine.
When you finish with your project please post photos of your finished product below. I'd love to see what you came up with to attach the circuit!
Step 10: The Real Code
Dec 26, 2009: NEW CODE! It's posted where the old code was. Many thanks to Jacob for the simplification. It really works well.
Here it is. Thanks for reading and don't forget to vote!
Special thanks to the Chamberlains, my parents and friends who helped.