TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137045 times)
  2. FAT32 Library (70171 times)
  3. Network Ethernet Library (56044 times)
  4. USB Device Library (46366 times)
  5. Network WiFi Library (41984 times)
  6. FT800 Library (41313 times)
  7. GSM click (29080 times)
  8. mikroSDK (26520 times)
  9. PID Library (26454 times)
  10. microSD click (25449 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

DC Motor 15 click

Rating:

5

Author: MIKROE

Last Updated: 2020-11-02

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Brushed

Downloaded: 1394 times

Not followed.

License: MIT license  

DC Motor 15 Click is a compact add-on board that contains a motor driver with current sense and regulation. This board features the DRV8874, an integrated motor driver with N-channel H-bridge, charge pump, current sensing, and adjustment from Texas Instruments.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "DC Motor 15 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "DC Motor 15 click" changes.

Do you want to report abuse regarding "DC Motor 15 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

DC Motor 15 Click

DC Motor 15 Click

Native view of the DC Motor 15 Click board.

View full image
DC Motor 15 Click

DC Motor 15 Click

Front and back view of the DC Motor 15 Click board.

View full image

Library Description

The library covers all the necessary functions to control DC Motor 15 Click board™. DC Motor 15 Click communicates with the target board through the RST, CS, PWM and INT pins on mikroBUS™. This library offers functions for setting or clearing of RST, CS and PWM pins, and check the state of the INT pin, also user can use functions that drive motor forward and in reverse or apply brake functions.

Key functions:

  • void dcmotor15_forward ( ); - Function is used to drive the motor forward.
  • void dcmotor15_reverse ( ); - Function is used to drive the motor in reverse.
  • void dcmotor15_brake ( ); - Function is used to brake the motor.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes LOG structure and sets RST, CS and PWM pins as output, and INT pin as input.
  • Application Initialization - Initializes GPIO driver, powers up the device and starts log.
  • Application Task - This example demonstrates the use of DC Motor 15 Click by driving the connected motor forward for 5 seconds, than braking for 2 second, and driving it in reverse for 5 more seconds, braking again for 2 second afterwards.
void application_task ( )
{
    mikrobus_logWrite( "The motor turns forward!", _LOG_LINE );
    dcmotor15_forward( );
    Delay_ms( 5000 );
    mikrobus_logWrite( "The motor brakes!", _LOG_LINE );
    dcmotor15_brake( );
    Delay_ms( 2000 );
    mikrobus_logWrite( "The motor turns in reverse!", _LOG_LINE );
    dcmotor15_reverse( );
    Delay_ms( 5000 );
    mikrobus_logWrite( "The motor brakes!", _LOG_LINE );
    dcmotor15_brake( );
    Delay_ms( 2000 );
}

Other mikroE Libraries used in the example:

  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

Stepper 6 click

5

Stepper 6 click is the complete integrated bipolar step motor driver solution. It comes with the abundance of features that allow silent operation and optimal working conditions for the connected motor. A specialized integrated driver chip on this Click board far exceeds the capabilities of similar, commonly used step motor drivers.

[Learn More]

Zero-Cross click

0

Zero-Cross Click is a compact add-on board that has the ability to detect the change from positive to negative or negative to a positive level of a sinusoidal waveform. This board features circuitry that provides Zero Crossing Detection (ZCD). Whenever the sine wave crosses the ground potential, the output shifts from HIGH logic to LOW or vice-versa.

[Learn More]

CAN FD click

0

CAN FD Click is a add-on board based on TLE9252V CAN network transceiver, designed for HS CAN networks up to 5 Mbit/s in automotive and industrial applications.

[Learn More]