hbridgedriver2
2.0.0.0
|
<PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU>
[click Product page](<CLICK_PRODUCT_PAGE_LINK>)
We provide a library for the HBridgeDriver2 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 HBridgeDriver2 Click driver.
hbridgedriver2_cfg_setup
Config Object Initialization function. hbridgedriver2_init
Initialization function. hbridgedriver2_default_cfg
Click Default Configuration function. hbridgedriver2_run_forward
H-Bridge Driver 2 run forward function. hbridgedriver2_run_backward
H-Bridge Driver 2 run backward function. hbridgedriver2_stop_with_brake
H-Bridge Driver 2 stop with brake function. This library contains API for the H-Bridge Driver 2 Click driver. This demo application shows the use of a H-Bridge Driver 2 Click boardâ„¢.
The demo application is composed of two sections :
Initialization of SPI, PWM module and log UART. After driver initialization and default settings, the application displays the device ID data, sets PWM duty cycle to 50% and start PWM module.
This example demonstrates the use of the H-Bridge Driver 2 Click boardâ„¢. The application turns connected MOSFETs gates high or low in order to drive the motor forward, backward, stop with brake or stop. Results are being sent to the Usart Terminal, where you can track their changes.
display_status
Display status function. 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.