Intro: DIY Robotic Hand Controlled by a Glove and Arduino
This project idea came to me when I was sitting on a bed in a hotel room while on vacation. I thought: "It'd be really neat to have a robotic hand that I can control with my own hand!" Upon returning home, I embarked upon a journey to design and create the project. I hope you enjoy!
Update: First Prize winner in the Instructables 2013 Microcontroller Contest!
The basic components of the hand and glove are the hand itself, the servos, the Arduino, the glove, and the flex sensors. The glove is mounted with flex sensors: variable resistors that change their resistance value when bent. They're attached to one side of a voltage divider with resistors of a constant value on the other side. The Arduino reads the voltage change when the sensors are bent and triggers the servos to move a proportional amount. The servos pull strings that act as tendons, allowing the fingers to move. Here's a video of it in action (http://m.youtube.com/watch?v=qMtHEOxHDGo):
The hand itself comes from an open-source, 3D-printable download. It's part of a project called InMoov: http://inmoov.blogspot.com (http://www.inmoov.fr)
This guide will show you all the steps required to build your own robotic hand and control glove!
Step 1: Gather the Materials
In total, this project will cost about $100-150, depending on where you get the parts. Here is the materials list:
5x MG946R Servos (or equivalent - MG995 or MG996 should work too. I've had a bit of trouble with the range of motion, so servos that support a higher degree of rotation would be better) - I got mine from hobbyking.com, but for a less expensive option I'd go with eBay (they come directly from China, so shipping may take longer).
5x 4.5 inch flex sensors - I got mine here: http://microcontrollershop.com/product_info.php?products_id=3802
1x Arduino Uno or equivalent (they're also much cheaper on eBay)
5x 22k resistors
1x 6.0-7.2V battery (for the servos) - I used this: http://www.all-battery.com/Tenergy7.2V3000mAhRCCarNiMHBatteryPackwithCharger-91103.aspx
1x small breadboard
1x Standard Tamiya battery connector - something like this: http://www.batteryspace.com/Connector/Adaptor-Standard-Female-Tamiya-with-14-AWG-Silicon-wire.aspx
Breadboard jumpers/hookup wire
1x small blank PCB - I used something like this, only square (RadioShack has since removed the original product, but this should work as well): http://www.radioshack.com/radioshack-printed-circuit-board/2760170.html
1x glove (I used a right-hand glove - should be sturdy and fit well)
1x 8mm diameter 55mm length bolt
1x 8mm diameter 60mm length bolt
1x 8mm diameter 80mm length bolt
14x 3mm diameter about 20mm length screws
20x 4mm diameter screws (any length between 7mm and 30mm is fine)
Approx. 5 meters of string (should have a high-ish breaking strength) - I used this: http://www.amazon.com/gp/product/B004YWKPCS/ref=oh_details_o01_s00_i00?ie=UTF8&psc=1
Super glue (C.A. glue)
Sandpaper (I used ~220 grit) - a Dremel tool with a sanding head would also work
Needle and thread
A power drill
A soldering iron
Access to a 3D printer
...And you're ready to start!
Step 2: Print the Hand
The hand is part of an open-source project called InMoov. It's a 3D-printable robot, and this is just the hand and forearm assembly. From this page on Thingiverse (http://www.thingiverse.com/thing:17773), download and print the following parts:
*some of the parts seem to have been removed, so I've attached the files below.
And from this page (http://www.thingiverse.com/thing:65274):
RobRingV3.stl (note - I had to drill these a bit myself to get them to fit my servos)
(these two are covers for the forearm - they're not necessary for functionality)
In total, the parts take about 13-15 hours to print depending on the printing resolution you use. I used a MakerBot Replicator 2X - I'd recommend printing the finger parts in standard or high resolution to avoid unwanted friction. I also included rafts with all the parts, as they make the prints more consistent, especially when using ABS plastic.
Step 3: Making the Sensor Circuit
The flex sensors require a circuit in order for them to be compatible with Arduino. It's a voltage divider: the flex sensors are variable resistors, and when paired with resistors of a static value, a change in resistance (in this case bending the sensor) can be sensed through the change in voltage between the resistors. This can be measured by the Arduino through its analog inputs. The schematic is attached (red is positive voltage, black is negative, and blue goes to the Arduino). The resistors in the photo are 22K. I color-coded the physical wires in the same way as the schematic so you can see more easily.
The main GND (ground) wire, which is connected to all the individual GND wires from the sensors, gets plugged into the Arduino's GND. The +5V from the Arduino goes to the main positive voltage wire, and each blue wire gets plugged into a separate analog input pin.
I soldered the circuit onto a small PCB from RadioShack, one that could be easily mounted onto the glove. I was able to solder the wires to the sensors relatively easily also, and used heat shrink to make sure there were no shorts. I then wrapped the area where the wires are connected to the sensors with electrical tape to stabilize the sensors. Near the bottom, where the leads are attached, the sensors are a bit weaker and the tape ensures that they won't bend too far and won't get damaged.
Step 4: Sew the Glove
Now it's time to mount the sensors and their circuit onto the glove. First, drill a tiny hole in the plastic of the sensors (at the top, once the resistive material has ended). Be sure not to hit the resistive material! Then, put on the glove and pull it tightly to your hand. On each finger, with a pencil or pen, make small lines over the tops of each joint/knuckle. This will tell you where to sew the sensors. Sew each sensor tip to the area of each finger just above your fingernails (use the hole you just drilled). Then, loop the thread around each sensor above both joints in each finger. Once each sensor is in place and slides under the loops of thread nicely, sew the PCB onto the wrist part of the glove tightly.
REMEMBER: for each step in this process, be sure you're not sewing the fingers of the glove closed. That's quite a hassle.
Step 5: Assemble the Hand
I'm not going to go into detail about this step, as it is explained very thoroughly on the InMoov website (under the sections "Assembly Sketches" and "Assembly Help"):
When assembling the fingers, make sure the parts are oriented correctly before gluing. Also, make sure to re-drill the holes on the finger parts so the 3mm screws will act as hinge pins without causing friction. I kept the screws in with a dab of hot glue on the outside of the fingers. There's probably a more elegant way to do this, but for a functional solution hot glue is fine.
Wait before you install the strings into the hand; you want to make sure the servos are working first.
Step 6: Test the Servos
At this point, the servos should already be mounted into the forearm (see the Assembly Sketches link from previous step). To connect them to the power supply and Arduino, I used a small solderless breadboard. Connect each positive wire of the servo (usually red) to one of the rails on the breadboard, and the negative wire (usually black or brown) to another rail. IMPORTANT: remember to connect the negative rail on the breadboard to the Arduino's other GND: all the GNDs in a circuit need to be connected for it to work.
Upload the program to the Arduino (the text file is attached - "Hand.rtf") and make sure all the connections to the glove and servos are correct. Put on the glove and turn on the Arduino. The servos should rotate based on how much your fingers are bent. If this is the case, it's working! If you're more experienced with Arduino and know how to test the input values of your particular sensors, you can adjust the range in the program so it works best for you. I assume all the sensors are practically identical, but if they aren't, this might help.
If the servos aren't working properly, make sure all the connections are correct (when I was making this, I originally forgot to connect the GND of the Arduino to the GND of the battery and all the servos, which caused problems. Fixing this allowed it to work). Make sure to get this working before you move on!
If you're still experiencing problems, check the comments section of this article for previously-asked questions, as I've answered many already. If that doesn't help, message me directly on Instructables and I'll respond as quickly as possible.
Step 7: Add the Strings
Adding the strings is by far the hardest and most tedious part of this project. The InMoov website (linked in an earlier step) has instructions for this step; it's simple in concept, but difficult to actually execute. Keep in mind that threading the fingers takes patience. The one difference between my installation and InMoov's is that I used hot glue to attach the strings to the servos, while InMoov used knots. To me, hot glue is more adjustable when calibrating each finger because it can be easily melted and re-hardened.
To calibrate each servo ring so it flexes and relaxes its finger when you want it to based on the input, first plug in your Arduino and servo battery and run the program. Put on the glove and flex the finger that corresponds to the servo you're working on. Adjust the servo pulley so one hole is closest possible to the fingers and pull the "relax" string of that finger as tightly as you can without bending the finger. Put it through the closest hole of the ring and glue it in place. Then, straighten your finger and pull and secure the other string into the other hole. Repeat this process with each finger. It's important to make each string taut.
I know that last part is a bit hard to understand, but remember: when in doubt, do what works for you. InMoov's instructions didn't work for me at that point, so I developed my own solution. That's the best part of making things, in my opinion: figuring a problem out on your own.
Luckily, this is the last step... So after this, you're done!
Step 8: Recap
Although more complicated and precise (and expensive) versions of this concept have been developed, this is a fun project with many potential applications. Interactive robot control of this level, I think, has many uses in industrial manufacturing, medical research, and anything you want to be able to do with precision that is unsafe to touch. I may eventually put rubber on the palm to give it gripping traction. Also, an interesting modification would be to make it wireless (that is, you wouldn't need a wired connection between the glove and hand). There is a lot of room for improvement, and I'll continue to work on this until I'm satisfied with its design and functionality.
The thing I really love about Arduino is that it allows you to do something like this: by just putting your hand in a glove, you can be so easily connected with the quickly growing robotic and technological side of our modern society. It allows for so many creative, new interfaces between the human world we know and the digital one that we can still improve.
Thank you for looking, and good luck with building yours!
Also, I'd like to thank the user Mizchief100 for the instructions on assembling the hand. This is his variation, check it out:
First Prize in the