Technical Field
This invention relates generally to the field of DC motors and controls for such motors.
Background Art
DC motors are well known and used in a wide variety of functions and industries. In general, such motors utilize a changing magnetic field that causes an inner shaft or rotor to rotate relative to an outer body or stator, which is usually fixed. Typically, the rotor is permanently magnetized, while a series of poles encircles the rotor, the poles wound with wire or "windings" so as to create a magnetic field when current flows in the wire. Current is supplied to the windings to create a magnetic field near the poles that attracts or repels the rotor, causing the rotor to revolve.
To better control the motion of the rotor, information regarding actual or measured parameters of the motion can be used to vary the input current in order to approach or achieve desired motion values. Such a servo control system may employ a microprocessor, power supply and amplifiers for controlling the current to the windings, position or motion detectors for determining the actual position or motion of the rotor, and wires for relaying signals between the controller, amplifiers, windings, detectors and power supply. For some applications it is desirable to have a motor in close proximity to a controller.
For example, in U.S. Pat. Nos. 5,107,387 and 5,136,452, Orton discloses a radio controlled model race car having a controller coupled to a DC motor used to drive the car, and various fuse and circuitry devices for connecting the motor and controller and for braking the motor. U.S. Pat. No. 5,237,540, to Malone teaches a brushless DC motor used for drilling having an encoder coupled to the motor for sensing a position of the motor. Similarly, U.S. Pat. No. 5,249,161 to Jones et al. dis-closes a borehole driller having means for determining whether an encoder and position sensor attached to the motor is jammed. In U.S. Pat. No. 5,159,218, Murry et al. teach a solid state controller mounted directly to a brushless DC motor for pumping fluids in environments which may be encountered during space missions.
Having a controller close to a motor may still require extensive interwiring. As shown in FIG. 7, a typical servo motor control system has a motor 20 with an encoder 22 attached to the motor for determining the position of the motor 20. A servo controller 25 and an amplifier 27 are separated from the motor 20 and encoder 22, but connected by a multiplicity of wires. The servo controller 25 is supplied with power and ground wires 30, and the servo controller 25 is wired to a host via separate transmit and receive wires as well as a ground 32. The amplifier 27 is separately supplied with power and ground wires 33, and has a number of potentiometers 28 for adjusting the amplifier 27. The servo control 25 and the amplifier 27 are connected with a set of wires 35 including those for a command signal, a shutdown signal, an error signal and ground. Wire connections 37 between the encoder 22 and the servo controller 25 include power and ground and six signal wires. Wires 39 connecting between the motor 20 and the amplifier 27 include a power and a ground wire for a Hall sensor in the motor 20, a pair of Hall sensor signal wires, and individual wires for three motor phases. The web or harness of wiring shown in this figure may be difficult to correctly connect and noise from high current wires powering the motor may disrupt sensitive signals in nearby wires used for servo control.
It is an object of the present invention to provide a simple and reliable servo motor having improved precision of motion due to improved mechanical and electrical connection between the motor and controller.
Summary of the Invention
The above object is accomplished with a controller that is mated to a DC motor with a set of rigid, electrically conductive pins protruding from a back end of the motor. Both the motor and the controller are modular, providing for ease of interchange or replacement of either the motor or controller. The pins provide mechanical as well as electrical connection between the motor and controller. Electrical connection of the pins to the controller allows communication of power and control signals for the motor from the controller, and communication of data regarding measured positions of the motor for the controller.
The motor may employ brushes, although in a preferred embodiment it is brushless, as a brushless motor provides improved heat dissipation from the coils of a stationary, exterior housing rather than the coils of a rotating armature found with brushes. A rotor protrudes from a front end of the motor, while mounted on a back end of the motor is an optical encoder for measuring incremental positioning of a rotor relative to the motor housing. The encoder has leads which, like the pins, extend from the back end of the motor to fit into matching connections in the controller. The motor includes Hall sensors for determining local magnetic fields within the motor for absolute position measurement of the rotor.
Unlike typical servo motors, the motor of the present invention can remain connected with an application while the controller is removed for adjustment or replacement. Aside from the pins, the motor and controller are held together with three screws which can be easily removed. The controller is of the same diameter as the motor, and in a preferred embodiment extends about as far as an encoder of the prior art, allowing use in tight spots that are increasingly common in modern motion control applications.
The controller includes a microprocessor with a servo amplifier for driving the motor and a proportional integral derivative (PID) filter for controlling the motor based upon feedback from the motor. The controller has a communications port that may be accessed by an RS232 plug from a personal computer. Two or more controllers can be linked together via their communication ports to provide multi-axis motion with the controllers and their connected motors synchronized. A peripheral device port located adjacent to the communications port on a back end of the controller affords connections for devices such as a flat panel display, which may be mounted on the controller and display information regarding the motor or controller, or joystick for controlling the motor.
The modular, mated combination of motor and controller reduces wiring and electronic connections, offering space savings and improved reliability. The reduction in wiring benefits the accuracy of motor control by reducing signal interference in critical drive and servo control functions. Space savings and convenience also result from the compact structure and lack of electronic components that require mounting and interconnection.
Brief Description of the Drawings
FIG. 1 is a plan view of a combined motor body and controller of the present invention.
FIG. 2A is a side view of the motor body of FIG. 1.
FIG. 2B is a rear view of the motor body of FIG. 1.
FIG. 3 is a cross-sectional view of the motor body of FIG. 2A and 2B.
FIG. 4A is a front view of the controller of FIG. 1 with a mounting flange attached at the rear end.
FIG. 4B is a rear view of the controller and flange of FIG. 4A.
FIG. 5 is a side view of the combined motor and controller of FIG. 1.
FIG. 6 is a plan view of a computer connected to a mounted motor and controller of FIG. 1.
FIG. 7 is a plan view of a prior art motion control device.
Best Mode for Carrying Out the Invention
Referring now to FIG. 1, a motor body 40 is shown with a rotor 42 protruding from a front end 44 of the body 40. Within the body 40 is a motor 45 and a Hall sensor 56. At a back end 47 of the motor body 40 is an encoder 48. A controller 59 adjoins the back end 47 of the body 40. The controller 49 houses a microprocessor 50 including a proportional integral derivative (PID) filter 53. The controller 49 also contains a power supply 55 and a universal amplifier 58. Direct current (DC) power of 18 to 48 volts is provided to the controller 49 through a power input 60, and RS-232 or other formatted signals are provided to the controller 49 via a communications port 62.
The power input 60 is connected to the power supply 55 and the amplifier 58. The power supply 55 stores power and provides various levels of DC power as needed to different elements of the controller 49, including the microprocessor 50 and the amplifier 58. Signals input to the microprocessor 50 via the communications port 62 are used to run the motor 45 by controlling the current supplied to the motor from the amplifier 58. A position of the motor 45 is measured by the sensor 46 and encoder 48 and information regarding this position is sent to the microprocessor 50 for servo control of the motor 45.
FIGS. 2A and 2B show some elements of the motor body 40 that connect with the controller 49. The body 40 is generally cylindrical, with the axially disposed rotor 42 protruding from the front end 44 and a rotor tail 63 extending from the back end 47. A set of rigid, electrically conductive, stainless steel pins 65 protrude from the back end 47 adjacent to the rotor tail 63. The pins 65 are grouped in a parallel pair of rows that are vertically oriented and centered horizontally beside the rotor tail 63. An encoder 67 is disposed adjacently below the rotor tail 63, and has a series of electrical leads 70 that extend away from the back end 47 in a direction substantially parallel to the rotor tail 63 and the pins 65. The encoder 67 directs light at the rotor tail 63, which is marked to reflect light from certain spots and not from others, and the encoder 67 detects reflected light from the tail 63 in order to determine an incremental position of the rotor 42. Data regarding this position is sent to the controller 49, shown in FIG. 1, via the leads 70. Three tapped screw holes 72 are located near a perimeter 74 of the back end 47 for affixing the controller 49 to the motor body 40. An annular recess 76 is disposed at the perimeter 74 for axial alignment of the controller 49.
In the preferred embodiment, the motor body 40 has a length L.sub.m that lies within a range of between 1 inch and several inches, optimally about 2 inches, and a similar outside diameter D.sub.m, optimally about 2.25 inches. The optimal motor body 40 size is designed to accommodate standard NEMA 23 frame dimensions and tolerances, allowing retrofit of existing 23 size stepper motors. For this size, the pins 65 have a length L.sub.p of approximately 0.5 in. and a cross-sectional area of 0.025 square inches. The rows of pins 65 are spaced about 1.5 inch from each other on opposite sides of the rotor tail 63, each row having 6 pins with centers spaced apart by about 0.1 inch.
A first pin 80 provides 5 volts DC power to the motor 45 from the controller 49, while a second pin 82 provides a return path for that power. A third pin 84 offers a ground connection for the body 40. The other three pins 85, 86, and 87 in that row are connections for three Hall sensors, not shown, that provide signals to the controller 49 regarding the magnetic field within the motor 45, measured by transverse electrical current, thereby measuring a general position of the rotor 42. The six pins 65 in the opposite row, labeled 91, 92, 93, 94, 95 and 96 provide power to a set of six windings, which encircle the rotor 42 within the motor 45, providing changing magnetic fields to power the rotor 42.
FIG. 3 shows a simplified axial view of a portion of the motor body 40 containing the motor 45 with a stator 98 outside and the rotor 42 at the center. The rotor 42 is attached to a cylindrical permanent magnet 100 having a diameter larger than that of the rotor 42 and opposed north (N) and south (S) poles. Six windings, labeled 102, 104, 106, 108, 110, and 122 surround the permanent magnet 100, with adjacent windings being oppositely wound and thus producing oppositely directed magnetic fields when supplied with electrical current. The windings are connected as pairs so that current flows through a pair of adjacent windings simultaneously to provide a torque to the magnet 100 and thereby turn the rotor 42. For example, pins 91 and 92 (FIG. 2B) provide and drain current from windings 102 and 104, respectively. Winding 102 is oriented so that current provided by from pin 91 creates a magnetic field having a north pole directed toward the rotor 42 and a south pole directed away from the rotor 42. Current from winding 102 flows to winding 104 by a wire, not shown, and drains from winding 104 through pin 92. Winding 104 is oriented so that this current creates a magnetic field with a south pole directed toward the rotor 42. With the north pole (N) of the magnet 100 oriented as shown in FIG. 3, the just described current in windings 102 and 104 produces a torque T that tends to cause magnet 100 and rotor 42 to rotate in a clockwise direction.
After the magnet 100 and rotor 42 have rotated clockwise around a third of a revolution another pair of windings, 106 and 108 are provided current in a similar manner through pins 93 and 94, creating magnetic fields that provide further torque for rotation in the clockwise direction. Windings 110 and 112 are activated similarly by current through pins 95 and 96 to provide further torque for further acceleration of rotation. The direction of torque is reversible simply by supplying current in an opposite direction through the pairs of windings while the north pole (N) is adjacent to those windings, or alternatively, by supplying current in the original direction while the south pole (S) is adjacent to the windings supplied with current. Thus it is important to know the position of the magnet 100 at any time in order to provide torque impelling the rotor 42 in one direction or another.
Disposed between each pair of windings are Hall sensors 114, 116, 118, 120, 122 and 124. The Hall sensors are transistors that transmit a current in response to an ambient magnetic field of a particular orientation, and are employed to detect the position of the magnet 100. oppositely disposed Hall sensors 114 and 120, 116 and 122, and 118 and 124 have signals that are compared by comparators for determining a general position of the magnet 100 and rotor 42. The encoder 48 can determine two thousand incremental positions of the rotor 42, and the information from the Hall sensors 114, 116, 118, 120, 122 and 124 and the data from the encoder 48 are fed to the microprocessor 50, which calculates the position and velocity of the rotor 42. The microprocessor 50 includes a proportional integral derivative (PID) filter 53 which receives information from the encoder 48 to servo control the rotor 42. The PID filter has a service rate of 5 kHz, providing extreme accuracy in servo control.
Referring now to FIGS. 4A and 4B, front and rear views of the controller 49 show a square flange 128 which is attached to a rear end 132 of the controller 49, the flange 128 having bolt holes 130 near its corners to allow mounting of the controller 49 to a work surface, not shown. A front end 134 of the controller 49 has 12 pin holes 136 configured in a parallel pair of rows, the pin holes 136 mating with the pins 65 of the motor body 40. Another row of sockets 138 mates with the pins 70 from the encoder 67. The front end 134 has a recess 140 to allow for the extension of the rotor tail 63 and the encoder 67 from the back end of the motor body 40. A triad of apertures 142 allows passage of screws 144 from the rear end 132 to the screw holes 72, for attachment of the controller 49 to the motor body 40. The controller 49 can be removed from the motor body 40 by simply unscrewing these screws 144 and pulling the pins 65 and 70 free, allowing the motor body 40 to remain attached to an application while the controller is removed for repair or replacement.
The rear end 132 of the controller 49 contains a number of electrical ports providing power and communication to the controller 49. DC power of from 5 to 18 volts is provided to power socket 150 and drained from power socket 152. A set of sockets 154 compatible with RS-232 or other computer communication cabling provides capability to program or change settings of the controller 49 via a personal computer or other compatible device. These sockets 154 also allow interconnection between a plurality of controllers 49 and attached motor bodies 40 to perform coordinated tasks. A synchronization pin located within each controller 49, not shown, allows a plurality of controllers 49 and their associated motors 45 to be perfectly synchronized despite the small delays inherent in RS-232. Interconnected motor bodies 49 can be held by their associated controllers 49 by mounting on a work piece, not shown, so that their rotors 42 are oriented in different directions or along different axes to provide precisely controlled quantities of motion in any direction. A left limit port 156 provides control of motion of the rotor in a clockwise direction while a right limit port 158 sets a limit on motion in a counterclockwise direction. A peripheral port 160 provides the opportunity to link peripheral devices such as joysticks, mice, displays or push-wheel inputs.
FIG. 5 displays the controller 49 attached to the motor body 40, demonstrating that the controller 49 adds little to the length of the motor body beyond that typically assumed by an encoder of the prior art. The controller 49 has a length Lc that may range from about 1 inch to several inches, depending primarily upon the number of circuit boards stacked within the controller 49. The diameter of the controller Dc can be seen to match the diameter D.sub.m of the motor body 40, allowing the mated body 40 and controller 49 to fit in a similar lateral space as the motor body 40 would fit in alone.
FIG. 6 shows the motor body 40 and controller 49 attached by the flange 128 to a support 175. An RS-232 cable 177 is connected through a hole in the support, to the RS-232 port 154 of the controller, and also connected to a personal computer 180. Information regarding parameters of the motion of the rotor 42 can be displayed on a terminal 182 connected to the computer 180. A keyboard 184 is used to input desired motion parameters into the computer 180 which inputs data into the controller 49 to precisely control the rotor 42. There is a large amount of information that a controller 49 can volunteer to a host computer 180 or peripheral display, not shown. This information includes an actual position, velocity, encoder error and motor status, which is sent over the cable 177 as a byte of information.
The position, velocity or acceleration of the rotor 42 can be programmed into the controller 49 with up to 32 bits of precision in any of those parameters, yielding extremely fine resolution. Numeric resolution doubles with each additional bit. Thus a 32 bit quantity does not have twice the resolution of a 16 bit quantity, but instead has 65,536 times that resolution. As an example, when photographying a distant star by opening a shutter of a telescope camera that is set to rotate as the earth rotates, resolution becomes very important. If an astronomer calculates that a rotation of 0.00294785 rpm is needed for this purpose and a 16 bit resolution control system chops off the last 3 digits, the picture that results will be a dash, not a dot. With a 32 bit system, in between each velocity at which a 16 bit system could track are 65,536 more velocities to choose from.
This extreme resolution allows for very accurate linear interpolation of many cascaded integrated motors 45 and controllers 49. It is essential in this case to assure that all the rotors 42 start at the same time. Millisecond delays of RS-232 can degrade synchronization, and are averted by first inputting commands for the chain of motors 45 into the microprocessors 49 and then using internal timers of the microprocessors 49 and synchronization pins to initiate motion of each of the rotors 42 simultaneously.
Language used to input desired motion parameters to a motor 45 and controller 49 follows common sense terminology. Thus the letter "P" stands for position, "V" for velocity, and "A" for acceleration. Data is digitally transferred and maintained, eliminating errors inherent in analog systems, and eliminating adjustment of potentiometers 28 shown in the prior art of FIG. 7. When a command is intended to transfer data, that data follows the command as ASCII characters like "P3000" to set a target absolute position of 3000 encoder counts. If several motors are cascaded, this letter command is preceded by the address of the particular motor being contacted. There are four modes that a motor 45 can operate in: Absolute Position, Relative Position, Velociy and Torque. A current "I" command limits the current available to the motor in 1000 increments up to a peak current of 12.5 amps.
The benefits of the mated, modular controller 49 and motor body 40 are numerous. Complete elimination of the need for local hand wiring reduces cost and increases reliability. Elimination of the necessity of mounting the separate components saves money, time and space. Elimination of the need to match, procure and inventory separate components adds to this savings. Elimination of potentiometers and other analog settings removes servo engineers from assembly lines and assures uniformity across different units and over time.