How does it work?
DC Motor 5 Click is based on the DRV8701, a brushed DC motor full-bridge gate driver from Texas Instruments. The DRV8701 driver is PWM driven and supports a 100% PWM duty cycle, with integrated PWM current regulation that limits motor inrush current. The gate driver includes circuitry to regulate the winding current using fixed off-time PWM current chopping. The internal sense amplifier achieves adjustable current control. The DRV8701 features VM under-voltage lockout, charge pump under-voltage, overcurrent protection, pre-driver fault, thermal shutdown, fault condition output, and more.
DC Motor 5 Click, and its bridge PWM inputs (speed and direction) are controlled by the host MCU over the IN1 and IN2 pins of the mikroBUS™ socket. The SNS is a sense comparator output and will go LOW when the drive current hits the current chopping threshold. You can put a driver into sleep mode with FETs HIGH-Z over the SLP pin. The DRV8701 motor driver will send a logic LOW if a fault condition occurs, turning the FAULT LED ON.
This Click board™ can operate only with an external power supply from 5.9V up to 45V applied to the VM terminal. Also, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Specifications
Type
Brushed
Applications
Can be used for the development of industrial brushed DC motors, robotics, home automation, industrial pumps and valves, power tools, handheld vacuum cleaners, and more
On-board modules
DRV8701 – brushed DC motor full-bridge gate driver from Texas Instruments
Key Features
Full-bridge driver controlled by the PWM, drives four external MOSFETs, adjustable gate drive, integrated PWM regulation, VM under-voltage protection, charge pump under-voltage, overcurrent protection, pre-driver, thermal shutdown, fault condition output, and more
Interface
PWM
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
External
Pinout diagram
This table shows how the pinout on DC MOTOR 5 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
DC MOTOR 5 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
External Supply Voltage | 5.9 | – | 45 | V |
Source Current | 6 | – | 150 | mA |
Sink Current | 12.5 | – | 300 | mA |
Applied PWM Signal | – | – | 100 | KHz |
Software Support
We provide a library for the DC MOTOR 5 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for DC MOTOR 5 Click driver.
Key functions
-
Function brakes the engine by setting IN1 ( PWM ) and IN2 ( INT ) pins on DC Motor 5 Click board.
-
Function stops the engine by clearing IN1 ( PWM ) and IN2 ( INT ) pins on DC Motor 5 Click board.
-
Function disables the engine by clearing SLEEP ( RST ) pin on DC Motor 5 Click board.
Example Description
This application enables usage of brushed DC motor gate driver.
void application_task ( void )
{
clockwise( );
pull_brake( );
counter_clockwise( );
high_z( );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.DcMotor5
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.