hbridge5 2.0.0.0
|
The H-Bridge 5 Click is designed for control DC motors and inductiv loads. This Click boardâ„¢ contains the MP6515GF-Z, a H-bridge motor driver from MPS, It features an Full H-Bridge driver with Internal safety features include over-current protection, input over-voltage protection, under voltage lockout (UVLO), and thermal shutdown.
We provide a library for the HBridge5 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for HBridge5 Click driver.
- Initialization function.void hbridge5_cfg_setup ( hbridge5_cfg_t *cfg );
HBRIDGE5_RETVAL hbridge5_init ( hbridge5_t *ctx, hbridge5_cfg_t *cfg );
void hbridge5_default_cfg ( hbridge5_t *ctx );
- Puts motor into reverse motion.void hbridge5_set_port ( hbridge5_t *ctx, uint8_t port, uint8_t value );
void hbridge5_reverse ( hbridge5_t *ctx );
void hbridge5_foreward ( hbridge5_t *ctx );
This application controls DC motors and inductive loads.
The demo application is composed of two sections :
Initalizes I2C driver, configures all ports as output and writes an initial log.
This example demonstrates the use of H-Bridge 5 Click board, by running dc motor forward, then stoping and then running it in reverse and stoping again.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.