You also donвІ t have to worry about voltage regulation so much because it allows for 2 power sources вІ 1 direct source, upto 36V for the motors and the other, 5V, to control the IC which can be supplied from the Arduino power supply or since my motor power supply is only 6V IвІ m going to use this (if the motor supply was higher I would consider using a transistor or voltage regulator). The only thing to remember is that the grounding connection must be shared/ common for both supplies. Below you can see the pin layout for the chip and the truth table showing the output logic.
The bit we really care about in all of this is the 2 input pins per motor that do this logic and these, more importantly for our needs, can be controlled from the Arduino board.
This means you can essentially reverse the direction of current and thus reverse the direction of the motor. It works by having 4 elements in the circuit commonly known as corners: high side left, high side right, low side right, and low side left. By using combinations of these you are able to start, stop and reverse the current. You could make this circuit out of relays but its easier to use an IC вІ The L293D chip is pretty much 2 H-Bridge circuits,ВP 1 per side of the chip or 1 per motor.
The L293D is a monolithic integrated, high voltage, high current, 4-channel driver.вІ Basically this means using this chip you can use DC motors and power supplies of up to 36 Volts, thats some pretty big motors and the chip can supply a maximum current of 600mA per channel, the L293D chip is also whatвІ s known as a type of H-Bridge. The H-Bridge is typically an electrical circuit that enables a voltage to be applied across a load in either direction to an output, e.g. motor.
Although IвІ ve only used 1 motor, it is possible to use 2 motors on a single L293D chip, of course you then have to compensate on the current accordingly to ensure enough juice for both motors under peak load. Remember that if you use 2 motors, the power source will be the same voltage but the current needed will be doubled вІ a good start is by altering how your batteries are connected in series or parallel.
L239D DC Motor Driver & Pin Configuration
UPDATE: If you intend to use this for robotics then please check out this page here to get the most out of this chip вІ I actually found the SN754410 easier to work with that the L293D, its exactly the same apart from it can handle more current
C) Use a switch to change the direction of the motor
B) Use the L293D chip to drive the motor
A) Use a supplemental power source to power the DC motor
This is a quick guide with a bit of extra info (pin configurations etc..) that IвІ ve learnt along the way on how to use the L293D with the Arduino, showing that we can:
– July 7, 2009Posted in: , , ,
Control a DC motor with Arduino and L293D chip
Комментариев нет:
Отправить комментарий