Archive for the ‘Projects’ Category

Lego CAD

Saturday, October 7th, 2017

My first introduction to Lego CAD was an old program I used as a child on Mac OS 7 called Gryphon Bricks. While interesting, it didn’t captivate me very much. I was old enough that I was more interested in the Technic type of Lego set, and there were limitations to the program that I found off-putting.

Since then, I haven’t delved into the world of Lego CAD until this month. I bumped into Bricksmith while searching for something, and decided to download it. Brick Smith is an unofficial Lego CAD program. I read about it  years ago, but never gave it a chance. I downloaded the newest version and was blown away. It uses an extensive library of Lego pieces (from ldraw.org) which include pretty much every Lego piece I’ve ever seen as well as the various prints for these pieces dating all the way back to the 70’s.

As an exercise, I built a T-16 Skyhopper. It went together pretty easily. Bricksmith has some convenient features, as well as some limitations. Everything is grid aligned, and you can move and orient pieces along these divisions. There doesn’t appear to be any concept of mating and piece intersection (which could be seen as a good thing or a bad thing). There is certainly lots of freedom. Once you pick a part, you place it, and you can move it using the arrow keys and rotate it, and select a color. You can copy and paste pieces too.

I’m not enamored with the coloring process. In this case, the problem is that there are so many colors to choose from, that finding them can be tedious.

What I found really neat was the concept of grouping. The pieces can be grouped into steps. Once you complete your model, you can then print the steps out. Step reordering and modification seemed pretty straightforward too.

As a whole, this program is pretty amazing.

While playing with Bricksmith, I spent some time googling to find out more about it, and ran into Lego Digital Designer (LDD), the official Lego CAD system. I somehow had never heard of it even though it was introduced in 2004, so I decided to give it a whirl as well. I played around doing some free builds, and then built a MicroFighter X-Wing.

The experience was very different from Brick Smith. At first, I was annoyed that all the color variation of pieces are displayed as separate pieces int he parts bin, but it actually made getting the correct pieces faster and easier. The other thing I love is that pieces automatically mate to each other. By dragging the piece around with the mouse, the piece automatically snaps to surfaces that are appropriate for mating. This can be faster. Unfortunately, I haven’t found a way of moving a piece directly with the arrows as one can do in Bricksmith. Generally, the auto snapping works well, and if you can’t get it to snap right where you want, usually rotating the camera can do the trick.

The program also knows when two pieces can hinge. The hinge tool is very impressive! After getting comfortable with that, I decided to do a bigger build to put LDD through it’s paces.

The Millennium Falcon. This is one of the larger Lego sets, at over 5,000 pieces. It is no longer sold, and as such, I never had the opportunity to build it in real life. This seemed like a fun way to dive in and see how the program handled. I had the PDF instructions and LDD on screen side by side.

I began constructing this set investing bits of time here and there. Along the way, I fought with some apparent limitations of the program (or it’s user).

However, I did finally complete the model within about a week’s time.

The automatic mating of pieces is a huge time saver when it works. Unfortunately, when there is an intersection problem, the selected pieces are transparent indicating that they can’t be placed. I wish it would highlight the intersection problems in red as it can be difficult to discern where problem areas are. When there are alignment issues, the program is very strict. There are no integrated physics, so hinged pieces don’t fall into place, but stay wherever they are placed. All of the exterior sheets of the Falcon had to be hand adjusted in place to make it fit together.

In some cases, the strict alignment prevented me from following the instruction precisely. In the example above, the hinge pieces are not allowed to bend beyond 90 degrees. In real life, you can forcibly bend them a bit further allowing this configuration shown in the instructions on the left. On the right, you can see that the holes are just barely misaligned, preventing the axle from being inserted.

In other case, I was probably too hasty in finding the proper alignment for elements, and improvised modifications to the model. In the above image, you will note that the angled wing shapes had to be shortened because they were interfering with the adjoining side. This could probably have been resolved by manipulating all the joint angles.

Overall, the tool seems very powerful, and fun. LDD is easy enough to use, that my seven year old can build things on his own, for example, this small Millennium Falcon. The hinging tool and part placement is intuitive enough that he only needed to observe me using the tools a few times to get it, and then be able to do it on his own.

One thing to note though is that some of the part categorization in LDD seems illogical (or at least, not how I would do it). There is a category that appears to be the catch-all for hard-to-classify pieces, and I find myself sifting through there quite often for specific things. Also, one category with an icon of a small wing is in fact home to flat angled, round, and curved pieces, and not just wing shapes which I find bewildering. They were kind enough to include a search feature that lets you filter by part number, size or description. I have had multiple instances where searching by part number provided by the instruction yields no result, yet I could find the part by visual searching through each category.

It’s also been fun using these programs to be able to build sets that are no longer available. While LDD has an easy-to-use UI, and fancy mating and hinge logic, Bricksmith has a superior part catalogue and flexibility for piece placement.

Chocolate Candy Cups

Thursday, September 7th, 2017

