TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136646 times)
  2. FAT32 Library (69858 times)
  3. Network Ethernet Library (55899 times)
  4. USB Device Library (46237 times)
  5. Network WiFi Library (41869 times)
  6. FT800 Library (41100 times)
  7. GSM click (28953 times)
  8. PID Library (26403 times)
  9. mikroSDK (26322 times)
  10. microSD click (25334 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

Driver 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-11-16

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Brushed

Downloaded: 1530 times

Not followed.

License: MIT license  

Driver 2 Click is a compact add-on board that contains a gate driver with a level-shift technology with an additional Shutdown function.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Driver 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Driver 2 click" changes.

Do you want to report abuse regarding "Driver 2 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

Driver 2 Click

Driver 2 Click

Native view of the Driver 2 Click board.

View full image
Driver 2 Click

Driver 2 Click

Front and back view of the Driver 2 Click board.

View full image

Library Description

The library contains a basic functions for using Driver 2 click.

Key functions:

  • void driver2_set_sd_pin ( uint8_t state ) - Set SD pin
  • void driver2_set_pwm_pin ( uint8_t state ) - Set PWM pin
  • uint8_t driver2_get_fb_pin ( void ) - Get FB pin

Examples description

The application is composed of three sections :

  • System Initialization - Initializes GPIO pins.
  • Application Initialization - Initializes driver module and sets pwm.
  • Application Task - Change the PWM duty cycle every 100ms
void application_task ( )
{
    for ( duty_cycle = 0; duty_cycle < pwm_period; duty_cycle += 25 )
    {
        driver2_pwm_set_duty( duty_cycle );
        Delay_ms( 100 );
    }
    for ( duty_cycle = pwm_period; duty_cycle <= 0; duty_cycle -= 25 )
    {
        driver2_pwm_set_duty( duty_cycle );
        Delay_ms( 100 );
    }
}

Other mikroE Libraries used in the example:

  • PWM library
  • UART Library

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

Opto Encoder click

5

Opto Encoder click is a linear incremental optical sensor/encoder click, which can be used for the movement or rotation encoding. Encoders of this type are widely used for many applications, which involve precise detection of the position, speed, or rotational angle of an object.

[Learn More]

Barometer 9 click

0

Barometer 9 Click is a compact add-on board ideal for precision activity tracking and indoor navigation/localization. This board features the ENS220, a barometric pressure and temperature sensor from ScioSense

[Learn More]

V to Hz Click

5

V to HZ click is a device that turns analog voltage into a pulse wave signal of a certain frequency.

[Learn More]