Pololu A4990 Dual Motor Driver Shield for Arduino
We have 1 units in our Sydney Warehouse available for immediate dispatch.
We can get a further 68 units in Australia from Pololu. If you order today, we can dispatch this stock between Dec 18, 2019 - Dec 25, 2019.
Pololu A4990 Dual Motor Driver Shield for Arduino, top view with dimensions.
This motor driver shield and its corresponding Arduino library make it easy to control a pair of bidirectional, brushed DC motors with an Arduino or compatible board, such as the A-Star 32U4 Prime. The board features Allegro’s A4990 dual H-bridge motor driver IC, which operates from 6 V to 32 V. It can deliver a continuous 0.65 A to each motor channel, and the current control feature of the A4990 limits the peak motor current to about 0.9 A per channel with the onboard sense resistors, making this shield well suited for low-current, high-voltage motors.
The shield ships fully populated with its SMD components, including the A4990 driver and a FET for reverse battery protection; header pins for interfacing with an Arduino and terminal blocks for connecting motors and power are included but are not soldered in (see the Assembly with included hardware section below).
The shield uses digital pins 6, 7, 8, 9, and 10 for its diagnostic and control lines. It should be compatible with any board that has a standard Arduino pin arrangement and the ability to generate PWM signals on pins 9 and 10. Compatible control boards include:
This shield is intended to provide a low-cost, basic motor driver option for Arduinos, so it is much smaller than typical Arduino shields and does not include pass-through, stackable headers. For higher-power drivers with more configuration options, see our larger MC33926 and VNH5019 motor driver shields.
For higher-current alternatives to this shield, please consider the dual MAX14870 motor driver shield or DRV8835 dual motor driver shield. We also have a smaller A4990 carrier for those using something other than an Arduino or with tighter space constraints.
Pololu A4990 Dual Motor Driver Shield for Arduino, top and bottom sides.
- Dual-H-bridge motor driver: can drive two DC motors or one bipolar stepper motor
- Motor supply voltage: 6 V to 32 V
- Logic supply voltage 2.5 V to 5.5 V
- Output current: 0.65 A continuous per motor
- Current control limits peak current to 0.9 A per motor
- Can work with ultrasonic (> 20 kHz) PWM frequencies, which allows for quieter motor operation
- Shield can optionally power the Arduino base directly when motor supply voltage is suitable
- Arduino library makes it easy to get started using this board as a motor driver shield
- Reverse-voltage protection on the motor power supply
- Can survive input voltages up to 40 V
- Under-voltage and over-voltage protection
- Over-temperature protection
- Short-to-supply, short-to-ground, and shorted-load protection on the motor outputs
Assembly with included hardware
Before the shield can be plugged into your Arduino, header pins must be mounted to the bottom of the board (the side with all of the surface-mount components) by soldering them into the appropriate holes. The shield ships with a 15-pin 0.1″ straight breakaway male header strip that can be broken into smaller pieces and used for this purpose. Four holes along the left side of the board (VCC, GND, GND, and AVIN) and all five holes along the right side of the board (digital pins 6 – 10) should be assembled with male header pins so that the shield will make the appropriate connections to the Arduino. Once assembled, one easy way to ensure that you are plugging the shield properly into the Arduino is to align the gap between pins 7 and 8 on the shield with the gap between pins 7 and 8 on the Arduino’s female headers.
If you want the option of powering the Arduino from the shield, you can solder two male header pins to the lower-left corner of the board (in the silkscreen box labeled “VOUT”). These pins should point up, away from the Arduino. If you then place the included blue shorting block across these pins (as shown in the above assembled picture), reverse-protected shield power will power the Arduino through it’s VIN pin. See the Using the shield section below for more information on this, including some important warnings.
Three 2-pin, 5 mm terminal blocks are included for making easy motor and power connections to the shield once they have been slid together and soldered to the six large through-holes. Alternatively, you can solder 0.1″ male header pins to the smaller through-holes above the terminal block holes, or you can just solder wires directly to the shield.
An Arduino is not included.
Using the shield
The shield plugs into Arduino digital pins 6, 7, 8, 9, and 10 on one side and Arduino VIN, GND, GND, and 5V/VCC on the other. The upper-left corner of the shield partially blocks the Arduino’s 3.3V pin, but this region of the board (marked with a white silkscreen box) can be removed if necessary to allow access.
In the shield’s default state, the motor driver shield and Arduino are powered separately, though they share a common ground and the Arduino’s 5V rail serves as the shield’s logic supply. When used this way, the Arduino must be powered via USB, its power jack, or its VIN pin, and the shield must be supplied with 6 V to 32 V through its large VIN and GND pads. Attempting to power the shield from the Arduino is not recommended as this could result in large currents flowing through small traces. However, if the motor power supply is suitable, it is possible to power the Arduino from the shield. This can be accomplished by placing a jumper between the shield pins in the lower-left corner labeled VOUT and AVIN, which connects the reverse-protected motor supply voltage to the Arduino’s VIN pin to power the Arduino. The Arduino’s power jack must remain disconnected at all times in this configuration.
Warning: When powering the Arduino from the motor shield, you must never connect a different power supply to the Arduino’s VIN pin or plug a power supply into the Arduino’s power jack, as doing so will create a short between the shield’s power supply and the Arduino’s power supply that could permanently damage both the Arduino and the motor shield. In this case, it is also important that your shield power supply is an acceptable voltage for your Arduino, so the full shield operating voltage range of 6 V to 32 V probably will not be available. For example, the recommended operating voltage of the Arduino Uno is 7 – 12 V.
The shield has integrated logic gates that simplify the control interface of the A4990 by reducing the number of PWM signals required. Each channel has a speed control input, MxPWM, and a direction control input, MxDIR. Arduino pins 9 and 7 are used to control the speed and direction, respectively, of motor 1, and pins 10 and 8 control the speed and direction of motor 2. The following truth table shows how the shield operates:
|0||PWM||PWM||L||forward/brake at speed PWM %|
|1||PWM||L||PWM||reverse/brake at speed PWM %|
|X||0||L||L||brake low (outputs shorted to ground)|
The A4990 has two diagnostic pins, EF1 and EF2, that offer feedback about the state of the driver. These pins are open-drain outputs that are driven low by the chip to indicate faults (the datasheet describes what each combination of EF1 and EF2 means). Otherwise, these pins remain in a floating state. By default, EF2 is connected to Arduino digital pin 6 through a 1 kΩ protection resistor; with pin 6 configured as an input with its internal pull-up enabled, a low signal indicates an over-current, over-voltage, or over-temperature condition.
The EF1 and EF2 pins can more generally accessed via the 3-pin row of through-holes in the lower-left corner of the board. If you do not want to monitor the motor driver fault flags or would rather free up pin 6 for some other purpose, you can cut the trace that connects the EF2 pin to its neighboring (center) pin on the bottom side of the shield.
The A4990 can actively limit the current through the motors by using a fixed-frequency PWM current regulation (current chopping). This carrier board connects 0.075 Ω resistors to the current sense pins, which sets the current limit to a nominal 1 A per channel. In our tests, the board actually limited the motor current to slightly above 0.9 A.
Real-world power dissipation considerations
Even though the driver limits the motor current to about 0.9 A per channel, the chip by itself will overheat at lower currents. For example, in our tests at room temperature with no forced air flow, the chip was able to deliver 0.9 A per channel for approximately 15 seconds before the chip’s thermal protection kicked in. A continuous current of 0.65 A per channel was sustainable for many minutes without triggering a thermal shutdown. The actual current you can deliver will depend on how well you can keep the motor driver cool. Our tests were conducted at 100% duty cycle; PWMing the inputs will introduce additional heating proportional to the frequency (unless the A4990 is already PWMing the outputs to limit the current).
This product can get hot enough to burn you long before the chip overheats. Take care when handling this product and other components connected to it.
Pololu A4990 Dual Motor Driver Shield for Arduino schematic diagram.
This schematic is also available as a downloadable pdf (268k PDF).