Possibly Parametric Prosthetics

Cyborg Beast v7.0

Cyborg Beast v7.0

This last Friday I journeyed to the Autodesk offices at Pier 9 in San Francisco to attend a meeting for e-NABLE, a group devoted to developing, making, and distributing DIY prosthetics.  I have to admit that my own personal interests weren’t necessarily aligned with that of the entire group.  I’m sure those there would forgive my trespasses, but I am far more interested in making the prosthetics and in making it easier for others to make similar prosthetics than I am in the actual mechanics of building an organization that does these same things.

I came away from the meeting having met some amazing people doing amazing things, and with considerably more knowledge than that with which I arrived.1 Just as with the RepRap project, the daunting part of getting started in this field is wondering where the heck to get started.  There are so many different models being developed and so much information, that I just was not sure how to go about actually making such a prosthetic.

As frequent readers of this blog2 know, I like to treat this site as something of an online open notebook where I share my notes, thoughts, and ideas.  Thus, here are the most helpful things I learned as a result of this meeting:

  1. Where to Get Started
    1. Jonathan Schull, an associate professor at the Rochester Institute of Technology, was patient and kind enough to provide me with some pointers on where to get started with producing 3D printed prosthetics.  Jon suggested the Talon Hand for strength, the Cyborg Beast for general use, and the ODY Hand for young children.  The Cyborg Beast instructions refer one to the measurement instructions for the Snap Together Robohand by Michael Curry aka Skimbal.  The process, as far as I understand it, involves measuring the subject’s hand and scaling all of the parts up or down accordingly.
  2. Taking Measurements.
    1. Professor Jorge Zuniga, of Creighton University in Nebraska, is currently using a system for taking measurements that involves taking three photographs of a person’s upper extremities in different positions.  The photographs are taken with a ruler in the image, so that the measurements may be extrapolated.  In talking with Professor Zuniga, I learned that while this is a good way to get a lot of information very quickly (take three quick photographs), it can be labor intensive and time consuming to actually extrapolate the various measurements.
    2. It occurred to me that this sort of problem has actually been solved reasonably well.  Marty McGuire 3 and Amy Hurst created a system for using pictures of hands with standardized objects to extrapolate hand measurements for the creation of custom 3D printed objects.  In the case of their NickelForScale project, they used a photography setup and OpenCV to create custom rings.  While OpenCV isn’t exactly the easiest thing to dive into, one it was figured out could reap huge time savings in gathering the measurements necessary to create custom prosthetics.
  3. Customizing Printable Prosthetics
    1. The multi-step process of taking pictures of a subject’s hands, extrapolating the necessary measurements, calculating the scaling factor, scaling the files up or down, then printing seems fairly involved to me.  While none of these individual steps are actually that complex, it is entirely possible to automate much of this and lower the barrier to getting people involved.
    2. One interesting problem that is created by scaling parts is that certain parts of a design probably shouldn’t be scaled – such as the channels for routing cables or holes for the Chicago screws.4 This inadvertent scaling problem can be completely solved by use of a parametric modelling program, such as (my personal favorite) OpenSCAD.  The “trick” is to scale the model and distribute the various channels for routing cables and screw holes to the appropriate positions to match the new scale – without scaling the diameter of these voids.
    3. One of the really great things about the Cyborg Beast prosthetic model is its extremely realistic and organic appearance.  While OpenSCAD is definitely well suited to creating functional models, it is not as obvious how to create organic seeming solids.  Fortunately, MakerBot’s handsomest and most modest blogger5 posted a very comprehensive tutorial on creating organic solids with OpenSCAD.
    4. Last night I got started on creating a parametric Cyborg Beast model.  While I’m not going for a completely faithful translation of the Cyborg Beast into a parametric model, I’m shooting for a reasonable facsimile of the most important structural and cosmetic features of the Cyborg Beast.  Below is a screenshot of this work in progress.  There’s no thumb joint in this model yet, but it’s coming along.
Cyborg Beast OpenSCAD prototype

Cyborg Beast OpenSCAD prototype

Obviously, there’s more work to do embellishing this model, including adding the thumb joint, hollowing out the underside, adding the knuckle stops for the fingers, and the voids for routing the cables and screws.  However, it’s not that bad for a little bit of quick OpenSCAD hackery.  After that’s done, the various other parts would need to be replicated in OpenSCAD as well.

Cyborg Beast OpenSCAD prototype with original Cyborg Beast overlaid

Cyborg Beast OpenSCAD prototype with original Cyborg Beast overlaid

