Tuesday, February 15, 2011

Pin hinge joints



I worked for some time with the notion of doing a biomimetic approach to constructing a telepresence hand by using mixed plastics extrusions. It turned out that the finger joints were made with what amounted to a fluid filled bag harnessed in with ligaments. I could do the ligaments but had no hope of printing a fluid filled bag at the scale required by a human-sized hand.


From there I've designed pinned hinge joints. It was a real challenge understanding how to print a 0.84 mm hole accurately for the pin. I finally came up with a workable approach last weekend.


At this point I know how to do the joints and now face the problem of securing the latex band that contracts the finger.






It is nice having a little time to work on the project after the loss of last Fall and much of the winter to the demands of my day job.




Friday, October 1, 2010

Getting into polypropylene



In which your narrator begins to familiarise himself with the vagarities of printing with polypropylene.

I cut a 3/8 inch black HDPE print bed for printing polypropylene (PP). PP doesn't stick all that firmly to it but it should be adequate for my purposes. Before getting into designing and printing ligaments, I decided to just do some sample prints to get used to how it behaves and what the settings are.

I found that my ABS temperature settings were quite adequate for PP. PP does, however, tend to swell after leaving the extruder orifice considerably more than ABS. Whereas ABS swells from the 0.3 mm orifice to 0.458 mm, PP at the same temperatures and extruder stepper rates swells to 0.58 mm. This means that you're running 60% more PP through the extruder than you are ABS for identical extruder settings. That quickly became apparent with several trial prints.

Just for fun I printed the middle finger metacarpal.




The print didn't have the fine definition of ABS, but then I don't have the flow compensated completely for the faster flow rate that PP does.  The metacarpals were quite flexible.

I printed a few flat plates of PP several layers thick with no raft and it appears that PP will work very well for ligaments.

Monday, September 27, 2010

First prints



After having separated out the individual bones from the hand scan, I decided to print a couple of copies of the middle finger from metacarpal to distal phalange.

Preparing the phalanges for print was undertaken without drama in AoI by using a single block and boolean operations to slice each phalange into lower and upper halves.



The next step involves the printing of flexural joints and ligaments in polypropylene to the ABS bones.  Hopefully, the attachment of the ligaments to the bone will be simplified by the use of a special adhesive that I've located.  That is on order and should arrive early next week.

Sunday, September 26, 2010

Dem Bones



In which your narrator creates a way to separate parts from an undifferentiated OBJ file scan of the bones in a human hand.

Recently, I came to the conclusion that it was going to be very difficult to achieve anything like the degrees of movement with a human hand in anything like the same size as a natural hand. The Shadow Robot Company gets about as close as you can get by achieving 20 of the 27 degrees of freedom possible with the human hand.


If you look at the kinematics of the hand, which are the best in the industry, you'll notice what amount to pin joints.  While I have no trouble with them, they're extremely hard to do with printed ABS.  As a result, I've begun to look at a more biomimetic approach which has had me looking much more closely at how a hand is put together.



When you look closely at how the joins and joints in the hand are put together you see a series of strip ligaments applied like bandages to the joints to restrict and control movement.  Oddly, the colouring of the Gray's Anatomy drawing twigged my thinking.  The bones are pretty much the same yellowish tint that the ABS I print turns to several weeks after being printed.  The grey-white of the ligaments looks just like the polypropylene that I did a bit of work with a while back.

I found polypropyene a bit too rubbery for my purposes back then but then I realised that polypropylene is famous for being useful as a plastic that can stand flexing, a perfect match for ligaments.  As well, there was the small matter that I'd acquired some 80 lbs of 3 mm polypropylene filament over a year ago at a clearance sale for about $1/lb.

What if I made bones out of ABS and ligaments out of polypropylene?  With the powerful Rapman extruder there was no systems limits on that approach.

First, I had the problem of finding a proper depiction of the bony structure of the human hand.  Several hours with Google led me to this offering from Turbosquid.


Search as I might I was not able to find an open source scan of the human skeleton or parts thereof.  The Turbosquid depiction was inexpensive {please don't write me about better deals, I suspect I've already found them} which suited my tightfisted Scots-Irish nature, but the product was presented as one OBJ file, which made separating out the individual bones a rather daunting task.  Most firms like Turbosquid provide their scans in a variety of formats, most of which work with expensive 3D CAD systems leaving only the OBJ file, which doesn't have intrinsic parts separation, available for use in my preferred 3D CAD system, Art of Illusion (AoI).



I continued my Google search and discovered that if you wanted the bones disarticulated you wound up paying several thousand dollars for a whole skeleton scan.  That was a non-starter.  Thus, I was left with trying to figure out how to separate the parts.  My first notion was to use cutting blocks in AoI.  A few goes at that showed that it was entirely possible but extremely fiddly work.

I then began to wonder how big a task it would be to go in and separate the individual bones in the OBJ file?

