![]() |
||||
Measuring RPM via Photo reflector
Computer
Interface
|
DC Motor, Stepper Motor and Servo Motor This article for robotics for dummies section covers the 3 main types of motors which are used in robotics namely the DC motor , Stepper motor and the Servo motor. The article also gives various circuits which can be used to drive the se motors . This article is a must for all those starting out or are confused about motors .
DC Motors DC motors are widely used in robotics because of their small size and high energy output. They are excellent for powering the drive wheels of a mobile robot as well as powering other mechanical assemblies. Ratings and Specifications Several characteristics are important in selecting a DC motor. The first two are its input ratings that specify the electrical characteristics of the motor. Operating Voltage. Operating Current. Speed. Torque. Power. DC Motor Control HBridge To control a DC motor we have to first convert the Digital 01 output into one which can drive the motor for this we use the HBridge . Given below is a simple HBridge circuit When both the points A & B are "HIGH" Q1 and Q2 are in saturation. Hence the bases of Q3 to Q6 are grounded. Hence Q3,Q5 are OFF and Q4,Q6 are ON . The voltages at both the motor terminals is the same and hence the motor is OFF. Similarly when both A and B are "LOW" the motor is OFF. When A is HIGH and B is LOW, Q1 saturates ,Q2 is OFF. The bases of Q3 and Q4 are grounded and that of Q4 and Q5 are HIGH. Hence Q4 and Q5 conduct making the right terminal of the motor more positive than the left and the motor is ON. When A is LOW and B is HIGH ,the left terminal of the motor is more positive than the right and the motor rotates in the reverse direction. You could have used only the SL/SK100s ,but BC148 used have a very low hFE ~70 and they would enter the active region for 3V(2.9V was what I got from the computer for a HIGH) . You can ditch the BC148 if you have a SL/SK100 with a decent value of hFE ( like 150).The diodes protect the transistors from surge produced due to the sudden reversal of the motor. The approx. cost of the circuit without the motor is around Rs.40. After the Hbridge is you wish to control the power of the motor this can be easily done with a PWM based control Pulse Width Modulation Pulse width modulation is a technique for reducing the amount of power delivered to a DC motor. Instead of reducing the voltage operating the motor (which would reduce its power), the motor's power supply is rapidly switched on and off. The percentage of time that the power is on determines the percentage of full operating power that is accomplished. This type of motor speed control is easier to implement with digital circuitry. It is typically used in mechanical systems that will not need to be operated at full power all of the time. Figure illustrates this concept, showing pulse width modulation signals to operate a motor at 75%, 50%, and 25% of the full power potential.
The shaft of a stepper motor moves between discrete rotary positions typically separated by a few degrees. Because of this precise position controllability, stepper motors are excellent for applications that require high positioning accuracy. Stepper motors are used in X-Y scanners, plotters, and machine tools, floppy and hard disk drive head positioning, computer printer head positioning, and numerous other applications. Stepper motors have several electromagnetic coils that must be powered sequentially to make the motor turn, or step, from one position, to the next. By reversing the order that the coils are powered, a stepper motor can be made to reverse direction. The rate at which the coils are respectively energized determines the velocity of the motor up to a physical limit. Typical stepper motors have two or four coils. For more information on stepper motors you can read the stepper motor tutorial by rao on the website . Any way here is a very simple stepper controller
Servo motors incorporate several components into one device package: a small DC motor; Servo Motor Control A servo motor has three wires: power, ground, and control. The power and ground wires are simply connected to a power supply. Most servo motors operate from five volts. The servo controller receives position commands through a serial connection which can be provided by using one I/O pin of another microcontroller, or a PCs serial port! The communication protocol, that is used for this controller, is the same with the protocol of all the famous servo controllers of Scott Edwards Electronics Inc., this makes this new controller 100% compatible with all the programs that have been written for the "SSC" controllers...! However, if you want to write your own software, it is as easy as sending positioning data to the serial port as follows: Byte1 = Sync (255) So sending a 255,4,150 would move servo 4 to position 150, sending 255,12,35 would move servo 12 to position 35. The standards of the serial communication should be the following: 9600 baud, 8 data bits, 1 stop bit and no parity.
|
|||