Tuesday, January 13, 2009

#3 - Choosing a RepRap Design

Reprap vs Repstrap

So you've looked at some of the pictures over @ http://www.reprap.org/ and decided that you are going to make a reprap. Fantastic!

Now just go down to your local hardware store and buy these parts:

Hmmm. The store manager might have trouble finding them. These parts are designed to be printed out on a RepRap machine, but the problem is that you don't have a RepRap to print them out! It's a bit of a chicken and the egg problem. So you can either:
1. Find someone willing to print out all the parts for you or
2. Build a machine that is capable of printing out those parts.

Any machine built with parts that itself cannot create is called a Repstrap. It is bootstrapping the process of building a reprap. There are currently 2 options for repstrap machine designs:

1. The McWire (based on the design by Tom Mcwire) is a Repstrap whose structure is composed of common pipe components.
2. The Acrylic Repstrap's structure is made from pieces of custom cut acrylic. These custom cuts could come from an online acrylic cutting service like Ponoko.
The acrylic repstrap is also known as a rep(st)rap. The reason for the parenthesis, is that one day we hope to be able to strap a laser to a reprap so that it can cut acrylic. When that day comes, the acrylic repstrap will be an acrylic reprap because it can then manufacture its own parts. Thus the "st" is in parenthesis in anticipation that it will be dropped.

As an aside, I would like to be one of the first ones to strap a laser to this sucker. I've already bought a fire extinguisher for experimentation ;-)


Differences in Repstraps
Since I am not the most social person in the world, and don't feel like meeting someone craigslist style at a mall to get reprap parts, I decided to build a repstrap. But which one?

Remember the components of a cnc?
Power supply
Electronics
Stepper Motors
Structure
Head


It turns out that the electronics (and the power supply), the motors, and the head can be used in all three styles of reprap. The only difference between reprap, repstrap and rep(st)rap is the structure. Hazaa! I like simplicity. So the cost difference between repraps is the structure.

Looks like i'll need to break down the Bill of Materials (BOM) for the McWire, and the Acrylic designs to see which one is cheaper. Though I must admit, the Acrylic one looks very sexy!












Monday, January 12, 2009

#2 - Components of a RepRap

The Heart of A CNC Machine
If you were to ask me what the most important part of a cnc machine is, I would have to say the motors. Everything else is not necessarily fluff, but is around arguably to soley support the motors.

A CNC machine is defined by the amount of degrees of freedom it has. A regular desktop printer is a 1-dimension cnc machine. If you've ever peered inside an inkjet printer, you can see the print head moving across the page as the page is fed through. There is one motor controling the exact movements of the print head.

A 2-dimension cnc machine is something that you might find in an industrial shop. If you've ever seen a show on how things are made, then you've probably seen a large robot laser cutting out precise shapes out of metal for car parts. For this type of machine the worker places a large square piece of material down on a platform, and the cutting head will move in two dimensions over the sheet of material, cutting as it moves along. One motor is used to control the cutting head in the right to left direction (called the x direction) and another motor is used for the back to front direction (called the y direction). Perhaps you've used an etch-o-sketch before. It's the same concept. Just pretend that your right hand is one motor, and your left hand is the other motor.
A 3-dimension cnc machine is, you guessed it, a machine that can move in 3 dimensions. In addition to the left to right, and back to front motion that the 2-d machine uses, it can also move the print head toward and away from the material. Or in the case of the RepRap, will move the stage away from the print head. And unless you haven't been following thus far, you'd know that the 3-d machine utilized 3 motors for all three directions of movement.

The Motor
I'm sure you've hooked up a toy motor to a battery before. It's neat, just connect one side of the motor to the positive pole of a battery, and the other side to the negative end. The axle turns, maybe powering a fan, or a remote control car. At best these motors are either on (forward/backward) or off. Now you probably could hook one of these motors up to the reprap head and if you wanted to go 3" to the right, you could turn it on for 2.46 seconds (a guess?). Of course, only the best guesses for the timing of these on/off motors, wouldn't be very accurate.

There is a different kind of motor: the Stepper Motor! A stepper motor would confuse anyone. It doesn't have just two wires, but anywhere from 4 to 8. And connecting these wires to batteries wouldn't actually do anything. The axle wouldn't turn, it would just sit there. Very unimpressive until you know how they actually work.