The OBJ file format is a rather primitive one that simply includes a list of the 3D points in the point cloud describing the surface of the object(s) followed by a list of triangles containing all the points which make a surface mesh over the object(s) described in the file.  The OBJ format specification is a rather mutable thing and the Turbosquid specification included a lot of textural data and a peculiar triangle specification affectation that I'd never seen before.  Fortunately, when I imported the hand bones OBJ into AoI and then exported it again, it came out in the simple, elegant AoI format.

I wrote a small Visual Basic .NET app to separate out the bones in VB.NET 2008 Express, a powerful development environment which is distributed free by Microsoft.

How it works

The process I followed can be described...

Initially:  break the OBJ file into two lists, the point cloud {List 1} and the triangles descriptions {List 2}.

  1. take the first triangle in the triangle list and put it into a fourth list (List 4) and delete it from List 2.
  2. get the three pointers from the triangle and put them into a third list (List 3) that is sorted from smallest to largest.
  3. Collapse List 3 to include only unique pointers
  4. Take the first pointer out of List 3, delete it from the list and then find all triangle descriptions in List 2 that contain the pointer and add those to List 4 and delete them from List 2.  Add the pointers in each of those triangle descriptions to List 3 and collapse the list again.
  5. Repeat 4 until List 3 is empty.  You've now got the list of triangles describing one of the pieces in List 3.
  6. When List 3 is empty, create a separate OBJ file for the individual piece by copying List 1 followed by List 4 into an individual file.
  7. When this is done Repeat the process starting at 1 until there are no triangles left in List 2.
You will then have an OBJ files for each unique, separate piece in the combined OBJ file that you started with.  AoI doesn't care if there are unused points described in the point cloud.  If you want to get rid of superfluous points you have merely to import the individual OBJ files into AoI and export them again.  This does not happen, apparently, if you import the OBJ file and then try to immediately export it as an STL file.

I've zipped up the code for this little app and put it on my website.  You can access it here.

The hand bone assembly from Turbosquid is not included in that as I read the license I can't redistribute it in its original form.  I'm not sure about that, but I'm not into having that kind of drama with them.

Walking through the app

I'm assuming that you have some familiarity with VB.NET and want to run it from the development environment.  Understand that I'm not happy acting as a help desk for my code.  If you want to use it you're largely on your own.  That said, I'll give you a little walk-through.

Here is what you see when you activate the app.



When you punch the open object file button you're taken to the Object Data folder within the app. 




You can navigate to other folders but this is the default folder that is opened.  You select and open the OBJ file you want to break up.  That leaves you with something that looks like this...





...with the point cloud descriptor in List 1 and the triangle descriptors in List 2.  When you've done that you then punch the Separate Parts button and wait for it to finish.  It's pretty fast on my machine, but it can take a while depending on the complexity of what you are trying to separate.

Once it's done you can go find the Output folder which you can see here...
.



You can also see the Object Data folder in this pic.

Looking inside the Output folder, you will see that your original OBJ file has been broken into as many numbered files as there parts in your original OBJ file.




You can then take those into AoI and convert them to STL files for use with either my own Slice and Dice app, Skeinforge, Netfabb or any of the other apps that prepare print files from STL files.

You can see how this separation process works by looking at the #12 file of the hand assembly.




Like most of my work, I'm more interested in demonstrating methods and approaches than in creating out-of-the-box apps.  I know most of you are much more interested in Java, the good Lord save you, and Python than the Wintel-only Visual Studio and Visual Basic development environment.

Have fun!  :-D

Thursday, September 16, 2010

Ball and socket joint



Having got down to the carpal assembly in the hand I was left with having to design the interconnection between the carpals and the radius and ulna. I decided to see if I could put together a workable ball and socket joint within the size constraints that I am working with.

It turns out that I can...




I made the ball in two parts to avoid having to use support material and used a recessed machine screw to connect them.




I will need to tighten up the collar a bit to insure that the ball isn't too lose in the socket.



One thing that has occurred to me is that I can design the collar orifice of the socket to restrict the movement options of the joint.

Now I'm wondering if I could design a more compact, more biomemetic knuckle joint?

Tuesday, September 7, 2010

Checking flexibility




I finally got a workable thumb joint going yesterday and was able to do a quick lash up to check for kinematics clashes this morning before work.  I ran the hand through a quick touch-each-finger-to-the-thumb exercise and found no clashes as such.


Index










Middle










Ring










Little










Now all that remains is to integrate the thumb joint into the carpal block.  From there I can look into the joints to the radius and ulna bones (forearm).


Looking at the design so far it's obvious that I was designing fingers instead of phalange bones. Because of that, when I take the design into the metacarpals it gets a little crowded in the hand.  I really should do a tapering exercise on the metacarpals to get that wrist the right size.


First though, I will look at the wrist to forearm connection.  Even if I wind up changing it later the knowledge gained in doing it a first time will let me do a better job with the hand redesign.  


Monday, September 6, 2010

Carpal block prototype



Designing and printing the carpal block for the fingers proved a lot easier than I'd expected.




Now I've got to figure out that @#$#@ thumb joint connection.  :-s