
|
|
|
|
| SERVOS | MOTORS CC | MOTORS AC | MOTORS PaP |
So that our robot can be moved we need to be able to control motors or servos with precision for thus do that our robot can be moved with total liberty and to continue a road marked or any another thing...
|
TEORY |
Operation: The control of position performs it the I servo internally by means of a potentiometer that goes connected mechanically al axis at the outset and controls a pwm (modulador of width of pulses) internal for thus compare it with the entrance pwm external of the servo, by means of a differential system, and asi to modify the position of the axis at the outset until the values be equalized and the I serve stop in the position indicated, in this Motor of the servo to stops consuming current and so alone circulates a small current to the internal circuit, if we force the servo (moving the axis at the outset with the hand) at this time the internal differential control detects it and sends the necessary current al motor to correct the position. To control an I serve we will have to apply a pulse of duration and specific frequency. All the servos have three cables two for diet Vcc and Gnd and another cable to apply the control pulses train that will do that the circuit of internal differential control put the I serve in the position indicated by the width of the pulse. In the following board they are indicated the values of control and disposition of cables of several marks that market servos.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PRACTICE |
To cause to function an servo for the first time and to see its traveled through I thought up me a simple routine with the one that could experience without problems with different durations of pulses and thus to be able to verify the traveled through of the servo standard FutabaS3003 that bought for a price of 3900 Pts. By means of a switch we will introduce two basic orders al pic that will be put the servo in position of 0º and put the servo in position of 180º with these two positions we will have a circuit I practice of verification of the traveled through of any I serve. The plan of conections is the following one. :
The routine is based on a continuous loop of verification of the line RA0 to which I have connected a switch of lever, if the switch this open one then arrives a 0 logical to RA0 and the I serve tour to the position 0º and if the switch this closed therefore arrives a 1 to RA0 and the servo tour to the maximum position of 180º. The train of impulses will leave for the duckling RB0 of the PIC and will connect directly with the entrance of pulses of the servo. The width of the pulse comes defined by the I retard created by software and that will maintain to logical level 1 the exit during the duration of this. Once even to logical level 0 will enter operation another routine of I retard with the sufficient time to complete the 20 ms for obtain the frequency of 50 Hz necessary, and the process will be repeated indefinitely. The retardos have been calculated with the program CalDelay |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
TEORY |
To change the direction of turn in a motor of so alone direct current we have to invest the polarity of the diet of the motor. To modify his velocity we can vary his tension of diet with what the motor will lose velocity, but will also lose pair of turn (force) or for lose not pair in the axis at the outset we can do a circuit modulador of width of pulses (pwm) with an exit to transistor of but or less power according to the motor utilized. |
|||||||||||||||
|
PRACTICE |
Control of direction through the integrated Circuit L293B
H=High state "1" -- L=Low state "0" -- Z = High Impedance Thus therefore, we see that putting to high level the entrance of authorization "IN" of the driver, the exit of this "OUT" passes from high impedance al same level that the entrance of the driver be found "IN" but amplified in tension and in current, being this of maximum 1A. The tension of diet of the integrated circuit is not the same one that applies to the load connected to the exits of the drivers, and for these exits itself to to feed the driver by its duckling number 8 (Vs ), the applicable maximum tension to these ducklings is of 36V As this it integrated does not have disipador, is recommended to cause to pass a wide trail of printed circuit by the ducklings of mass that join all these and al same time do of small dissipator thermal, although for large loads the best is to use a dissipator as the shown in the pagina 9 of the datasheet.
One-way control : In the following figure we see the two forms to connect a motor for one-way control, M1 itself active al to put the entrance of the driver connected to this, to level low "0", while M2 itself active al to put the entrance of the driver to high level "1" and itself for al to put it to level low "0".
The entrance enable is like a general switch and should be put to high level "1" to be able to operate with the drivers that controls, or to level low "0" if the control wants to be disconnected of these. "Vs " will be the tension of necessary diet for the motors. The Model diodes 1N4007 are to protect the circuit of the peaks of starter and stop of the motors due to the inverse current induced by these. Bi-directional control : In the following circuit we see the way to connect a motor to permit to control it so much toward before as backwards
To have the control of two directions or bi-directional two are used of drivers of the l293b connecting its exits to the poles of the motor, then we will be able to change the polarity of diet of the motor with so alone to change of state the entrances of the drivers. For example , so that the motor rotate toward the right we will put the entrance "TO" to high level "1" and "B" to level low "0" and to cause to rotate the motor to the left we will have to invest the signs of entrance of such menera, the entrance "TO" to level low "0" and "B" to high level "1". The diodes are like in the previous case to protect the integrated of inverse currents.
|
|||||||||||||||
| MOTORS PaP | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
TEORY |
Bipolar: This type of motor carries two wound independent the one of the other , to control this motor is needed to invest the polarity of each one of the reels in the adequate sequence, for this we will need to use a bridge in "H" or driver type L293b for each reel and of this way we will have a board of sequences as the following one:
Each investment in the polarity causes the movement of the axis, advancing this a step, the direction of turn corresponds with the direction of the sequence in transit, for example to advance the hourly sense the secencia serious 1-2-3-4,1-2-3-4.... and for serious anti-hourly sense; 4-3-2-1,-4-3-2-1...
Unipolar: The motor one unipolar normally has 5 or 6 cables depending if the common one this united internally or not, to control this type of motors three methods with their corresponding sequences exist of lit of reels, the common one will go connected to + Vcc or mass according to the circuit of control used and then so alone we will have to feed the correct reel so that advance or go back the motor we as advance or We go back in the sequence.
The sequences are the following:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PRACTICE |
To do this we can use transistors mounted in configuration Darlington or to use an integrated circuit as the ULN2003 that already carries them integrated in its interior although the current that endures this integrated is drop and if we want to control motors but powerful we should mount ourselves the circuit of based on control transistors of power. The plan of use of the ULN2003 for a motor unipolar is the following one:
The inputs are TTL and they are activated to high level, also have resistances of internal polarization with what do not we owe to worry us of this and we will be able to leave "al air" the entrances done not utilize. The exits are in open collector.
The plan will be similar al following:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Robotica & µControladores Pic
![]()
Esta obra está bajo una licencia de Creative Commons.
Daniel C. Martin "ionitron" ··· Barcelona (Spain) ··· 2001-2006