As a young person, I was quite enamored with Reese’s peanut butter cups. Those were one of my favorite candies to eat during the holidays. It’s now been over 5 years since I have tasted them. This isn’t due to amazing will power and good dieting, it’s due to the fact that those candies are lethal to my son. Yet, I still long for those treats.

I decided to make my own that would be safe for my family. I figured I’d be able to find a candy mold for just such a project, but was unable to find any. I was able to make an approximation of a Reese’s peanut butter cup by using cup cake holders, but I still felt that having the correct type of mold would yield better results.

I devised a plan for how I would do it, and then modeled the geometry in Autocad Inventor. The idea is to model the geometry I want (a positive) and use a CNC machine to carve this geometry. From the positive CNC generated shape, I will create a negative mold using a food-grade silicone rubber. Then, finally, I can make the chocolate treats using the silicone mold.

Modeling

Modeling the shape was pretty easy. I figured out the basic dimensions I wanted and modeled accordingly. The final shape should be about 2 inches in diameter and .5 inches tall. Even though I have no intention of wrapping these in paper, I did some careful math to make sure the ridges were appropriately shaped to allow a circular piece of wrapping to be applied. This was done by making sure the perimeter of the ridged top was equal to the circumference of a circle whose radius is equal to the bottom’s radius plus the length of the side.

The goal is to have a void in the chocolate where anything can be put inside.

CNCing

With the model looking okay, I CNCed the geometry out of some scrap hardwood left over from another project.

After CNCing, I removed the positive geometry, and sanded and filled the wood as best I could.

I then put 4 of the positive carvings in a void made out of particle board. Once glued, the whole thing was coated with black enamel to fill the gaps and hopefully make the silicone not stick.

Casting

I ordered a small supply of silicone casting (Smooth-Sil 945) from Smooth-On. This particular product is food-safe, and is activated using a 50:50 mixture of A and B parts, so it’s really easy to use.

Using some simple geometry, I figured out exactly how much material I would need. I poured the correct amounts into disposable bowls and mixed thoroughly, then poured the material into my mold. 6 hours later, I was able to pull the mold out. It turned out very well!

Chocolate

The next step was to take chocolate, and lightly melt it. I used Guittard chocolate, which is nut-safe. I tried different types, but liked the more milky flavors the best (Milk Chocolate 30% Cacoa). Not being a chocolateer, I have a bit to learn. From what I understand, the key to successfully making chocolate treats is to temper the chocolate by melting it at about 115 degrees, then letting it cool slowly at a temperature of 75 degrees. I could be wrong, but it did seem to work.

I was left with things that look like Reese’s, but have an opening and a void on the bottom!

Soy Butter

The delicious insides is a combination of Wowbutter brand soy butter, butter, brown sugar, and powdered sugar. The butter and soy butter are heated, then sugars are added, and then cooled.

It ends up as a dough that isn’t as sticky as the soy butter began. This allows it to be put into the chocolate shells rather easily.

Finishing it up

Now upside-down, additional chocolate is poured to cover the opening and seal in the delicious center.

Conclusion

The result was very tasty, and completely satisfactory. It’s time intensive. The chocolate takes a LONG time to harden. 4-6 hours at room temperature. This can be sped up by placing the chocolate int he refrigerator or the freezer, but cooling the chocolate too quickly can have negative results.

The Reese’s company (Mars) clearly doesn’t make their cups in this manner. Since the paper liner appears to be the actual mold for the chocolate, I suspect they do it in the opposite fashion. They pour the chocolate into the cup with a removable core that leaves a void when removed. The insides get inserted via extrusion, and then the cup gets topped off with chocolate and packaged once solidified. Empty cups that popup online from time to time seem to confirm this theory.

No matter what, I am happy with the result, and my son can now know of the exquisiteness that is a Reese’s cup.

Bed Frame

Thursday, January 12th, 2017

It recently became apparent that my son was too big for his toddler bed. As we searched for a twin bed at popular stores for children, I found that beds are grossly over priced. The bed my wife liked was over $600, not including the mattress!

We decided that I could make a better quality bed for much less than that, so I did!

Planning

I started out by drawing some hand sketches with rough measurements. I went through the process a few times, each time refining the plan so that it was more complete, and had more accurate dimensions. I also tried to simplify the material selection so there was as little variety in the lumber required as possible.

Bed Plans 2Bed Plans 1

We chose to paint the bed, rather than stain it. This allowed me to choose multiple types of woods which helped cut costs. Here is what was purchased:

Item Usage Quantity Item Price Total Price
4×4, 16ft (Redwood) Bed Posts 2 $13.97  $27.94
1×6, 24 ft Lower Bed Rails 3 $5.91  $17.73
1×4, 8 ft (Spruce) Head/foot board upper rail 1 $1.84  $1.84
1×1, 16ft (Poplar) Mattress Flange 2 $3.50 $7.00
4×8 3/4″ Plywood Mattress support 1 $38.27 $38.27
4×8 1/8″ Plywood Head/foot board material 1 $7.50 $7.50
1″ Slats (molding) Head/foot board decoration 40 Feet $.36 $14.45
Zinsser Primer/Sealer Prime 1 Gallon $19.98 $19.98
Blue Semi Gloss Paint Paint 1 Gallon $26.97 $26.97
Total Cost: $161.68