Default Series Title
  1. That is to say, a lot more than zero! []
  2. Both of you! []
  3. Don’t let the abandoned website fool you – he’s a busy guy moving fast making awesome things []
  4. Head’s up – Chicago screws have a slightly more common and slightly less SFW name []
  5. AHEM *cough* []

What are the minimum parts necessary for an Arduino?

Outside a MintDuino, a book is a man's best friend

Outside a MintDuino, a book is a man’s best friend

It was hard for a beginner like me to imagine that an Arduino actually requires a whole lot less than all the stuff you would see on an Arduino Uno.  Assembling a MintDuino – and slowly pulling parts out to see what was really necessary – helped me understand what was truly critical to its operation.

Inside a MintDuino, it's too dark to read...

Inside a MintDuino, it’s too dark to read…

I found it useful to know what the (near) minimum necessary components of an Arduino were so that I could build a small project directly around just the chip and whatever critical parts were absolutely required to run the circuit.1 I wanted to build the circuit as small as possible – not to save on parts or cost, but to make sure everything could fit into an Altoids tin.23

As a side note, there is a very definite monetary benefit to figuring out how to build a minimal Arduino compatible device.  A brand new Arduino will run you about $30 – whereas soldering a chip into perfboard with the least amount of parts required would probably only cost you about $9 or less if you source the pieces carefully.  While an actual Arduino form factor makes a lot of sense when you’re using off-the-shelf shields, it’s not nearly as important when you’re building a very simple or completely custom project that you don’t intend to take apart.  And, when you’re talking about leaving a chunk of electronics in a project, it’s a lot easier to leave $9 in parts inside rather than a $30 Arduino board.

Here’s what I found to be the (near) least number of parts and (basically) the smallest configuration for the programming MintDuino:

The (almost) minimum you need to upload an Arduino sketch

The (almost) minimum you need to upload an Arduino sketch

This is the “almost” minimum since the configuration above includes (1) a red power indicator LED and a 220 Ohm resistor and (2) a red wire, another red LED, and another 220 Ohm resistor for running the “Blink” sketch.  Once you remove those parts, you could still upload a sketch to the Arduino – but it wouldn’t be able to do anything.  You’ll notice that this configuration doesn’t even include the usual reset button for the Arduino.4 It’s not pictured, but you’d also need a way to communicate with the Arduino, such as a USB cable plus FTDI Friend or FTDI cable.

Here’s what I found to be the (near) least number of parts and (basically) the smallest configuration for running a sketch on the MintDuino:

The (almost) minimum you need to run an Arduino sketch

The (almost) minimum you need to run an Arduino sketch

Again, I’m qualifying the statement with an “almost.”  This nearly minimum configuration above again includes a red wire, another red LED, and another 220 Ohm resistor for running the “Blink” sketch.  You could remove all of these parts and connect whatever else you wish the Arduino to do for you.  While the power LED indicator is useful to know that your project has power, I could see some situations where you wouldn’t want it – such as for a project that needs to work in the dark without drawing undue attention to itself.

Besides fiddling around yanking parts out of my MintDuino to see what would happen, I also found some interesting tidbits about building a minimum possible Arduino.  If your project is tight on space or you are tight on parts or budget, you might find some of the following useful:

I’m still very new to this whole Arduino thing, so if you notice something wrong here, please let me know so I can fix it.

My very next Arduino project is going to be something that fiddles with my television’s IR (infrared) control codes.  You can expect some definite wackiness soon…

Default Series Title
  1. Since I wanted to include a picture of the MintDuino inside and out, I couldn’t help putting a spin on this classic Groucho Marx quote. []
  2. I ended up using the Mintduino tin – and actually recycling some of its packaging into the project as well []
  3. What project am I referring to? Stay tuned… []
  4. I discuss this more below, but I don’t think you need the crystal and two capacitors for the “external clock” functions of the Arduino if all you’re doing is uploading a sketch. []

Arduino Adventures: What I learned building a MintDuino

A MintDuino

A MintDuino

My first real foray into tinkering with an Arduino began a few weeks ago with a MintDuino.  About two years ago I contemplated trying one out, but I never pulled the trigger.  This was due to a combination of decision paralysis, a very short attention span1 , and a plethora of other projects that were always vying for my2 attention.

