dcmotor19 2.0.0.0
|
DC Motor 19 Click is a compact add-on board that contains a brushed DC motor driver. This board features the TC78H653FTG, a dual H-bridge driver for one or two DC brushed motors or one stepping motor, which incorporates DMOS with low ON resistance in output transistors from Toshiba Semiconductor.
We provide a library for the DCMotor19 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.
This library contains API for DCMotor19 Click driver.
dcmotor19_cfg_setup
Config Object Initialization function. dcmotor19_init
Initialization function. dcmotor19_drive_motor
This function drives the motor for a certian time specified by time_ms at the desired speed. The motor channel and mode must be previously selected using the dcmotor19_set_channel_mode function. dcmotor19_set_channel_mode
This function sets the active channel and mode which will be used by the dcmotor19_drive_motor function. dcmotor19_disable_standby_mode
This function disables the standby mode. This example demonstrates the use of DC Motor 19 click board by driving the motors in both direction in the span of 14 seconds.
The demo application is composed of two sections :
Initializes the driver and enables the click by disabling the standby mode.
Drives the motors in the forward direction for 5 seconds, then pulls brake for 2 seconds,
and after that drives them in the reverse direction for 5 seconds, and finally, stops driving for 2 seconds which basically disconnects the motors. Each step will be logged on the USB UART where you can track the program flow.
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.