Total cost after tax: $175.90

Bed Posts

BedPostsThe bedposts are made from 4x4s meant for framing, which come in 8 foot lengths. The posts for the headboard are 4 feet tall, and the posts for the foot board are about 3 feet tall, so there was plenty of wood to get the posts from the 2 lengths that were purchased.

Obviously, the 4×4’s are way too fat for posts on a child’s bed, so I cut them down to 2.7 x 2.7 using a band saw. Next, I sanded them down to 2.5 x 2.5 by taking off .05 inches on each side using a reciprocating drum sander.

The whole bed was designed to be put together using mortise and tenon joints. The next thing I had to do is put in the mortises. For this, I used a mortise and tenon jig that my dad had. I used the largest setting for all of the mortise and tenons I had to do, which made set up pretty easy since I only had to do it once.

With the mortises all cut, I then needed to add a slot for the 1/8″ sheet of wood that will serve as the head and foot boards. I set up the router with the 1/8″ bit, and a depth of .25 inches, and centered it on the mortises, and made made a groove between the upper and lower mortises on all four posts.

Next, I took the hard edge off the corners by running them each through the router, using a small 1/8 inch quarter round bit.

I designed the bed posts to have a decorative groove near the top. The posts will protrude above the upper rail 2.5 inches, so that the protrusion is a perfect, symmetrical cube of material. I used the golden ratio to decide where to put the groove. The groove was made with the table saw, and is just a single kirf width.

Rails

BedRailsThe lower rails for the bed frame are made from the 1×6 planks of wood, and the upper rails for the head and foot boards are made from the 1×4 planks of wood.

The rails will be supported primarily by the mortise and tenons. I set the tenon jig to cut to a depth of 1 inch, so for the final measurement of the wood, one needs to add 2 inches to account for the tenon.

With the rails all cut to length, and complete with tenons, I routed the corners with the same 1/8″ quarter round that was used on the bed posts.

The shorter of the rails which will be used on the head and foot board require a groove for the head and foot board material. I used the same 1/8″ bit that was used on the posts, and added the groove on one side of all 4 rails at a depth of .25 inches.

Finally, some light sanding, and they are ready for paint.

Head and Foot Boards

The head and foot boards are made up of a 1/8 inch sheet of wood that is inset into the bedposts and rails. This will then be covered with decorative slats.

All I had to do was measure the opening, and add 1/2 an inch to account for the groves in which the wood will be set.

Once cut down to the proper sizes, the head board and foot boards can be assembled. This is done by placing one post down on the table with the mortises face up. The upper and lower rails receive some glue on the tenons which are then inserted to the mortises of the posts, and lightly hammered into place.

IMG_3719Glue is applied to the exposed grooves. The headboard material is then slid down from the top until it is seated in the groove on the post. Finally, glue is applied to the other end of the rail’s tenons, as well as the end of the headboard sheet, and the other post is tapped into place. The whole thing is clamped for a few hours until the completed headboard is dry.

IMG_3720I followed this same procedure for the foot board.

IMG_3722Lastly, slats are added. I took the 1 x 1/4 material and cut it down to the proper length to match the height of the inset area on the headboard. I also used extra material to make spacing jigs to help me distribute the slats evenly across the head and foot boards. They were glued in place. In addition to adding visual interest, the slats add a significant amount of stiffness to the otherwise flimsy 1/4″ material.

Painting

IMG_4014The whole bed was dry-fit together and painted all at once. I masked off a strip on the inner side of the long rails where I planned to put in the flanges that will support the mattress board.

IMG_4016I applied one coat of primer using a gravity fed spraying apparatus for the air compressor. This ended up taking forever due to the small amount of paint that the nozzle delivered. It took about an hour, but was reasonably evenly covered.

IMG_4021I let the primer dry completely, and then began applying coats of the blue paint using an airless sprayer. The airless sprayer delivered a much thicker coat, and after 3-4 coats of paint, I had used the whole gallon! It looked pretty good though.

Final Touches

Next, I cut the 1×1″ poplar to length, then glued and screwed it to the interior side of the long rails that had been masked off. This will serve as the flange upon which the mattress board will sit, and carry all the weight.

The very last detail before assembly is to drill the holes in the rails that will hold the headboard and foot board together. I used an angled countersink jig to put 2 shallow-angled holes on either end of both rails that will allow screws to hold it tightly to the posts.

With all the pieces reader to go, the bed frame could be assembled. The rails were lightly hammered into the head board posts, then screwed in place.

The foot board posts are then hammered into place on the rails and screwed in.

The mattress board was then cut to snugly fit between the rails, and then laid on top of the flange with the mattress placed on top.

Just add a pillow and some sheets, and the bed is completely finished!

Results

IMG_0238_e

The bed turned out great. It is super-sturdy. No rocking or creaking. The price was also exceptional. The paint has a few minor blemishes due to my inexperience with painting, but looks pretty good overall.

My son loves his new bed, and it’s sturdy enough for all the antics of a toddler.