L293D Motor Drive Shield

From SainSmart Wiki
Jump to: navigation, search
L293D Motor Drive Shield

Features:

  • Brand new and high quality.
  • 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 10 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.
  • 2 interface for 5V Servo connected to the Arduino's high-resolution dedicated timer - no jitter.
  • Can drive 4 DC motors or 2 stepper motors or 2 Servo.
  • Up to 4 bi-directional DC motors with individual 8-bit speed selection.
  • Up to 2 stepper motors (unipolar or bipolar) with single coil, double coil or interleaved stepping.
  • 4 H-Bridges: per bridge provides 0.6A (1.2A peak current) with thermal protection, can run motors on 4.5V to 10V DC.
  • Pull down resistors keep motors disabled during power-up.
  • reset button.
  • 2 external terminal power interface, for seperate logic/motor supplies.
  • Tested compatible for Arduino Mega, Diecimila & Duemilanove.
  • Size:6.8cm x 5.5cm x 2cm - 2.68inch x 2.17inch x 0.79inch.


Example

This tutorial focuses on how to drive a DC motor with forward and backward.

1.Connect the shield as the follow:

M4.png

2.Download the library here.Unzip it,and copy the MSMotorShield folder to the arduino IDE libraies.

3.Open the IDE from File>Examples>MSMotorShield>Examples>MOtorTest.

Note:Here use the Arduino 0022,if you want to use other version you might change the header file.

Motor test.png

4.Select the right board and COM in Tools ,then Upload the code.

5.Finally, you can see the motor rotate.

Resource

Library and schematic