How does it work?
H-Bridge 10 Click as its foundation uses the MP6523, a triple, half-bridge motor driver from Monolithic Power Systems (MPS). The MP6523 contains three MOSFET half-bridge outputs that can drive up to three different loads with separate controls for high-side or low-side MOSFETs from a standard serial data interface. It has a low quiescent current in standby mode, making it suitable for many applications. The input voltage ranges from 7V to 28V, with up to 0.9A output current capability per channel. Complete protection features include short-circuit protection, under-voltage protection, and thermal shutdown.
This Click board™ communicates with MCU through a standard SPI interface and operates at clock rates up to 3MHz, providing data in digital format of 16-bits. It also can be enabled or disabled through the EN pin routed to the PWM pin of the mikroBUS™ socket; hence, offering a switch operation to turn ON/OFF power delivery to the MP6523. It also provides a fault status indication signal, labeled as FLT and routed to the INT pin of the mikroBUS™ socket, alongside its red LED indicator marked as FLT to indicate different fault conditions such as current limit and thermal shutdown.
A unique addition that this board has is checking the existence of an external power supply. By adding resistors R4 and R5, the user can monitor and check the presence of an external power supply on the VS terminal via the voltage divider routed to the AN pin of the mikroBUS™ socket.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library that contains easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Brushed
Applications
Can be used as a multiple brushed DC motor driver for driving various loads in automotive and industrial applications, and more
On-board modules
MP6523 – triple, half-bridge motor driver from Monolithic Power Systems (MPS)
Key Features
Integrated power MOSFETs drive up to three different loads, low power consumption, high level of programming, high level diagnostics, protection features, and more
Interface
Analog,SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V,External
Pinout diagram
This table shows how the pinout on H-Bridge 10 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
LD2 | FLT | – | Fault LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
R4-R5 | R4-R5 | Unpopulated | Power Supply Existence Check Jumpers |
H-Bridge 10 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage VCC | 3.3 | – | 5 | V |
External Supply Voltage VS | 7 | – | 28 | V |
Maximum Output Current (per channel) | – | – | 0.9 | A |
Operating Temperature Range | -40 | +25 | +120 | °C |
Software Support
We provide a library for the H-Bridge 10 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.
Library Description
This library contains API for H-Bridge 10 Click driver.
Key functions
-
hbridge10_set_output_state
This function sets the output channel state. -
hbridge10_get_status
This function reads the status of output register. -
hbridge10_get_fault_pin
This function returns the fault (FLT) pin logic state.
Example Description
This example demonstrates the use of the H-Bridge 10 Click board™ by driving the motors connected between OUT1-OUT2 and OUT2-OUT3 in both directions.
void application_task ( void )
{
uint16_t status;
if ( ( HBRIDGE10_OK == hbridge10_set_output_state ( &hbridge10, HBRIDGE10_CHANNEL_OUT1, HBRIDGE10_OUT_HIGH ) ) &&
( HBRIDGE10_OK == hbridge10_set_output_state ( &hbridge10, HBRIDGE10_CHANNEL_OUT2, HBRIDGE10_OUT_LOW ) ) &&
( HBRIDGE10_OK == hbridge10_set_output_state ( &hbridge10, HBRIDGE10_CHANNEL_OUT3, HBRIDGE10_OUT_HIGH ) ) )
{
Delay_ms ( 100 );
if ( HBRIDGE10_OK == hbridge10_get_status ( &hbridge10, &status ) )
{
hbridge10_display_status ( status );
Delay_ms ( 3000 );
}
}
if ( ( HBRIDGE10_OK == hbridge10_set_output_state ( &hbridge10, HBRIDGE10_CHANNEL_OUT1, HBRIDGE10_OUT_LOW ) ) &&
( HBRIDGE10_OK == hbridge10_set_output_state ( &hbridge10, HBRIDGE10_CHANNEL_OUT2, HBRIDGE10_OUT_HIGH ) ) &&
( HBRIDGE10_OK == hbridge10_set_output_state ( &hbridge10, HBRIDGE10_CHANNEL_OUT3, HBRIDGE10_OUT_LOW ) ) )
{
Delay_ms ( 100 );
if ( HBRIDGE10_OK == hbridge10_get_status ( &hbridge10, &status ) )
{
hbridge10_display_status ( status );
Delay_ms ( 3000 );
}
}
}
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.HBridge10
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. UART terminal is available in all MikroElektronika compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.