Jan 30, 2016

Calculating The Cost of 3D Printing

One of the first questions lots of people ask me after I show off one of my 3D printed creations is "Why would you print that?".... ummm...
But the SECOND most common question is, "How much did it cost to print that?".  I usually say "negligible" - since a 1 lb spool of 3D Printer PLA filament costs between $20 and $30 - but I figured it was time to calculate a better answer.

Calculations


I buy PLA of both 3mm diameter (for my Lulzbot TAZ4) and 1.75mm diameter (for my Polar3D). I'll stick to just 3mm here for simplicity.

1kg Spool of 3mm PLA ranges widely - from $23 (Amazon) to $44 (Ultimachines).

CURA slicing app gives length estimate
The total length of a 1kg spool of 3mm PLA is estimated (by ToyBuilderLabs) to be 110 meters long. I have't yet un-wound a brand new spool to check this (and likely never will).

That means the cost of a print is approximately $0.21 - $0.40 per meter. Of course, that does not include electricity, loss due to bad prints and testing models before final prints. It also doesn't include the cost of things you may smash when frustrated over failed prints (no, I've never done that).

If you're lucky enough to use a slicing app which gives approximations on the length of PLA required for your print, you can make this estimate. Cura does this - as you can see in the picture included here - where it gives the length required and the time estimate to print (using all the parameters for the given print job).

Examples


Google Docs Logo/Icon (40mm): 0.56 meters = $0.12 - $0.22 per object

Filament Spool model: 4.19 meters = $0.88 - $1.67 per object

Raspberry Pi Box with top: 6.33 meters = $1.30 - $2.53 per object

Makerbot also has a great post (albeit from 2012) on this topic which estimates that you can print 392 chess pieces with a 1Kg spool of filament.

Conclusion


Answer = cheap. So, negligible is a good answer when you're printing just a couple of keychain trinkets, and if you are printing larger objects or large quantities for a professional job perhaps, you can possibly use the 20-40 cents per meter of 3mm filament as an estimate.

A 3D Printed Filament Spool and a Discovery

I purchased a bunch of PLA filament for my Lulzbot TAZ4 a while back (from Ultimachine.com), and didn't realize until it arrived that I had bought the "Coil" version, instead of "on spool". For the first few months, I rigged up some crazy hanging jig which let the PLA feed out of the bag it came in - looking very much like a intravenous rig used to administer drugs or fluids (analogy un-intended). While this worked, it was wonky and suboptimal.

I decided to use this as an opportunity to design a 3D Printed spool to hold this PLA. I'm sure I could have gone out and bout one, or used the few (actually, just one) spools I have already depleted. But, as we say here at MkrClub, "Any excuse to design something new".

Design Goals


My main goal, of course, was to have something that worked. That meant it had to allow the PLA to be wrapped at a diameter which was loose enough not to snap it, and hold the PLA in place. The spool also had to have the right capacity to hold a full coil of PLA - about 1 Kg - and it should be adequate for both 3mm and 1.75mm PLA.

A close second goal was that the spool should print easily and quickly. I did not want to use tons of plastic printing a spool, and did not expect to just copy the dimensions and design of the standard spool. I expected - as I do so often - to have a multi-part design here.

Design Summary


The core of this design was, well, the core of the spool. I experimented in modeling a bit, and decided to design a hub and spoke model which had very simple and lightweight spokes coming out from the center (the hub). I did not think I needed any "rim" around the outside of the spokes, and that seemed to work just fine.

The spokes were designed as a pair of opposing spokes as a single object - which allowed me to vary the number of spokes used if I varied the size of the core/hob (for larger spools). I started with 4 pairs of spokes per hub, evenly spaced at 90 degree intervals.

Design Challenge


The connection of the spokes to the hub was a design challenge. I considered making each individual poke a separate object, but realized that as pairs they might be easier to connect in a strong way to the hub.

After some experimentation, I came up with a design that not only held very firmly, but used the slight flexibility in the PLA to allow the spokes to be "opened up" to grab onto the hub. Printing these parts flat also allowed for a slight "barb" on the connecting part, which helped created a strong connection until the spokes were physically squeezed to open the barbed ends back up again.

