Computer Music II: Sound Art |
| Music G6611 |
| Tuesday 5:10-8pm |
| Spring 2006 |
| hello. |
| Professor: Douglas Repetto [douglas at music columbia edu] |
| TA: Daniel Iglesia [dei2101 at columbia edu] |
| hello. |
| Our Motto: "Why, then how." |
| hello. |
| syllabus | schedule |
Today we'll take a look at several types of motors. We'll talk about the contexts in which each is useful, and we'll hook each one up to a circuit/mechanism of some sort to see it in action. I'm not going to go into detail about the motors here; there's lots of info about motors on the web, so do some quick searches for more info.
We'll focus on inexpensive, readily available motors that you're likely to either remove from old equipment or purchase surplus. There are many different kinds of more exotic motors, but they tend to be very expensive and difficult to obtain.
We'll also make a simple circuit with a 555 timer and use it to control a DC motor. Some of you have been having trouble using schematic diagrams, so this will be good practice. We'll hook up the 555 according to one of the sample circuits in the 555 datasheet: http://www.national.com/pf/LM/LM555.html
There are various types of AC motors. Some of them are synced to the AC source (synchronous), others are variable speed (induction). In general, AC motors are good if you just need something to spin continuously at a fixed rate.
Although there are many variables, the ones you encounter will mostly share some of the following traits:
The good:
powerful; reliable; can run forever; plug-n-play; ubiquitous (fans, power tools, household appliances)The bad:
control from electronics is possible, but less common; can be dangerous (wall current!); tend to be rather large/heavy
Hookup:
AC motors generally just plug into the wall. Often they have a "start" or "run" capacitor that needs to be hooked up to the AC cable. The motor will likely already have the capacitor installed or will come with installation instructions. The capacitor is used to give the motor extra torque at startup to overcome its initial inertia.Identification:
Most AC motors will have two wires for power, and will have a label somewhere specifying the expected voltage and frequency.
Small, simple DC motors (a made up name) are the little can motors found in many consumer electonics
products. Cell phone vibrators, mechanized toys, CD tray ejectors, etc. all contain little DC motors.
To use them you simply hook up an appropriate DC voltage source (usually 3-12v) to the two terminals.
They tend to spin very quickly, which maybe be good or bad, depending on your application. Their
speed can be controlled (within a fairly small range) by varying the source voltage, but
performance (torque) will suffer at lower voltages.
The good:
Ubiquitious; inexpensive; easy to use; safe.The bad:
Not very powerful; stall easily; cheaply made; small, thin shaft can be difficult to work with; burn outo easily.Hookup:
Just connect the +/- of your powersupply/battery to the terminals of the motor. Reversing polarity will reverse the direction of the motor.Identification:
Generally a small steel can with two thin hookup wires and a thin shaft. May have voltage information or manufacturer data on the side of the can.
A DC gear motor is like a bigger, more powerful version of the small, simple DC motor, but with a set of gears attached to the shaft and built into the motor housing. You can usually clearly see the two parts (motor, gear head) of the motor, the gearhead being the part where the shaft extends, the motor the part where the power is connected. The purpose of the gearhead is to reduce the speed and increase the torque of the raw DC motor.
DC gear motors are very often used in robotics and other control situations where you need a smallish motor with lots of power. The speed is generally controlled via PWM of the fixed input voltage. Input voltages range from 3-30v or so. Generally, motors with higher input voltages will give you more torque, although the specifics of the gearhead come into play as well. A DC gearhead motor will have an RPM specified, which is the final speed of the shaft after running through the geartrain. You don't generally know (or care about) the actualy speed of the raw motor. The voltage specification of the motor doesn't tell you anything about the speed of the motor, since the final speed is determined by the details of the geartrain. Specified max speeds can range from < 1RPM to several hundred RPM. Using PWM you can vary the speed from 0RPM to the specified (max) RPM.
The good:
Powerful; available in many speed ranges; simple hookup; easily available via surplus; good power/size ratio; easy to control via PWM.The bad:
Can be rather expensive, especially new; geartrain can be noisy; gears can go bad, especially in used/surplus (removed from equipment) motors;Hookup:
Just connect the +/- of your powersupply/battery to the terminals of the motor. Reversing polarity will reverse the direction of the motor.Identification:
Obvious two part body (motor and geartrain), two hookup wires. Sometimes a label with voltage/RPM info will be on the body.
Hobby servo motors are commonly used in small remote control vehicles like RC planes, boats, etc. They can be very small and light and are reasonably powerful for their size. They come in a variety of sizes, from very tiny to 1/4 scale. A hobby servo is essentially a small DC gearhead motor with built-in control circuitry.
In their original form they're used to move a shaft to a particular position in order to move a flap on a plane's wing, change a rudder position, etc. When used in this way they can not rotate 360 degrees; they tend to have a range of 180-270 degrees. The position of the shaft is set via a PWM signal; the position of the shaft changes with the width of the PWM signal. The PWM control signal is separate from the power supply, which is held constant, and is usually around 6v.
Hobby servos are often modified for 360 degree rotation by modifying their internal electronics. The process is simple and is described on innumerable robotics resources. When modified in this manner the motor can no longer be set to a particular position. Instead the same PWM control signal is used to cause the motor to go forwards or backwards at different speeds. This is often useful for small robotics platforms, although often a DC gearhead motor makes more sense. The benefit of using a modified servo is that you don't need an additional driver circuit; you just connect power to the motor and then feed it a PWM control signal directly from your microcontroller.
Hobby servos are usually purchased new, unless you have acess to lots of broken RC toys. They can be rather expensive, especially for high quality servos. "High quality" usually means they have stronger (metal) gears rather than cheapo plastic ones.
The good:
Can be very small; easy to control directly from a microcontroller; easy to position fairly precisely; come with a variety of shaft couplers for simple mechanical hookup; standardized sizes/body configurations, making mounting easier.The bad:
Relatively expensive; gears often wear down under constant usage; make a loud whirring noise as they move; PWM to position relationship not consistent from motor to motor (especially between brands/sizes).The hookup:
Hobby servos have three wires: +, ground, control. The position/color of the wires is not standardized, so you need to have info specific to the servo you're using before hooking it up. The + wire goes to your motor power supply (probably 6v), the ground to ground, and the control wire goes to the PWM signal coming from your microcontroller. Most hobby servos come with a three position socket attached, making it easy to plug/unplug the motor from a standard 3 pin SIP header.Identification:
Almost always a boxy shape with three hookup wires ending in a 3pin socket.
N.B.: Don't confuse the hobby servo with an industrial servo motor. Outside of hobbyland, a "servo motor" is a generic term for a motor with a built-in feedback system of one sort or another. The motors described above are almost always specifically referred to as "hobby servos" to differentiate them from industrial servo motors. If you're on a surplus site and they're selling "servo motors", they're probably _not_ talking about hobby servos.
Unlike most other motors, a stepper motor's shaft doesn't rotate continuously; instead, it turns in small increments (steps). The stepping action makes it easy to rotate the shaft by a precise and repeatable amount, something that can be difficult with other types of motors. Many consumer electronics/computer products, like printers, scanners, and fax machines have stepper motors in them. In those products the stepper motor is generally used to precisely position a print/scan head or to move a sheet of paper into position. In robotics stepper motors are often used to precisely orient parts of the mechanism.
Controlling a stepper motor is more complex than controlling a regular DC motor. Instead of just giving power to the motor to make it spin you have to give power to different parts of the motor in a specific sequence. The specifics of the sequence determine the stepping behavior (forwards, backwards, 1/2 step at a time, etc.) The trade off for the increased control complexity is more precise control of the shaft's position. Note however, that stepper motors aren't infallible; if you tell the motor to take 20 steps clockwise but it is underpowered or it runs into a physical obstacle, it may not sucessfully complete all of the steps. So often you still need some sort of feedback system (usually an optical encoder with a disk on the motor shaft) to keep track of exactly how many steps have actually been taken. A stepper motor doesn't inherently know anything about its position and has no built-in feedback loop.
The good:
Ubiquitious; many sizes to choose from; precisely controllable; reliable.The bad:
Require more resources to control than other motors (code + hardware); non-standardized interface can make hookup difficult; not a ton of torque.The hookup:
Ha! There are two main types of stepper motors: unipolar and bipolar. Unipolar have five or six wires, bipolar have four. There's no standard for which wire is which, so you'll have to do some experimenting to hook the motor up correctly. Luckily there's lots of info on the WWW on hooking up stepper motors. But be prepared for some frustration, especially when using info-less motors removed from equipment. It's not worth it for me to go into detail on hooking up steppers here; a quick search will bring up lots of info.Identification:
Steppers can have from four to eight wires. They're usually squatter than other types of motors. If you remove a motor from a piece of equipment and it has more than three wires then it's probably a stepper. Try to rotate the shaft; if you feel a distinct step as you move it then it's proabably as stepper.