Download Print this page
Arduino Uno Manual
Arduino Uno Manual

Arduino Uno Manual

Motor driver shield
Hide thumbs Also See for Uno:

Advertisement

Quick Links

Motor Driver Shield for Arduino Uno and Arduino Mega2650
DESCRIPTION
L298 2Amp Motor Driver Shield for Arduino is based on L298 motor driver integrated circuit, a full- bridge
motor driver. It can drive two separate 2A DC motors or 1 2A step motor. Motor's velocity and directions
can be controlled separately and there are 6 connectors connected to Arduino analogue pins. This motor
driver shield with PWM speed control mode and the PLL mode, using a jumper to switch. This also has a
Bluetooth interface where you can directly attach Bluetooth module to the shield.
KEY FEATURES OF L298P MOTOR DRIVER SHIELD
Drive 2 DC motors at 4.8-24V at up to 2A peak (2.5A peak) current.
Built-in Schottky diodes to protect against motor back EMF.
Drive 1 servo motor with a dedicated 5V regulated power.
Built-in buzzer.
Remote reset switch.
Bluetooth connector (x2).
Ultrasonic Range Finder Ping connector.
RGB LED connector
6 Analog/digital pins brought out to 3-pin headers with 5V and Gnd available for each input for
easy sensor hookup.
Stacking female connectors for supporting another daughter card.
Can optionally power have attached Arduino off the shield.
LOGIC POWER SUBSYSTEM
The Arduino 5V is brought up to the shield and is available on the 6 sets of red sensors 5V pins, the yellow
Ping connector for Ultrasonic Rangefinders and the 2 blue digital connectors. It is also used to power the
logic portion of the L298P chip. This ensures that they have good clean 5V power independent of what the
motors are doing. The Arduino 3.3V is brought up to the shield and is available on the 2 Bluetooth
connectors. The Arduino can be powered separately using the normal USB or DC power connector or it
can also be powered from the Shield. To select this, there is a jumper near the electrolytic cap
labeled 'OPT'. When this jumper is removed, the Arduino must be powered separately. When the jumper
is installed, the power from the motor VMS power connector is connected to the Vin pin on the Arduino
which feeds the Arduino on-board 5V regulator. To use this option, the motor power input must be at least
6.5V to feed the regulator. If powering the Arduino off the shield, the DC power jack on the Arduino
should not be used to avoid a power conflict, but the USB can be used.
Motor Power Subsystem The motor power comes in on the 2-pos screw terminal. The VMS is the positive
motor voltage which can range from 4.8 to 24V. If you are using this input to power the Arduino by
installing the 'OPT' jumper, the maximum input voltage on this terminal should be limited to 12V to avoid
overheating the Arduino regulator.
1 x 2 Screw Terminal (Motor Power)
VMS = Motor Vcc which must be between 4.8 and 24V.
GND = Motor Ground
(MOT-L298P) Manual

Advertisement

loading
Need help?

Need help?

Do you have a question about the Uno and is the answer not in the manual?

Questions and answers

Summary of Contents for Arduino Uno

  • Page 1 LOGIC POWER SUBSYSTEM The Arduino 5V is brought up to the shield and is available on the 6 sets of red sensors 5V pins, the yellow Ping connector for Ultrasonic Rangefinders and the 2 blue digital connectors. It is also used to power the logic portion of the L298P chip.
  • Page 2 USB power to power the DC motors. This should be avoided. If you have the OPT jumper in place and power coming on the DC Jack on the Arduino, it will work but the DC motor noise will be coupled into the 5V logic power supply and may cause eradicate behavior and so it is not really recommended.
  • Page 3 • 1 x 4 Screw Terminal (Motor Control) • Motor A Positive Lead • Motor A Negative Lead • Motor B Positive Lead • Motor B Negative Lead These motor connection points are also mirrored on a 4-pin female header for a little more flexibility. These motor drive leads also have yellow and green LEDs attached to them.
  • Page 4 The first connector is a 4-pin header that brings out 3.3V power, ground, TX, and RX. This type of connector is compatible with HC-06 Bluetooth modules and perhaps some others. The Receive pin has a 1K/2K voltage divider to level shift the TX output of the Arduino to be 3.3V compatible which is a nice feature.
  • Page 5 Analog / Digital Sensors A common issue when hooking sensors up to an Arduino is that many require ground/Vcc connections as well as an analog input or digital I/O. This board brings out the A0-A5 pins to a row of headers that also provide separate power and ground points for each A0-A5 pin.
  • Page 6 • 3 x 6 Header (White/Red/Black) • A0 / 5V / Ground • A1 / 5V / Ground • A2 / 5V / Ground • A3 / 5V / Ground • A4 / 5V / Ground • A5 / 5V / Ground There is also a 3-pin blue header that that brings out 5V, ground and D2 that can be used for a digital sensor or other remote connection •...
  • Page 7 The header pins are quite long and flexible. You will need to coax them into alignment as you insert the shield into the Arduino board. Also note that the shield can sit down on the top of the USB connector of some boards. To avoid any shorting concern, a little electrical or Kapton tape can be used to insulate the top of the connector.
  • Page 8 Serial.begin(9600); // Set comm speed for serial monitor messages //========================================================================== ===== // Main //========================================================================== ===== void loop() // Run both motors Forward at 75% power Motor('C', 'F', 75); delay(3000); // Run both motors in Reverse at 75% power but sound beeper first Motor('C', 'F', 0);...
  • Page 9 // Set direction to reverse and accelerate from zero to maximum speed for (int i = 0; i <= 100; i++) Motor('C', 'R', i); delay(ACCEL_DELAY); delay (2000); // Decelerate from maximum speed to zero for (int i = 100; i >= 0; --i) Motor('C', 'R', i);...
  • Page 10 digitalWrite(INB, LOW); analogWrite(ENB, newspeed); break; case 'C': // Controlling Both Motors if (dir == 'F') { digitalWrite(INA, HIGH); digitalWrite(INB, HIGH); else if (dir == 'R') { digitalWrite(INA, LOW); digitalWrite(INB, LOW); analogWrite(ENA, newspeed); analogWrite(ENB, newspeed); break; // Send what we are doing with the motors out to the Serial Monitor. Serial.print ("Motor: ");...
  • Page 11 TECHNICAL SEPECIFICATIONS Operating Ratings 4.8 – 24 VDC Voltage range (Vcc) Max current per bridge (peak) 2.5 A Max current per bridge (sustained) Dimensions 70 x 54 mm (2.75 x 2.1″) PCB Board (L x W)

This manual is also suitable for:

Mega2650