11
4.12 H-Bridge
The H-bridge driver TB6612FNG is similar to the SN754410N, but has MOSFET output.
It’s much
more efficient than the SN754410N, especially for controlling low voltage motors. The control
software is
the same for both IC’s. It can control two DC motors or one stepper motor.
It takes two pins, P3.2 and P3.3, to control motor direction, one must be set at high, and the other
one must be set at low. If P3.2 is high and P3.3 is low the motor will turn clockwise, then if P3.2 is
low and P3.3 is high the motor will turn count clockwise. If both P3.2 and P3.3 are set at the
same state, the motor stops.
A DC motor is connected to the terminals labeled with M1 and M2, If the motor is turned in the
opposite direction from what you expect, just swap the motor connections on the M1 and M2, you
don’t need to change your software.
The motors to be used to test your software should be small, low current and low voltage DC
motors, like under 12V and 300mA.
The third pin is the PWM input for receiving different pulse widths to vary motor speed. It is driven
by pin P2.7 of the Launchpad.
The sample program is available on Professor Mazidi’s web site.
The other half of the H-bridge driver is controlled by P2.5, P2.4 for direction and P2.6 for PWM.
The outputs are M3 and M4.
Combining M1, M2, M3, and M4, the H-bridge driver can be used to drive a bipolar or unipolar
stepper motor.
4.13 CAN
CAN interface is provided, but the CAN transceiver is not installed. If you are interested in CAN
programming, place a MCP2551 into the 8-pin DIP socket. The J27 selects one of CAN ports,
PE4 and PE5, or PF0 and PF3. Two jumpers on the J27 must be placed
HORIZONTALLY
.
4.14 TFT
J25 is for a common
2.2” TFT QVGA display with SPI interface. The pinouts are listed below:
Pin1
5V
Pin2
Ground
Pin3
Chip select
P6.7
Pin4
Reset
Pin5
R/S
P3.0
Pin6
MOSI
P1.6
Pin7
SCLK
P1.5
Pin8
Backlight
Pin9
MISO
P1.7