Overall, I think this was a good place for me to start learning about Arduinos.3 The nifty thing about the assembly tutorial for the MintDuino is that it takes you slowly through the creation of an Arduino.  I learned a surprising amount from assembling this little breadboard Arduino – more so than I ever did by just making an LED blink on a regular Arduino Uno.

  • The first thing the tutorial does is show you how it converts the power from a 9 volt battery into the 5 volts that an Arduino would use.  I found this incredibly useful.  Even if I had stopped reading the tutorial at Step 7, I would have learned that with some capacitors and a “voltage regulator,” I could create a system for converting power from a 9 volt battery into something I could use in a different project.  Sure, I didn’t learn how these parts made that happen, but this was something I could put to use immediately, if I so chose.
  • The second thing the tutorial takes you through, at step 9, is adding a “crystal.”45  This wasn’t particularly useful to me – except that now I know how the Arduino is able to keep time.  While doing some ‘net research on what constitutes a bare-bones minimal Arduino, I discovered that it is possible to omit the crystal and two capacitors in favor of the chip’s internal clock.
  • The third thing I learned from this tutorial, at Step 12, is what appeared to be the bare minimum MintDuino setup required to run a program that was loaded onto the Arduino’s chip.6 Now, it’s possible to remove several more pieces and still have a working Arduino.  If you just had to have an Arduino with an absolute minimum of parts (I’ll get to why later) you could pull the red LED, the 220 Ohm resistor, the black wire going to the red LED.  The result would be a pretty minimal Arduino that didn’t have a status/power LED, but could blink a single green LED.  Remove the green LED, the red wire going to it, and the 220 Ohm resistor going to the green LED, and you have a really stripped down Arduino – that can’t do anything.  But, if you were to design your own Arduino project, you could build this minimalistic Arduino, add connections to whatever additional parts you needed, and solder it all together.
  • By the time I got to Step 17, I learned the connections to the ATmega328 necessary to program the chip with an Arduino program.7  This was interesting to me because it meant that any circuit that I wanted to design, but still have the capability of reprogramming at a later date, would have to have these connections.  However, it would probably easier to add a 28-pin socket or 28-pin ZIF socket to your project so you can remove the chip, reprogram it, and replace it without much fuss.  ((I mean, why add a bunch of wires you only need for reprogramming to a project when you can add a little socket?))

Overall, tinkering with a MintDuino taught me quite a lot about Arduinos.  Staring at an Arduino for the first time out of a box, it’s a little daunting.  There are a ton of little surface mount parts and pins and I had no idea where to start.  I had made an LED blink – but that didn’t seem to do much for me.

Having assembled a MintDuino, I already knew what a bunch of the parts already did – so I could focus on building on my knowledge from there. Having the breadboard handy meant it was easy to connect more wires and try out other sketches and configurations.  Lastly, I went back over my work from the first time I built the MintDuino and rewired it so that the little red, black and green wires didn’t have any slack.  This let me see better which wires when where – which meant I could concentrate on working with the other pins.

I mentioned earlier why I was interested in finding out the absolute minimum amount of parts necessary to operate an Arduino.  Well, more on this in the very next post…

Default Series Title
  1. Oh!  A squirrel! []
  2. Oooh!  A shiny! []
  3. I say “start” because my prior experience with Arduinos consisted of just putting shields on Arduinos and uploading sketches. []
  4. I don’t know why they call it a crystal – it just looks like a little bit of metal with two wires sticking out []
  5. I’m just kidding.  I’m guessing they’re using a quartz crystal – similar to quartz watches – as a timer/clock.  For those of you who aren’t familiar with quartz watches – they keep time by applying a little bit of electricity to a piece of quartz and counting the vibrations of the crystal. []
  6. The Arduino’s chip is called an ATmega328 []
  7. Or, in Arduino parlance, “sketch” []

Arduino Adventure Series – The Adventure Begins!

Arduinos, Arduinos, Arduinos... where to start?!

Arduinos, Arduinos, Arduinos… where to start?!

A few weeks ago I started fiddling with an Arduino in earnest.1 I’ve built things using Arduinos before, but each time all I did was slavishly follow a tutorial as it took me step by step through a process.

Just as a child memorizes the Pledge of Allegiance, committing to memory the right sounds in the right order, I had a grasp of the assembly – but not the underlying meaning.  Sure, I built a MakerBot Cupcake CNC (“Bender”), a MakerBot Thing-O-Matic (“Flexo”), an Egg-Bot, a Polargraph/PlotterBot, and an IoT Printer.  ((FYI, my MakerBot Replicator 1 is named “HedonismBot“))  However, I have only the dimmest understanding of how the things I did actually created the things I ended up building.

