R
each out and touch the tip of your finger to the tip of your nose. No problem! Try it again with your eyes closed and it's still simple: you never miss. Even in clumsy people like me, the brain mostly has control of the body. In athletes, artists, ballet dancers, and surgeons, "control" means absolute precision. Now imagine trying to build a robot with the same degree of mechanical excellence, using gears, wheels, and levers to accomplish what the body does with muscle and bone. It's a much taller order, which makes the human body seem even more impressive. One of the big difficulties of making well-behaved robots is that simple electric motors are impossible to move precisely. That's why a lot of robots swap ordinary motors for what are called stepper motors (or, sometimes, stepping motors), which can turn through "steps"—well-defined angles—under precise electronic control. What are they are how do they work? Let's take a closer look!
Photo: A typical DC stepper motor. Note that there are multiple leads coming out of it (unlike with a simple DC motor, which has only two leads). Photo courtesy of MakerBot Industries published on Flickr under a Creative Commons Licence.
What's wrong with ordinary electric motors?
An ordinary electric motor is based on a simple bit of magnet science we all learn at school: unlike poles attract, like poles repel. Here's how a basic motor works. You take a ring-shaped magnet, put a coil of wire inside it, and feed electricity through the wire. The wire becomes a temporary magnet powered by electricity—an electromagnet, in other words—and the magnetic field it creates repels the field from the permanent magnet that surrounds it. By switching the current on and off with a clever little device called a commutator, and some electrical contacts called brushes, you can make the wire rotate in the same direction indefinitely. Feed electricity (electrical energy) into it and you get motion (mechanical energy) back out. That's the essence of an ordinary motor that uses DC (direct current) electricity. If you're less than sure how a motor like this works, you might want to check out our introductory article about electric motors.
Photo: The powerful electric motor from an old lawn mower. The slots at the front are part of the commutator, which is an ingenious device that reverses the electric current and keeps the rotor (the rotating, central part of the motor) spinning in the same direction.
We can also make motors that work using AC (alternating current) instead of DC. Although they're engineered in a radically different way, they're still based on "like poles repel, unlike poles attract": the electricity that powers the motor creates magnetic attraction and repulsion, and a force that makes the motor spin. You'll find more about AC motors—which are also called induction motors—in our article on AC induction motors.
Whether they're powered by DC or AC, ordinary motors are the hidden electric muscles that power modern life: you'll find them in all kinds of gadgets and gizmos in the world around you, from food blenders and refrigerators to vacuum cleaners and electric trains. But in all these machines, the rotors of their motors spin continuously. When you vacuum a carpet or commute to work by subway, the motors that are working for you turn around an arbitrary number of times: there's no precise control over how many times they rotate and what angle they spin through—and it really doesn't matter.
Now suppose you want to make an electric-powered robot arm that turns through an exact angle (an exact number of degrees) so it can successfully grab a cup ofcoffee off your desk. You could fit an electric motor onto a wooden or plastic lever to make it turn when you switch on the power, and you could flick the power on very briefly so the arm sweeps through a certain angle and then stops. The trouble is, there's no way of knowing how much of an angle the motor (or the arm) will move: it depends on everything from the power of the motor and the electric current driving it to the weight of the arm and even which way the wind is blowing. A motor that moves in such an arbitrary way is no use whatever in robotics: your coffee will surely end up on the floor! That's where a stepper motor comes in: it's a special kind of DC motor designed so you can make it rotate through a precise angle, instead of spinning round by a random amount.
Photo: Motor mouth: This "emotional" robot has a face that can show different expressions. The various parts are operated by stepper motors, precisely controlled by electronic circuits.
What exactly is a stepper motor?
Stepper motors are different from ordinary DC motors in at least four important ways.
The first difference you notice is that they have no brushes or commutator (the parts of a DC motor that reverse the electrical current and keep the rotor—the rotating part of a motor—constantly turning in the same direction). In other words, stepper motors are examples of what we call brushless motors. (You'll also find brushless motors in many electric vehicles, hidden away in the wheel hubs; used in that way, they're called hub motors.)
The second major difference is in what rotates. Remember that in a basic DC motor, there is an outer permanent magnet or magnets that stays static, known as the stator, and an inner coil or coils of wire that rotates inside it, which is the rotor. In a brushless hub-motor, the coils of wire are static in the center and the permanent magnets spin around them on the outside. A stepper motor is different again. This time, the permanent magnets are on the inside and rotate (making up the rotor), while the coils are on the outside and stay static (making up the stator).
The third big difference between an ordinary DC motor and a stepper motor is in the design of the stator and the rotor. Instead of one large magnet on the outside (the stator) and one large coil rotating inside it (the rotor), a stepper motor has an inner magnet effectively divided up into many separate sections, which look like teeth on a gear wheel. The outer coils have corresponding teeth that provide magnetic impulses, attracting, repelling, and making the teeth of the inner wheel rotate by small steps. This will become clear in a moment when we look at some pictures.
The final difference is that a stepper motor can stay still, in a certain position, once it's rotated through a particular angle. That's obviously crucially important if you want a motor to power something like a robot arm, which might have to rotate a certain amount and then remain in precisely that spot while another part of the robot does something else. This feature is sometimes called holding torque(torque is the rotary force something has, so "holding torque" simply means a stepping motor's ability to stay still).
Photo: The philosophy of steps: we think of steps as a way to climb up, but they're also a way to break a fixed distance into equal-sized pieces so we get more control over our movements. We can think of them as turning vague, variable, analogamounts of distance into specific, discrete, digital chunks.
How does a stepper motor work?
The basic construction
I'm going to simplify stepper motors here to illustrate the simple, central idea: the (inside) rotor of a stepper motor turns by small, discrete amounts (steps) because the (outside) stator applies magnetic impulses that pull and push it around.
The rotor
The rotor itself is made from two discs, a little like gears, one of which is a magnetic north pole (red) and the other is a south pole (blue). When we put the two discs back to back, we get north and south pole teeth alternating around the edge. If you find that hard to picture, imagine your left hand is a magnetic north pole and is colored red, while your right hand is a magnetic south pole and colored blue. If you put one hand on top of the other so the fingers of one hand alternate with the fingers of the other, then look down, you'll see alternating north and south pole "teeth" (the fingers) around the edge. That's effectively what we have in the rotor of a stepper motor.
Photo: A stepper motor's rotor is made from two discs placed together so we get a series of alternating north and south poles. I've simulated the idea by coloring my hands and putting them on top of one another so the fingers alternate when viewed from above.
The stator
Around the edge of the rotor, we have the stator: in this example, four electromagnets that can be switched on and off individually. Generally the electromagnets in a stepper motor work in pairs, with each opposing pair of magnets switching on together to make a north pole at the same time, followed by the magnets at right angles, which also work together. I prefer to draw it a slightly different way, which I think is simpler and easier to understand. Exactly what switches on when depends on how many rotor teeth (steps) there are and how many electromagnet coils surround them: the geometry and alignment of a stepper motor has to be just right to make the rotor turn.
How it rotates
- The right electromagnet is energized and becomes a north pole (red) and the left electromagnet becomes a south pole (blue). This pulls the rotor around by one step so a blue tooth on the rotor snaps toward the right electromagnet and a red tooth snaps toward the left electromagnet.
- Now the bottom electromagnet becomes a north pole, the top magnet becomes a south pole, and the two horizontal magnets are switched off. Again, the teeth of the rotor are pulled around by one step.
- The vertical magnets are now switched off and the horizontal magnets are switched on again, but with the opposite polarity (pattern of magnetism) that they had before. The teeth of the rotor advance by one more step.
- Finally, the vertical magnets are switched on again, in the opposite polarity to before, and the horizontal magnets are switched off. The rotor mores around one more step. The whole cycle then repeats.
Remember that a stepper motor isn't really designed to keep spinning around and around: by sending as many or as few impulses to the outer electromagnets as necessary, we can make the rotor turn through a certain number of steps (and, therefore, by a precise angle). We can make it rotate the opposite way by reversing the electric current.
Types of stepper motors
This is just a simple overview of stepper motors and I won't go into details about all the numerous different varieties you'll find. A couple of technical terms that are worth knowing crop up often in the literature (and in web pages) about stepper motors, often without any explanation.
Poles
The motor I've illustrated here has a rotor magnet divided into lots of alternating north and south poles, so this design is known as a multi-pole motor. The more poles, the shorter the distance the motor rotates on each step and the more precisely it can be controlled.
Phases
In a motor, a "phase" usually means one or two opposing electromagnets that operate alternately (out of sync with one another or out of phase, if you prefer). The motor I've illustrated up above has two phases (two pairs of electromagnets, so four electromagnets in total, arranged at 90 degrees). In a three-phase stepper motor, you might have three electromagnets arranged at an angle of 120 degrees (so three individual electromagnets, although a three-phase motor could also have three pairs arranged 60 degrees apart). A four-phase motor has eight electromagnets arranged in four pairs, with each one separated from the next by 45 degrees.
Advantages and disadvantages of stepper motors
The reason for using a stepper motor is to achieve precise control: you can make it move through a defined angle. But there are drawbacks too. Stepper motors can sometimes be quite jerky, because they start and stop each step with a sudden impulse, which isn't always what you want if you're trying to build a precision machine. An alternative to using a stepper motor is to use a servo motor: a motor with a built-in feedback mechanism. Typically, a servo motor has what's called an optical encoder attached to its rotor. In plain English, that's a black-and-white patterned disc that moves in front of something like a photoelectric cell. As the disc turns, the cell detects the black and white pattern and an electronic circuit figures out from this exactly how much the disc has rotated. Using this feedback, the motor can be controlled more smoothly (and typically much more precisely) than a simple stepper motor. Servo motors are much more sophisticated in design than stepper motors and tend to be more expensive, which is why steppers are often used instead.
Photo: Inside an inkjet printer, a very common application of stepper motors. You can see two stepper motors here: the top one moves the ink cartridge and print head from left to right by turning the black and brown belt, while the bottom one spins the white gears, which turn the paper rollers and make the paper feed through.
No comments:
Post a Comment