TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 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 (136797 times)
  2. FAT32 Library (69983 times)
  3. Network Ethernet Library (55951 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41892 times)
  6. FT800 Library (41187 times)
  7. GSM click (28990 times)
  8. PID Library (26420 times)
  9. mikroSDK (26375 times)
  10. microSD click (25382 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

H-Bridge Driver click

Rating:

5

Author: MIKROE

Last Updated: 2021-07-12

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Motor control

Downloaded: 1255 times

Not followed.

License: MIT license  

H-Bridge Driver Click is a compact add-on board that contains an H-bridge gate driver, also known as a full-bridge pre-driver. This board features the MC33883, an H-Bridge gate driver with an integrated charge pump and independent high and low side gate drive channels from NXP Semiconductors.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "H-Bridge Driver click" changes.

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

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

H-Bridge Driver Click

H-Bridge Driver Click

Native view of the H-Bridge Driver Click board.

View full image
 H-Bridge Driver Click

H-Bridge Driver Click

Front and back view of the H-Bridge Driver Click board.

View full image

Library Description

The library covers all the necessary functions to control the H-Bridge Driver Click board™. User can use functions that control four separate input pins.

Key functions:

  • void hbridgedriver_glo_enable ( uint8_t state ); - Function is used to turn the device on or off.
  • void hbridgedriver_in_ls_2 ( uint8_t state ); - Function is used to set the state of the 'IL2' pin.
  • void hbridgedriver_in_ls_1 ( uint8_t state ); - Function is used to set the state of the 'IL1' pin.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes GPIO and LOG structures, and sets AN, RST, CS, PWM and INT pins as output and start to write log.
  • Application Initialization - Initalizes GPIO driver and turns the device on.
  • Application Task - Demonstrates use of the H-Bridge Driver Click board™ by turning connected MOSFETs gates high or low in order to drive the motor forward, in reverse, brake or coast.
void application_task ( )
{
    mikrobus_logWrite( "The motor turns forward!", _LOG_LINE );
    hbridgedriver_forward( );
    Delay_ms( 1000 );
    mikrobus_logWrite( "The motor brakes!", _LOG_LINE );
    hbridgedriver_braking( );
    Delay_ms( 1000 );
    mikrobus_logWrite( "The motor turns in reverse", _LOG_LINE );
    hbridgedriver_reverse( );
    Delay_ms( 1000 );
    mikrobus_logWrite( "The motor coasting", _LOG_LINE );
    hbridgedriver_coasting( );
    Delay_ms( 1000 );
}

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

UART to I2C click

0

UART to I2C Click is a compact add-on board allowing connections to UART controllers and I2C targets for protocol conversion. This board features the SC18IM704, a bridge between the standard UART host interface and a serial I2C bus from NXP Semiconductors. The SC18IM704 provides a high-speed UART interface with a baud rate of up to 460.8 kbit/s and 256-byte FIFO for the transfer/receive data process, alongside several user-configurable GPIO pins. The host MCU communicates with the SC18IM704 with ASCII messages protocol, allowing it to control all the specific I2C-bus sequences, protocol, arbitration, and timing.

[Learn More]

Waveform click

0

Waveform Click is a precise sine/triangle/square waveform generator, capable of reproducing frequencies up to 12MHz.

[Learn More]

Accel 3 click

0

Accel 3 Click represent 3-axis linear accelerometer.

[Learn More]