Testing Designs Efficiently


As with many designs, there are small parts that need to be tweaked before they are perfect. When the overall model is large, I like to use a novel approach to testing the most risky parts of the design without printing the whole model. I make a copy of the model and I slice it up into parts - isolating the part I want to test and printing ONLY that part.

For this spool design, it was the connection between the hub and spokes that was most risky and needed testing. Before printing the whole model, I cut off most of the spool, leaving only a small part of the circumference including the connecting part, and printed just that.


You can see in this picture what the TEST PRINT looked like, and this let me reduce the test print time and material by about 80% - giving me more patience to test until the connection was just right.

A Semi-Failure With A Discovery


Generally, the print did not work for me for a few reasons. First, the core was too small for 3mm filament - requiring too tight of a radius. I also need to add an angled hole in the hub to hold the end of the filament firmly. These are easy problems to fix.

So, while I was happy with the design overall, I'm pretty sure that using pre-used spools will suffice. This is likely another "unnecessary creation" which we 3D printing folk often produce ;)

The bright side of this design was the discovery of a new way to connect 3D Printed parts - a goal I've continually pursued. The flexibility of thin PLA prints created a locking mechanism that I'm sure will come in handy in other designs, as it gave me the best balance I've ever achieved between ease of connection and a firm hold.


Jan 2, 2016

A Fancy 3D Printed Raspberry Pi Enclosure

The Raspberry Pi helps make learning about computers fun and accessible for many people - and has given the maker community a powerful computing platform in a tiny package. Actually - it's a small integrated circuit board without a  "package" - it doesn't always even come with a case.

When my daughter opened up her new Kano Raspberry Pi kit that she got as a gift, the "package" - the enclosure for the electronics - was one of the things that made the kit approachable and easy. Then, within hours of that insight, a good friend and blogger asked me if I had designed a Raspberry Pi enclosure for 3D Printing. My response was a fast "Not yet, but it's on the way".

Design Goals


I wanted my Raspberry Pi enclosure design to be more than just a box with holes for the wires. I wanted it to be good looking and inviting. I decided I would use the Raspberry Pi logo itself as the design for the box. Of course the box had to also be functional. The Pi had to fit in there easily and have a way to secure it and, of course, all the wire ports need to be accessible. Of course, like so many designs I do, I wanted it to be easily printable without supports - and I expected it to be two parts - a bottom to hold the board, and a fitted top, preferably one which held securely without screws.

Summary of This Design Journey


