Making a professional homebrew CNC mill, mechanical part, chapter 1


Milling machine with motors installed

Upgrading a mill to be automatic

The next project that we are going to make is retrofitting a milling machine.
Retrofitting means replacing all the manual elements in the machine for automatic ones. These consist of electric motors, electronic sensors, etc...
A milling machine that is controlled by a computer becomes a CNC device (Computer Numerically Controlled).
In this article we are introducing to the mechanical system of these devices.

Through some years of experience machining with a CNC device, i have seen how easily we can make incredible pieces in metal or more materials in little time, and how the difficulty of machining has moved from the machine itself to the computer programs that designs the pieces. These are the CAD-CAM programs.

A CNC device is for me, one of the most important machines we can have in the yard, and I think it's a must for the professional and the hobbyst.
With a CNC, we can machine all the pieces we need for the projects, fast and with sufficient quality.
With a non automated milling machine, some people are able to make complex things, but with much more work, phisical and mental, and the results usually are not on par with the CNC made pieces.
Also there are shops that can machine the pieces for you, but in the long term it's very expensive for our not deep pockets. There is also the time line, having a cnc in your bag makes you very fast and responsive.
So, I think it's clear that it's cool to have your own cnc machine!!
Our goal is to make a professional machine, this means that there will be no backlash, and it will be fast and reliable (this means we are going to develop a servo motor system with optical encoders).
To understand these terms go on reading...

The relevance of having no backlash

One of the most important things of a CNC machine, is that no axis can have backlash. Backlash is due to a little gap located between the screw and the nut. These makes the machine to vibrate, inducing wear to the tools, breaks and bad finishes in the machined pieces. The backlash also affects the maximum resolution we can get:


If we put a radial encoder (axis position sensor), every time that we change the motor direction, there is a fraction of time where the screw turns but the nuts doesn't move.
These gives measurement errors, and they grow with time because of wear, making difficult compensating the errors via computer software. A solution can be a lineal encoder, because it is directed positioned in the line of the nut movement, but these encoders are more expensive and are more difficult to place. Backlash behaves different upon the direction of cutting of the tool. In one direction the tool makes force in the same vector of the direction of the nut. In the other direction the tool makes the oposite force of the direction of the nut.

Cutting direction.

Usually it's better to work in oposition, in this manner the tool tends to escape from the nut, the finishes in this way are very good. In oposition, the tool pushes the piece helping the movement of the carriage, so it avoids forces to the machine. The tool, drops the shavings behind, so it doesn't recut them, giving longer life to the tools.
With any backlash, we can't work in oposition, the nut is not always pushed with the screw, giving lots of vibrations and bad finishes. This situation forces us to work in favor, where the force of the tool is the oposite of the force of the nut, so the screw always pushes the nut, but the effects are reversed of the commented in the oposite direction.

We can conclude that it's a must to have no backlash if we want good finishes and resolutions.

Designing a nut!!

