Specification
- Supply voltage: 5 V to 28 V
- Continuous output current per channel: 3 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+
- A Python libraryto facilitate module maintenance
- Dimensions: 65 x 56 mm
- Weight: 14 g (without connectors)
The kit includes: module, screw connectors, 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 B+ 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 5 Volts to 28 Volts should be connected to VIN and GND pins. Power of logic part of 3.3 V is consumed from minicomputer.
Connection
The following table shows which pins of the Raspberry Pi are used by driver of the motors:
Pin RPi GPIO |
Pin of driver |
Description |
---|---|---|
5 | Motor 1 SF |
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 SF |
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 | Mode of work |
---|---|---|---|---|---|
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 module MC33926
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 |
---|---|---|
D1 |
Disables input 1 (highstate) |
By default, disabled (low state), connected via interruptible way. |
D2 |
Disables input 2 (lowstate) |
By default, disabled (low state), connected via interruptible way. |
SLEW | The choice of rate of rotation |
By default, in high state - fast rotations, connected via interruptible way. |
INV | Inversion of inputs | Internally pulled to ground. |
FB |
Feedback - output to measure the current |
Connected via a resistor and a low-pass filter, the sensitivity is approx. 360 mV/A. |
Raspberry Pi power supply
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 |