hbridgedriver2
2.0.0.0
|
H-Bridge Driver 2 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 NCV7535, a monolithic H−bridge pre-driver for a DC motor with an enhanced feature set, useful in automotive systems from ON Semiconductor. The gate driver channels are independently controlled by a 24-bit SPI interface, allowing this Click board™ to be optionally configured in a single or dual H-bridge mode. It has a wide operating voltage range from 6V to 18V with built-in protection features against short-circuit, under/over voltage, overcurrent, and overtemperature conditions. This Click board™ is suitable to drive external MOSFETs, thus providing control of a DC-motor.
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.