However, I want more – there are several ideas I would like to create using electronics.  One is a sonic screwdriver flashlight.  Another is device for … shall we say…2  interfering with television infrared codes.3

My goal for this series of posts4 is to document my triumphs and failures playing with an Arduino.  I think it’s time to get started on that next post now…

Default Series Title
  1. Photo courtesy of Arkadiusz Sikorski []
  2. Mu-ah-ha-ha!!! []
  3. Nope, not a TV-B-Gone []
  4. I know it’s ambitious to call a post the “first” post – but dammit, a man’s got to dream []

Who is tracking you? Collusion plugin for FireFox

If you want to see something that is simultaneously disturbing and ego-inflating, check out the Collusion plugin for FireFox. 1 A friend of mine e-mailed me the link to the LifeHacker post discussing it.  If you want to cut to the chase, the link to the Collusion plugin is right here.  After web surfing and blogging for about an hour, the little web it’s drawn so far is a little scary.

 

  1. In a perverse way, it is slightly ego-inflating because I’m clearly so very important to ALL these companies! []

Plugin Considerations

When designing/writing software, or I suppose any kind of engineering for that matter, there is always a tension between features and complexity.  I really want this Simple Series WordPress plugin to be simple and easy to use.  But, as I use it more and more I find there are some possible features that I wouldn’t mind having.

For example, my DrawBot series is at 43 posts at this moment.  The problem is that each post, no matter how short, now has an entire screen-length’s worth of a list for the series. 1  Now, there are several possible ways to handle this:

  • I suppose when I’m looking to design a UI, the most important things to focus on is what would the user expect to see and happen.  It certainly makes sense for there to be a uniform series list in every post.  But, it seems slightly inelegant to have it that way for every single post when you’re looking at an entire page.
  • I could modify the plugin so that it would only create a list once per page, rather than once per post.  I suppose subsequent instances could then provide a single link to the series list in the initial post.  I think this would be non-intuitive as a person navigated the page.
  • I could modify the plugin so that it only showed the current post plus X posts before and after where X is some arbitrary number I choose.  (Although, I’d probably make it user specifiable).  I’d have to dig into some fancy scmancy CSS to define a different start-number for the HTML ordered list, but this isn’t a huge problem.  Ideally, it would say there are Y prior posts and Z subsequent posts as well.  Then again, it is really helpful (at least to me) to be able to click back up or down through a series list.

Perhaps the optimal result is something in between?

  • On a page consisting of a single post, the entire list should be displayed.
  • On a page consisting of multiple posts, the subsequent lists should be truncated in some meaningful fashion.  Perhaps the last and subsequent X posts, with a little sentence indicating Y more prior posts and Z more subsequent posts.  When you click on the “Y more prior posts” it could take you to the first instance of the series list on that page and when you click on the “Z more subsequent posts” it could take you to the next post listed in the series on the first instance of the series list on that page. 2
  • Sadly, this system would not really change much for the RSS feed readers.
Default Series Title
  1. I can’t even imagine how much text is devoted to just the series list on those DrawBot posts in your RSS feed. []
  2. Um.  This sounded a lot clearer in my head as I typed it than it probably reads. []

Simple Series – Half-Life; Market Research

I’m wondering at what point will the downloads on this plugin plateau.  Whatever the eventual baseline download rate, I would suspect that speaks to the amount of maximum market share that is possible for a plugin that performs these functions.1  I would think that downloads would spike when I release a new version of the plugin.  Given that I released about five updates to this plugin the first day, I would assume some of those initial downloads were duplicative.

As far as rankings go, at this time this plugin is #5 on WordPress.org’s plugin search page, #5 inside WordPress’s internal “Add New” plugins search page, and no where to be seen in the Google rankings.  Looking at Google Keywords, it appears that there’s no small amount of search traffic for the keywords “WordPress series.”  There’s some 200,000 global monthly searches.  One of the reasons I’m following this so closely is that I’ve had a few ideas for plugins that I could sell.2

Here’s the WordPress.org plugin download stats for “Simple Series with SEO!” for the first four days.

  1. 1/26/2012: 1 download
  2. 1/27/2012: 99 downloads
  3. 1/28/2012: 37 downloads
  4. 1/29/2012: 20 downloads

What will tomorrow bring?

Default Series Title
  1. I promise I won’t subject your RSS feed to my obsessive stats checking.  Much of the time I use this blog as a way to document/save/organize information that is probably really only interesting to me. []
  2. A brother’s gotta earn, right? []

Anti-Virals