The market has multiple solutions to reach the goal of the elimination of backlash in transmission systems. One of the most popular are ballscrews, but the cost is high, so we decided to design an alternative way.
Our solution must reach certain targets, like these:

  • We need no backlash
  • The nut must be dinamyc so when there is wear in the nut it must autoregulate to the new geometry
  • The nut can't have too much friction, because of the heat produced
  • The nut can't be too expensive

    After lot of thinking we designed a nut that scores all the goals, it consist of a trapecial threaded nut, in bronze, cutted by the half. Two springs pushes the two halfs together, and two screws pushes the springs. In this way the nut is always tightly coupled with the screw and the backlash dissapears, but in extreme situations it can close due to wear or open in front of irregularities that can be found in the screw.
    Our nut also have other important enhancements to be dinamyc but that is another story.

    Choosing the motor for the machine. Steppers or DC?

    Another important decission in the construction of a CNC, is the type of motors we well use.

    Stepper motors

    Most of homemade CNC's that I've seen use steppers. These motors make easy the electronics because the motor moves through discrete angles and this makes innecesary to develop a position system in the cnc.

    These kind of motors have a lot of nuisances, though. For example, the maximum torque are in low speeds, so it won't machine very fast, as long as we don't increase the size of the screw, losing resolution.
    Also they are bigger,heavier, and more expensive that their DC cousins.
    The most important problem from using steppers in a CNC device, is that we can't be sure that the motor doesn't miss a step in the machining process. In the moment CNC misses a step all the following work will be defective.

    DC servo motors

    The cheap alternative to the steppers, is using direct current motors (DC), these are cheaper, strong and small. The cons are that the electronics and the interface with the computer will be more complex, because we will need a closed loop position system to know where the tool is in any moment.

    More advanced motors

    Also there is an even better alternative, the use of a brushless motor, these motors are very good, they have lots of uniform torque in all the movement, and there are no touching parts so they are very silent. The cons are that the electronics is even more difficult than DC servo motors, because the electronics must know the exact position of the shaft and must feed all the motor coils independent.
    The edge technology nowadays are the linear motors, this is the technology used in the maglev train, the shaft moves in linear way with lots of acceleration and power and no friction, the electronics are almost the same as the DC brushless motors (we can consider a linear motor as a brushless motor unrolled).
    Also there is no need of gears and nuts, making the mechanical system easier.
    The problem is the very high price of these motors.

    Because all these reasons we decided to use the second solution, the DC motors, with planetary gears reductions and optical encoders. We will need to develop special electronics for this project with dedicated circuitry to help the computer with the position system of all the motors.

    Construction of the CNC machine

    In the following lines I'll show the general steps that we have made to do the retrofitting. The encoders and end sensors will be explained in a posterior article dedicated to the electronics of a cnc machine.

    In the following lines we'll explain the practical process of retrofitting our cheap milling machine.

    retrofit fresadora.

    The first I do is dismount the screws and nuts, so they can be replaced with ours.
    I machine the piece that will hold the motor, the encoders, the thrust bearings and the screw. The piece is made from technical aluminium, it has low weight, doesn't rust and is strong enough for the task it is encommended.

    Pieze that holds the system.

    To make the nut, i needed to first make a tool internal thread trapezoidal step 3. We do this tool with a steel-cobalt bar.

    Sharpening a steel threading tool.

    I mill the bronze nut, ensuring that everything is with the right measures.

    Milling the nut.

    As the nut is square, and I do not have a dish of four claws for the lathe, I have to develop a fixture, which will allow me to pick it up in the lathe. I make some drills for threading to M6, where I will screw the machining tooling.

    Threading M6 to be catched by the lathe.

    The fixture is a round aluminum bar, we machine and drill it. Then we measure the fixture so as the drills are in line with the nut ones, so when it will be turning, will be perfectly aligned with the bolt.

    Measuring the fixture.

    We mount the fixture over the nut and tight it hard.

    Mounting the fixture.

    I fix the nut in the lathe and machine it so as the thread is 90 degrees with the internal side.

    Machinig the nut.

    Turning.

    Before threading, we must put the right gears in the lathe, so as it will have a step 3 advance in the thread.

    changing gears.

    We machine the thread with the lathe carefully, so as we don't crash the head with the carrier, and giving little passes to avoid that the theading tool bends.

    Making the nut's threading.

    Finally our tool is not hard enough to do perfect threads so must make a harder tool.
    We think in tungsten cutters tips that are much harder than the steel ones. We insert this tips in a carrier bar, and then we pick this with the lathe.

    bar with cutter picked in the lathe.

    We machine it so it will fit in the threading hole of the nut.

    Machining the carrier bar.

    In the machined part, we make two drills, one for the cutting tip and the other to fit a little screw that will hold the tip.

    Threading the carrier bar.

    I put the tungsten tip and we sharp the tooltip.

    sharping the tool.

    I ensure that it's correctly made with the threading template.

    Measuring out threading tip.

    We machine another square broze part, identical to the last one. We make the trapezial thread with our new threading tool.

    Threading with the tungsten tool.

    The results are much better, because the tool has not bend while making the threads.

    Now we cut the nut in a half, and put the springs. This will cause the thread stick with the pressure so that there is no game and always be tight with the threaded shaft.

    Nut cut.

    We mount the nut in the spindle and we see that it behaves very good, with no game (no backlash) and softly.

    nut mounted in the spindle.

    We machine the spindle, where it will be located the bearings and the motor coupling.

    Machining the spindle.

    Turning.

    Now we will make a part to couple the spindle with the motor shaft, we will make a Cardan joint, so as we don't must to have a perfectly aligned shaft-spindle.

    Machining the cardan joint.

    We assembly the system and we see that everything fits well.

    System mounted.

    System mounted with the nut.

    We mount the system in the milling machine, we switch it on and see that all is working great.mecanicemos.

    Y axis ready.

    We make the X axis the same way.

    X axis.

    The Z axis is similar...

    Z axis.

    Wou! That's all for now. In the next chapter we will enhance some parts.
    Having a CNC makes everything easier and the finishing will be much better. Also we must describe the electronics and the computer programs.
    For now we tell you that the electronics will be a PCI card with a FPGA that will control all the motors and optical encoders in the fastest way with high high resolutions and high high speeds.
    Also it will control an automatic centering tool, automatic control of cooling lubricants, final path sensors, etc..
    The computer program we are going to use is the Linux CNC running in a Real Time Linux environment.

    We'll see.

    Greets

    Ivan Reches
    Eugenio Sobrino