Support » Pololu A-Star 32U4 Robot Controller User’s Guide » 3. A-Star 32U4 Robot Controller with Raspberry Pi Bridge »
3.4. SV motor drivers
The A-Star 32U4 Robot Controller SV features two Maxim MAX14870 motor drivers that can each deliver a continuous 1.7 A (2.5 A peak). The motor power supply is derived from an external source connected to the A-Star’s Power In terminals, which also feeds the on-board voltage regulator and should have a voltage between 5.5 V and 36 V. (Although the MAX14870 works with motor supply voltages as low as 4.5 V, the voltage regulator requires a minimum input voltage of 5.5 V.) For more information about the drivers, see the MAX14870 datasheet (492k pdf). (We also sell a standalone carrier board for this motor driver.)
The motor driver outputs, together with power pins, are connected to sets of through-holes along the left side of the board. The larger holes are designed for 3.5 mm screw terminal blocks, which are soldered in on the assembled version. Alternatively, 0.1″ headers can be used with the smaller holes on the SMT-only version, or motor wires can be soldered directly to either set of holes.
Driving motors with an A-Star 32U4 Robot Controller SV with Raspberry Pi Bridge on a Raspberry Pi Model B+ or Pi 2 Model B.
Although the LV and SV versions of the robot controller use different driver ICs, the motor driver interface is identical between the two versions. Four pins are used to control the drivers:
- Digital pin 12, or PD6, controls the direction of motor 1 (when LOW, motor current flows from A to B; when HIGH, current flows from B to A).
- PE2 (which does not have an Arduino pin number) controls the direction of motor 2.
- Digital pin 9, or PB5, controls the speed of motor 1 with PWM (pulse width modulation) generated by the ATmega32U4’s Timer1.
- Digital pin 10, or PB6, controls the speed of motor 2 with PWM.
The AStar32U4 library provides functions that allow you to easily control the motors.
Maximum current and power dissipation considerations
The MAX14870 datasheet recommends a maximum current of 2.5 A. However, the chip by itself will typically overheat at lower currents. In our tests, we found that the chip was able to deliver 2.5 A for only a few seconds before the chip’s thermal protection kicked in and disabled the motor outputs; a continuous current of 1.7 A was sustainable for many minutes without triggering a thermal shutdown. Our tests were conducted at 100% duty cycle with no forced air flow; PWMing the motor will introduce additional heating proportional to the frequency.
Some situations can increase heating of the motor drivers and reduce their maximum available current output, such as drawing a large amount of current from the A-Star’s 5 V regulator, mounting the board on a Raspberry Pi, or using it in an enclosure that limits air flow. The actual current you can deliver will depend on how well you can keep the motor driver cool. The MAX14870 also has over-current protection that triggers when the output current exceeds a certain limit (3 A minimum), which can help prevent damage to the drivers if a motor draws too much 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.