Here’s the WordPress.org plugin download stats for “Simple Series with SEO!” for the first three days.

  1. 1/26/2012: 1 download1
  2. 1/27/2012: 99 downloads2
  3. 1/28/2012: 37 downloads3

It looks after being bumped from the newest plugins slot, the downloads dropped precipitously.  So much for going viral, money, and fame, eh?

Actually, I’m happy to have helped out a 100 people or so.  I also think a lot more people will end up using this plugin over time.  The alternatives, while very good, are more difficult to use and do tend to add a lot of other stuff into your WordPress installation.

Default Series Title
  1. That was me installing it in another blog! []
  2. And a blog ain’t one []
  3. I have nothing clever to say about this. []

DrawBot – The Delivery, Part VI

Okay, that was FAST.  I ordered the Adafruit motor shield from MakerBot on 1/26/2012 just after midnight and it arrived today a little after noon.  That’s about two-and-a-half days for the parts to be packed, shipped, make it from Brooklyn, NY to Oakland, CA and then to my secret robot lair in the Bay Area.1  While at the hardware store today I picked up some small eyescrews and new tips for my soldering iron.  Tonight I’ll assemble the board.  Again.

I can honestly say that I was mightily tempted to purchase a third motor shield along with this second.  However, as I have no immediate designs on a secondary DrawBot2 I’m not ready to admit the possibility of defeat.  In the words of Kongorilla, I will not fail.3

Actually, now that I’ve got these new soldering iron tips, I stand a chance of being able to desolder the mis-soldered parts. 4 My old soldering tips were old, tarnished, and somewhat crusty.  The soldering tip I’m replacing is all of these things plus it is in the rough shape of a flathead screwdriver. 56

Wish me luck!

Default Series Title
    • Delivered, January 28, 2012, 12:09 pm, [SECRET ROBOT LAIR], CA [9XXXX]
    • Out for Delivery, January 28, 2012, 8:14 am, [SECRET ROBOT LAIR], CA [9XXXX]
    • Sorting Complete, January 28, 2012, 8:04 am, [SECRET ROBOT LAIR], CA [9XXXX]
    • Arrival at Post Office, January 28, 2012, 5:17 am, [SECRET ROBOT LAIR], CA [9XXXX]
    • Depart USPS Sort Facility, January 28, 2012, OAKLAND, CA 94615
    • Processed through USPS Sort Facility, January 28, 2012, 2:26 am, OAKLAND, CA 94615
    • Electronic Shipping Info Received, January 27, 2012
    • Depart USPS Sort Facility, January 27, 2012, BETHPAGE, NY 11714
    • Processed at USPS Origin Sort Facility, January 26, 2012, 11:40 pm, BETHPAGE, NY 11714
    • Accepted at USPS Origin Sort Facility, January 26, 2012, 10:25 pm, BROOKLYN, NY 11217

    []

  1. I’ll want to make sure I can get this first one sorted before I try []
  2. Actually, that’s a little more bravado than I’m really capable of.  If I fail, I fail – I just have no intention of ending at failure.  Rather, I’m committing to repeated failures … until I end up with a working DrawBot []
  3. Gah, why didn’t I pick up a desoldering pump while I was out today?! []
  4. And chipped, at that. []
  5. It’s really quite a miracle I got the first board soldered at all in the first place. []

Articles on writing WordPress Plugins

Looking back at one’s code from years prior is like looking back at a junior high school picture of one’s self.  I’m looking back at the code for my quick-and-dirty pie chart plugin and think, man, why did I write things THAT way?

In the 1,000 years since I wrote that plugin in 2009, I’ve been trying to learn and comply with best programming practices for WordPress plugins.  As a result my current plugins tend to be stripped down, simple, don’t create unnecessary options, don’t create unnecessary tables, taxonomies, special post types, or those kinds of things. 1  Learning some Object Oriented programming along the way has been super helpful.  By encapsulating your WordPress plugin code into a chunk of objected oriented programming, you reduce the likelihood that your plugins’ function and variable names will collide with those from WordPress or other potential plugins.

If you’re getting started or need to brush up on your WordPress plugin development skillz, you should definitely check out these awesome articles:2

I’d also recommend tinkering with jQuery and JSON, if you haven’t already. 3  I don’t know of any really good JSON tutorials, so if you do, please let me know so I can add it to this list.

  1. Admittedly, I’m not really shooting for super ambitious plugins either. []
  2. Mostly stolen from the WordPress Codex! []
  3. I only use JSON for passing data from the browser to the server via AJAX and then decoding into a PHP object. []