In a stepper motor, there are several different windings of wire, that when power is applied creates an electro magnet. There is a permanent magnet situated in the middle of the electromagnet windings. If the windings are turned on in the correct order, the axle (attached to the permanent magnet) will turn. In the figure on the right we will label the top winding (1), right winding (2), bottom winding (3) and left winding (4). When we attach a power source to winding 1 an electromagnet forms with the south pole pointed down. Since opposites attract, the permanent magnet's north pole is pulled toward the electromagnet. If winding 1 is then turned off and winding 2 is turned on, the permanent magnet will turn to the right, orienting its north pole to the electromagnet formed by winding two. The same thing will happen if we turn off winding 2 and turn on winding 3. The magnet will turn, orienting its north pole down because of the attraction to winding 3. And of course with winding 4, it's completely similar. If you had 4 switches that turned on and off the windings corresponding to the switch number, you may do this to turn the motor one full clockwise rotation.

Step 1: Turn On Switch 1
Step 2: Turn Off Switch 1
Step 3: Turn On Switch 2
Step 4: Turn Off Switch 2
Step 5: Turn On Switch 3
Step 6: Turn Off Switch 3
Step 7: Turn On Switch 4
Step 8: Turn Off Switch 4

It may seem like a hassle at first, but this verbose way to turn "on" the motor, has granted us exceptional control in controlling our motor. Many of today's stepper motors have excellent precision, down to around 400 steps per revolution. That means you could turn the axle less than a degree for each on/off of a winding.

If you want even more precision from your stepper motor, many of them allow "half-stepping." When two windings are on at once, the permanent magnet experiences equal pull by both of them and is pulled in between them. This allows for double precision. This process is shown below.


Everything else plays support
The component breakup of a reprap, or any cnc machine is:

Power Supply - Transfers power from the wall outlet/power source, to the electronics
Electronics - Microprocessor, and other circuitry to translate commands to move around the head
Stepper Motors (1 for each dimension of freedom) - Moves the head around with great precision
Structure - The platforms that holds the material being worked on, holds the head, and contains the electronics
Head - The device responsible for cutting, extruding, or manipulating the material being worked with

The structure can be seen clearly here. It is the metal rods joined by the white pieces. The electronics are strapped onto the structure in this reprap.

Friday, January 9, 2009

#1 - Intro and Resolution

Over the past couple years I keep coming across sites for CNC machines (computer numerical control). In short, it is a machine that can take coordinates from a computer and do "something" at those coordinates. Some cnc machines use a laser to cut out exact shapes from materials, some cnc machines can etch out a pc board for circuits, and some can even create 3d objects. I've always thought about how much I might be able to use one, but as the commercial models are $5k-$30k they've definitely been out of my grasp.

Though my desire for a personal cnc machine was solidified at Messiah College when I used one to etch out circuits for my senior project. It was the coolest thing ever. I designed the circuit in Multisim, transferred it to Ultiboard to lay out the physical components, and then took the pattern to the cnc. There Steve would help me throw in a bit of copper plated pcb and pop in a bit and watch it go to town. The machine would drill the holes for the through hole components, and then take off a thin layer of copper to form the traces. When it was done, I had a custom board that I could solder my parts to. Talk about rapid prototyping!

When I found a collaborative project entitled, "RepRap" (the Replicating Rapid-prototyper, reprap.org) that claimed to have plans to build self replicating cnc machines I was intrigued. Over the next few weeks I poked and prodded the site to see if the instructions were easy enough to follow, that the idea was solid enough to invest time and money in. The more I read, the more excited I got. Here was a community born out of a man's (Adrian Bowyer) 2005 conceptual paper to design a robot that could produce its own parts. Now I know what I thought when I heard that, "how can a robot build itself?" Well as of right now it can't. But a reprap is essentially a cnc machine that can "print" out about 60% of the components needed to build another reprap. It does this with what is essentially a glorified glue gun called a, "thermoplastic extruder." The reprap will build a part by laying down layers of molten plastic until a 3d part takes shape.

Since this RepRap is an ongoing collaborative effort by several diy'ers around the web, it is quite constantly changing. The goal of the project is to have everyone who wants to, have a rapid 3d printer sitting on their desk. I'd like to help out their effort, and in doing so create a bleeding edge piece of technology myself.

And that is my 2009 new years resolution.