OFF
MIKROE-4884
20 g
Status:
DC Motor 20 Click is a compact add-on board that contains a brushed DC motor driver. This board features the TC78H651AFNG, a dual H-bridge driver for one or two DC brushed motors, which incorporates DMOS with low ON resistance in output transistors from Toshiba Semiconductor. The Forward/Reverse/Stop mode can be selected according to the state of its input control signals routed to the GPIO pins of the mikroBUS™ socket. It has a wide operating voltage range of 1.8V to 7.5V with an output current capacity of 2A maximum. Besides, it also features built-in protection against under-voltage, overcurrent, and overtemperature conditions. This Click board™ is suitable for driving DC brushed motors and stepping motors for low voltage equipment.
DC Motor 20 Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
DC Motor 20 Click as its foundation uses the TC78H651AFNG, a dual H-bridge driver for one or two DC brushed motors from Toshiba Semiconductor. The integrated MOSFETs, which configures with an H-Bridge circuit inside the TC78H651AFNG, use DMOS elements with low-on resistance (0.22Ω typical with 5V power supply). It has a wide operating voltage range with an output current capacity of 2A maximum and control functions including motor-related functions and built-in detection circuits for overcurrent, overheat, and low/high voltage.
As mentioned in the product description, DC Motor 20 Click communicates with MCU using several GPIO pins. Also, this Click board™ has a Standby function used to switch to Standby mode by setting all motor control pins to a low logic state. When the Standby mode is active, the TC78H651AFNG stops supplying the power to the logic circuit. The Standby current is significantly reduced because all circuits in the IC are configured with CMOS/DMOS elements, and the current consumption in this mode is 0μA typical.
To turn ON the internal MOSFETs of the TC78H651AFNG, they need to be switched by the logic level, which is input to the control input pins: IN1, IN2, IN3, and IN4 pins routed to the RST, AN, PWM, and INT pins of the mikroBUS™ socket. Thereby, the Forward/Reverse/Stop rotation direction mode can be selected according to the state of its input control signals. More information on the Motor Rotation Mode Selection can be found in the attached datasheet.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use communication lines properly. However, 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.
Type
Brushed
Applications
Can be used for driving DC brushed motors and stepping motors for low voltage equipment
On-board modules
TC78H651AFNG - dual H-bridge driver for one or two DC brushed motors from Toshiba Semiconductor
Key Features
Low power consumption, dual bridge driver, high drive capability, low voltage drive, low-on resistance, selectable motor operation, built-in Standby and protection features, and more
Interface
GPIO
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V,External
This table shows how the pinout on DC Motor 20 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2 | VM SEL | Left | TC78H651AFNG Power Supply Selection VEXT/VCC: Left position VEXT, Right position VCC |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage VCC | 3.3 | - | 5 | V |
External Power Supply VM | 1.8 | - | 7.5 | V |
Maximum Output Current | - | - | 2 | A |
Operating Temperature Range | -40 | +25 | +105 | °C |
We provide a library for the DC Motor 20 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for DC Motor 20 Click driver.
Key functions
dcmotor20_drive_motor
This function drives the motor for a certian time specified by time_ms at the desired speed.
dcmotor20_set_channel_mode
This function sets the active channel and mode which will be used by the dcmotor20_drive_motor function.
dcmotor20_set_standby_mode
This function sets the chip to the standby mode which affects both channels.
Example Description
This example demonstrates the use of DC Motor 20 click board™ by driving the motors in both direction in the span of 14 seconds.
void application_task ( void )
{
log_printf ( &logger, " Driving motors forward...rn" );
dcmotor20_set_channel_mode ( &dcmotor20, DCMOTOR20_CHANNEL_1 | DCMOTOR20_CHANNEL_2, DCMOTOR20_MODE_FORWARD );
dcmotor20_drive_motor ( &dcmotor20, DCMOTOR20_SPEED_DEFAULT, 5000 );
log_printf ( &logger, " Pull brake!rn" );
dcmotor20_set_standby_mode ( &dcmotor20 );
Delay_ms( 2000 );
log_printf ( &logger, " Driving motors in reverse...rn" );
dcmotor20_set_channel_mode ( &dcmotor20, DCMOTOR20_CHANNEL_1 | DCMOTOR20_CHANNEL_2, DCMOTOR20_MODE_REVERSE );
dcmotor20_drive_motor ( &dcmotor20, DCMOTOR20_SPEED_DEFAULT, 5000 );
log_printf ( &logger, " Pull brake!rnn" );
dcmotor20_set_standby_mode ( &dcmotor20 );
Delay_ms( 2000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
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 MikroElektronika compilers.
This Click board™ is supported with mikroSDK - MikroElektronika 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.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.