Specification
- Supply voltage: 4.5 V to 28 V
- Continuous output current per channel: 2.6 A
- The maximum short-term current per channel: 5 A
- PWM frequency: up to 20 kHz
- Protection against incorrect attachment of power supply
- Designed for connectorsof the Raspberry Pi B+ / 2 / 3 / 3+
- A Python libraryto facilitate module maintenance
- Dimensions: 65 x 56 mm
- Weight: 14 g (without connectors)
The kit includes: module, screw connections, goldpin strip for self-assembly. In our offer you will find alsoassembled, ready to operate system. |
Description
The module is based on a Freescale MC33926 and lets you control the motors with a supply voltage up to 28 V and a continuous current consumption of up to 3 A. The driver withstands seconds of jumping current up to 5 A. The speed of rotation can be controlled by the control signal of PWM.
In combination with the Raspberry Pi, using a specially prepared libraries, you can easily control the speed and direction of rotation of two DC motors. Form and pins of the board allow for direct connection to minicomputer, as shown in the pictures above. The system uses a 40-pin GPIO connector.
The product is compatible with Raspberry Pi The manufacturer provides a library of Python for users of the Raspberry Pi. |
Modes of operation
The power of the motors was separated from the Raspberry Pi B+. The voltage from the range of 4,5 V to 28 V should be connected to VIN and GND pins. The Raspberry must be powered via the microUSB connector.
Connection
The following table shows which pins of the Raspberry Pi driver is used by motors:
Pin RPi GPIO |
Pin of driver |
Description |
---|---|---|
5 | Motor 1 DIAG |
Status pin. By default, in the high state. When an error of driver is detected, the driver switches to a low state. |
6 | Motor 2 DIAG |
Status pin. By default, in the high state. When an error of driver is detected, the driver switches to a low state. |
12 | Motor 1 PWM |
The PWM inputs to control the rotation speed of the motor. The maximum PWM frequency is 20 kHz. |
13 | Motor 2 PWM |
The PWM inputs to control the rotation speed of the motor. The maximum PWM frequency is 20 kHz. |
22 | Motor 1 EN |
By default, in the low state, it indicates the disabled outputs of the motors. To run the driver, you must specify the high status. |
23 | Motor 2 EN | By default, in the low state, it indicates the disabled outputs of the motors. To run the driver, you must specify the high status. |
24 | Motor 1 DIR |
Pin to choose the direction of rotation. In the low state, the current flows from output A to B. In high state - from B to A. |
25 | Motor 2 DIR | Pin to choose the direction of rotation. In the low state, the current flows from output A to B. In high state - from B to A. |
Modes of operation
The table shows the operation modes depending on the inputs:
EN | DIR | PWM | MxA | MxB | Operation mode |
---|---|---|---|---|---|
1 | 0 | PWM | PWM (H/L) | L | Forward rotation at a certain speed PWM %. |
1 | 1 | PWM | L | PWM (H/L) | Back rotation at a certain speed PWM %. |
1 | x | 0 | L |
L |
Braking (outputs connected to ground). |
0 | x | x | Z | Z | Disabled outputs. |
The use of additional pins of moduleTB9051FTG
The remaining inputs and outputs are not connected to the Raspberry Pi, however, they are available directly from the module. Board sets some of the outputs to high or low status through the ways which should be stopped before you connect them to something else. The following table shows the default settings of the configuration of these pins.
Pin of driver |
Description | The default configuration |
---|---|---|
ENB |
Reversed input enable |
By default, in the low state (enabled) via removable way. |
OCC |
Output of too much current |
By default, in the low state. Indicates about too high current. |
OCM |
Output for current monitoring |
It allows you to control the current. Approximately 500 mV / A. |
Meals Raspberry Pi
The device provides power to the minicomputer from the input voltage of module (VIN). To stabilize the voltage required for the Raspberry Pi 5 V, you can solder the converter D24V10F5 in specially prepared holes 5 V (output voltage), GND (ground), VOUT (supply voltage of motor).
Useful links |