There were a few forks in this design road - so I figured I should just summarize them first so readers get a sense of how I ended up with the current design.

    1) I started with the Raspberry Pi version 1 Model B (Two USB ports) - which has a specific size and layout of interface ports - implying layout of the holes in the sides of the case. Then I realized (after I got the general sizing all correct and printed) that most people, including my daughter, now have the version 2 design. (more info on Pi Models)

    2) I moved to the Raspberry Pi 2 layout - using my daughter's Kano board as my basis for measurement. That got me designing in the right direction,  and I completed a box design with the right layout to fit that Pi 2 board. But it seemed boring.

    3) I added a Raspberry Pi Logo-shaped bottom to the box, then created a custom top which was also in the shape and design of the Raspberry Pi logo. This looked really good - and had plenty of challenge creating the fitted top.

    4) The shape of the Raspberry Pi logo was so nice, that I decided to make the whole box that shape - with adjustments to fit the board within it. I was finally satisfied after some adjustments to the top to make the Raspberry-ness really show, some strengthening of the walls, better fittings to make the top snap in place and addition of optional screw holes. 

    This is where I am with my current design, but I'll fill in the details now for those who want to know more.

    Basic Design Of The Box


    I started with a box - figuring I would add the design elements as shapes on top and bottom of the box to give the whole package the appearance of the Raspberry Pi logo. So the focus to start was the alignment of the wire holes and screw holes and the general fit of the IC board.

    After measuring the Pi board (approx 85mm x 56mm), I created a basic rectangle with those outer dimensions plus an additional 3mm extra space on all sides - that's 2mm walls with 1mm space on each side. The rectangle is now 91mm x 62mm - and I use the "Shell" command and define 2mm walls to get the hollowed out box where the Pi will fit.

    Useful Trick for Early Design Testing


    Drawing with all measurements
    The placement of the seven (7!) port holes was critical to the success of the design, and no amount of measurement makes for a fool proof design or print. So, when I thought I had the whole bottom box design ready to go, I didn't want to print the whole thing until I was sure I hadn't messed something up. So, I came up with a method for testing a smaller version of my print to test that the placement of screw holes and wire port holes was correct.

    It's worth mentioning that I created a Google Drawing which documented all the measurements in once place visually.
    bottom portion only as a test

    I only needed to test the bottom half inch of height - about 20% of the total printed object - to see if the mounting holes and wire port holes were positioned correctly. To isolate that portion of the object, I created a big rectangle which was slightly larger than the whole box and positioned it over a copy of the box,  specifically positioning it over the portion of the box I did NOT want to print.

    Then I did a "Combine" / "Subtract" to remove the whole top of the copy of the box. That left me with the bottom portion. I printed that - which took about 45 minutes rather than the 3 hours the whole box would have taken, checked that it worked out, made adjustments and repeated. Two tries and it was done.

    The subtraction shapes used to cut the wire ports and SD slot

    Making Wire and Port Holes


    I had to make 7 holes in the sides of this basic box. It seemed the best way to do this to allow for a few later adjustments would be to create and position 7 rectangles which would be used to subtract material from the box. Any later adjustments I made, even to the box itself, would allow me to re-subtract these same boxes, in their correct positions, from the adjusted box. This turned out to be an insightful move, as I made many box adjustments that otherwise would have been hard to maintain the holes if they were pre-made in the box itself. Once the boxes were positioned correctly, I did the "combine"/"subtract" command - with all 7 rectangles as the source - and voila, the box had 7 holes in it.

    Screw mounts added where needed

    Securing the Pi Board (screw holes)


    To offer a way to secure the Pi board to the case seemed easy enough - since the Pi 1 has two screw holes and the Pi 2 has 4. But now that I had all my port and wire holes positioned, I realized that I needed to lift the board up a bit from the bottom of the case to give room for screws. This was luckily easier than it may have been, given the method I used to subtract the holes from the box. I just lifted all the subtraction shapes up 3mm and re-subtracted them from the box. I then placed small 3mm high rectangles (about 5mm square each) in the areas where the screw holes were needed and carefully measured as many angles as possible to get the holes positioned relative to the box sides and to each other. I used 1.25mm Radius cylinders to subtract holes from those shapes and aligned them to sit on the bottom of the box. Theses would also serve to hold the Pi board away from the bottom of the case with enough room for the bottom-mounted SD card and the small soldering nubs that stick out the bottom.

    The Raspberry Shape - from Simple to Complex


    To get the Raspberry Pi logo turned into a 3D object, I used an old trick that I've written about a couple of times. I pulled an image of the logo into Google Drawings and traced over it with the Polyline tool to create the Scalable Vector Graphics version that my 3D Modeling software can understand. With some foresight, I actually traced the outline of the raspberry separately from the inner designs of the raspberry, so that I would have some flexibility with the final objects.

    I went through several iterations of using this design. As mentioned earlier, first I created a base with the outer shape - and this definitely made the plain old box look more interesting. Then I created the top with all the inner designs subtracted out. This was also a huge improvement to the plain old box.

    Ultimately, after printing a very successful box shaped container with a top and bottom raspberry shape, I decided that the whole box should be raspberry shaped. The start was easy. I created the box with the raspberry outline extruded to 27mm, then hollowed out using the "Shell" tool in 123D Design. I then moved over the original box and started combining shapes - removing walls where they overlapped in areas which would be in the way of the Pi board, and combining walls where more support was needed.

    Then, my original idea to save the subtraction shapes for the 7 side holes came in super handy. I moved them over, in their relative positions, to the raspberry shaped box, and subtracted them again. This worked wonderfully! The Pi Board screw holes were also moved in their original positions after adding another 1mm of height to the mounts to give the board more breathing room and the screw holes more depth.

    Securing the Removable Box Top


    Making the top snap into place in a way which did not require top screws was one of my design goals, and became the toughest part of this design. I experimented with a few methods before settling on opposing and offset half-round, 1mm deep rim pieces. I originally added too many of these sets of snap-together parts, and the fit was too tight - but with four of these sets, the fit was just right.

    Even with the snap-togetherness of the top, I decided to add screw holes and mounts for people who want an ultra-secure enclosure. This was easy-ish - using tall 6x6mm towers on the inside of the box, and subtracting 2.5mm diameter screw holes 15mm deep into them, and through the top at the same time (to get perfect alignment).

    The Final Model


    There were lots of last minute adjustments, and overall, if I'm really honest about how much time I spent creating this model, I would estimate 10 hours of work not including printing time. I really obsessed over the design of the top, the combination of etched designs and full-through holes, which are functional in a case for something that might heat up like the Pi.

    The final model is now available on PinShape. Please post pictures of your print on PinShape or on Twitter and include @MkrClub !

    Dec 23, 2015

    3D Printing Chinese Characters

    My son is learning Chinese as a freshman in high school. For the holidays, he wanted to give a personalized gift to a friend who is also taking Chinese - so he decided a 3D Printed version of her name in Chinese would be worth a try.

    Design Goals


    The goal is to create an object - basically a name tag or placard - which will stand up on a desk. In this case, my son said he wanted each character to be it's own distinct object. This was a pretty basic idea - one which we've covered mostly in a prior post about 3D printing text - using extrusions of english text.  But what if the language or characters you want to print are not available in the text objects of your 3D modeling tool?

    Design approach


    I decided the best bet would be to use the "tracing" method with Google Draw to trace over the characters - creating sketches of each character, then extruding them into 3D objects. This is super easy once you can get an image of the characters into Google Draw. My son did this part by changing his keyboard language to Chinese, using Pinyin to enter the words he wanted, then using a text object in Google Draw.

    Once the characters were on the drawing canvas, I basically just traced over them using the Polyline tool. Then, once the whole thing was traced, and after deleting the text object, I use the "download as SVG" option to get something my 3D Modeling tool can import (Autodesk 123D and Tinkercad both support .SVG files).

    The Challenge


    The name we were creating - Wang May Hua (in english) - is actually three individual characters (in Chinese) - but two of them were multi-part characters with parts which were not physically connected. Here was he main challenge - and basically I referred to all the learnings in my "3D Printing Text" post to make this work.

    the two part character connected using small rectangles
    I decided the end product should be the individual characters - in their positive form rather than negative subtractions from a block - standing up on a base. That dictated what process to use to connect the individual parts of each character.

    Making it work


    To connect the individual parts of each character I placed a small rectangle connecting the parts, but offset it 2mm lower than the surface of the characters so that it was less obvious.

    To make the characters stand up, I added a base that stood out in front of the characters - about double the thickness of the characters - so my 5mm thick characters had a 10mm thick base, which when stood up would only be 3mm high.

    The result came out quite nice - and while I started with objects which are only about 30mm x 30mm, my son is hoping we can "print these now around 10 times that size!". I guess that's a good sign.


    Dec 22, 2015

    More Holiday 3D Printing - The Snowflake

    The holidays are a great time for gift giving, and if you have a 3D Printer, nothing is more fun (exaggeration warning) than 3D Printing a gift for someone you love (or just like a little). My previous post which featured the Christmas Tree ornament/decoration was a simple way to start - and then I then posted the Snowman design which followed the same pattern. This new design - the Snowflake - has a slightly more interesting base design with circular symmetry and offered an opportunity to change to a more complex construction model too.

    The first version of the design is the simple two-part construction, but the second version creates a much fuller final product by using three parts fit together at 60 degree angles rather than 90 degrees.

    The first, too-complicated, design
    but I will print this one too soon.

    Design Goals


    As in the previous holiday decoration designs, I was aiming here for simplicity and ease in printing as well as creating a mode symmetrical model that could eventually be constructed using 3 parts. The mostly flat parts are designed to easily fit together to form three-dimensional objects - something easy to hang on a tree or stand up on a shelf. Both Snowflake models in this post meet that objective.

    Snowflake Design Overview


    The snowflake took me a few tries to come up with a method that worked well. I tried drawing it with a sketch, but couldn't get it to look right. I knew I would need to use a duplicating method to get the symmetry no matter how I modeled it. I finally just used long rectangles overlapping with some shelled outlines of rectangles at the outer edges. 

    This looked amazing - but was much bigger than I had hoped. I simplified that design starting from scratch, and used a simple cylinder in the middle around which the single crystal of the flake I designed could be repeated in a circular pattern. I knew I could use this basic design with both the 2-part and the 3-part final design, so I focused on getting this right first.

    Snowflake Details


    The tool in 123D Design to get that symmetrical circular pattern is the "Pattern" tool. Selecting "Circular Pattern" lets you repeat the single set of crystal objects in a circular pattern around the diameter of the center cylinder object - which is selected as the "Axis" of the pattern.

    This tool was perfect for the job - and I could see how I could create many different designs with the same base set of objects. With the simpler and smaller crystal pattern, and repeating it 6-times around the center cylinder, I was able to get a simple, small design to try.


    The final step was to create a slot in the center to allow two of these "flakes" to fit together at right angles. I simply duplicated the design, turned one 90 degrees and moved it half the distance off the other so that each would have a slot halfway down the middle. 

    Note: I actually made that slot 0.3mm deeper than halfway to allow for a bit of printing imprecision, as always. The design also required that I had enough room between the crystal legs to allow the two parts to fit together.

    The More Complex 3-Part Snowflake Design


    I realized with this two-part design, that it could actually look much better with 3 parts fit together. I took some time to figure out how to actually accomplish this, but the math seemed straight forward. With three parts crossing at the center, there would be 6 sections, which means each would be separated by 60 degrees around the circle to create the full 360 degrees.


    I accomplished this by creating center slots which, instead of cut perpendicular at 90 degrees, were cut (subtracted) at an angle of 60 degrees. The tricky part was that 3rd piece.

    The first two (which are actually exactly the same) fit together nicely since they had slots cut halfway up the center on each - but the 3rd piece now needed a place to go. I achieved this by extending the center of the 3rd piece and cutting a slot which was the full length of the centers of the first two, and by cutting TWO 60 degree angles in that same slot. This allowed the 3rd part to fit over two other parts in the center.

    There was one problem - at that shallower angle, the extended parts of each flake overlapped and didn't let the parts slide together. I had two options - either cut the slot through those parts too, or, make the height of the model shallower overall. I decided on the latter, reducing the height of each flake part from 2.0mm to 1.6mm - getting to that number only through experimenting until the flakes didn't overlap.

    view of the center where 3 parts
    come together
    The image included here shows the center where the 3 parts come together, showing the angles a little more clearly - and the other image describes the differences between the parts (the first two are actually exactly the same). 

    The Models

    As always, here are links to the 3D Models:

    Snowflake - 2-part - One part which should be printed twice to fit together (and stands on it's own or hangs from a tree quite nicely.

    Snowflake - 3-part - Three parts (even though 2 of them are the same) included in this file to be printed at once. You can also hang each part as it's own decoration, or put them together to create a beautiful ornament or decoration for a shelf.


    The 3D Printed Snowman Ornament

    The positive results on the Christmas Tree decoration design inspired me to create additional holiday decoration models. The natural next step in designs which are vertically symmetrical seemed to be a snowman for sure. I experimented with it in the prior post - so this time I'll describe the whole 3D Snowman model.

    Design Goals

    I was aiming here for simplicity and ease in printing as well as just extending the simple design I already proved in the prior christmas tree model. That is, two mostly flat parts designed to easily fit together to form a three-dimensional look, and something easy to hang on a tree or stand up on a shelf.

    Snowman Design


    tiny version with filled parts
    The Snowman is simple - just 3 circles, reduced in size from bottom to top and put together at their tangents. I added a top hat for design detail, a hanging loop above the hat and a small tab at the base so that it can fit into a stand. The stand didn't have to be designed, as I just re-used the one from the prior Christmas Tree design.

    The first version had filled-in circles, but in the final design, I hollowed out each circle to make it lighter and slightly more elegant (who am I to judge)... Ok, I really did that to make it print super fast ;)

    To hollow out the circles, I used the "Shell" tool in 123D, but there are two tricks: 

    First, to get a thick enough shell, you might have to initially thicken the height of the object, as the modeling tool won't let you have a shell width that is greater than the height of the object (since it is also trying to shell the bottom). 

    Second, once you have the shell, to get rid of the bottom layer, you simply select that inner bottom face and "Pull" (actually, Push) that face in the negative direction beyond it's thickness and it will simply disappear.

    The Model

    Here is a link to the the model:



    The Snowman - Three parts in total - two snowman parts and a stand.


    Dec 13, 2015

    3D Printed Holiday Decorations & Ornaments

    There's something about the holidays that inspires me to make stuff. Maybe it's just another good excuse which comes with a theme and a reason to create things.

    What is that reason, you ask? Uh... because we really need more useless holiday decorations and tree ornaments.

    On a whim, I started drawing a simple tree in Autodesk 123D Design - and while I had very low expectations, the resulting model and basic idea that came out really was quite nice!

    Design Goal


    I was looking mostly to create a flat ornament - something that could be hung from a wreath or a tree.

    Within the first couple of minutes, once I had the basic shape down, I realized I could create two flat models and put them together at 90 degrees to create more of a 3D model - similar to something you could make out of cardboard.

    It seemed also very feasible to create something that could stand on its own, so I also decided that this design should have a stand or something at the base that would allow it to be stood on a mantle or desk.

    Modeling


    It was quite simple to sketch the basic tree. Using a common "stacked triangle" design, I did this with straight lines, freehand with the polyline tool, and sketched half the tree. Once that was done, I extruded it 2mm, duplicated that shape and flipped it 180 degrees and put the two halves close together (not touching) to form the tree.

    The gap between the two halves would be how I would fit two of these full tree objects together at 90 degrees to make a more 3Dimensional object in the end. I connected the top half of the tree halves with a simple 2mm high rectangle.

    Then I duplicated the whole tree shape with the rectangle, but in this duplicate, I shifted the rectangle to the bottom half so that this would exactly compliment the first object when the two were fit together at a right angle. The gap left between the tree halves was 2.7mm, which gave 0.7mm of clearance over the 2mm thickness of the objects to allow for printing imperfections.

    I created a simple loop at the top using a 2mm high cylinder of 4mm diameter and removed a 2mm cylinder from the center to make the hole from which the ornament could be hung.

    Adjustments to the model


    I made one simple adjustment to make the model print faster and to give it a lighter design which would allow for more crafty decorations to be added (say string, garland, maybe even 3D Doodling in multi-color). I made all the triangle shaped branches hollow, so the whole tree was more of an outline rather than a solid shape. I liked this adjustment more than the original and kept it.

    The Tree Stand


    I really wanted a final object which could stand on its own - so I created a small tree stand about 32mm in diameter - using a cut off section of a sphere. I removed material in an "X" shape to hold both halves of the tree bottom.

    I decided to plan for the future and leave small holes in the bottom of the tree stand and a wire channel along the bottom so that I could eventually add tree lights if I found the ambition for that ;)

    Expanding The Idea


    The same basic design also worked with a snowman - created with three circles and a top-hat ;) I only printed that one in a tiny size to test it so far, but you can be sure that this will lead to many more expansions and adjustments.

    The Model


    Get the model of this Tree at this link - and be sure to comment here if you have any ideas for improvement!