How does it work?
DC Motor 29 Click is based on the DRV8245P, an automotive H-Bridge driver with integrated current sense and diagnostic from Texas Instruments. The driver operates from 4.5V up to 35V and supports a wide range of output load currents for various motors and loads. It integrates an N-channel H-bridge, charge pump regulator, high-side current sensing with regulation, current proportional output, and protection circuitry. The H-bridge output power stage can be operated in different control modes, which allows you to drive a single bidirectional brushed DC motor or two unidirectional brushed DC motors over screw terminals. The driver offers voltage monitoring, load diagnostics, and protection features against overcurrent and overtemperature.
DC Motor 29 Click uses a standard 4-wire SPI serial interface to communicate with the host MCU. The TXS0104, a 4-bit bidirectional voltage-level translator from Texas Instruments, does the logic-level translation. The driver load current analog feedback is available over the IP pin. The controller input 1 for bridge operation is available over the IN1 pin.
The PCA9538, an 8-bit I/O port from NXP, provides additional functionalities from the motor driver to the host MCU and can be reset over the RST pin. It provides an input of the controller input 2 for bridge operation. These two controller inputs allow you to use different control schemes. The mode scheme can be changed anytime over the software. The I/O port also allows you to disable the motor driver. The fault conditions are also monitored over this IC. If a fault condition occurs, the host MCU will be asserted over the FLT pin. The I2C address of the I/O port can be selected over the ADDR SEL jumpers.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing 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 for the development of automotive brushed DC motors, solenoids, door modules, wiper motors, body control modules, steering systems, gas engine systems, and more
On-board modules
DRV8245P – automotive H-Bridge driver with integrated current sense and diagnostic from Texas Instruments
Key Features
AEC-Q100 qualified for automotive applications, wide voltage operating range, configurable slew rate, and speed spectrum, integrated current sense, proportional load current output, protection and diagnostic features, and more
Interface
I2C,SPI
Feature
ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V,External
Pinout diagram
This table shows how the pinout on DC Motor 29 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 |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2-JP3 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
DC Motor 29 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Motor Voltage Operating Range | 4.5 | – | 35 | V |
Maximum Output Current | – | – | 32 | A |
Maximum PWM Frequency | – | – | 25 | kHz |
Software Support
We provide a library for the DC Motor 29 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for DC Motor 29 Click driver.
Key functions
-
dcmotor29_register_write
DC Motor 29 data register writing function. -
dcmotor29_port_expander_read
DC Motor 29 port ecpander read register function. -
dcmotor29_drive_motor
DC Motor 29 drive motor function.
Example Description
This example demonstrates the use of the DC Motor 29 Click board™ by driving the motor in both directions with braking and coasting in between.
void application_task ( void )
{
dcmotor29_drive_motor( &dcmotor29, DCMOTOR29_DRIVE_MOTOR_CW );
log_printf( &logger, " Driving motor Clockwise rn" );
Delay_ms( 5000 );
dcmotor29_drive_motor( &dcmotor29, DCMOTOR29_DRIVE_MOTOR_BRAKE );
log_printf( &logger, " Brake is on rn" );
Delay_ms( 5000 );
dcmotor29_drive_motor( &dcmotor29, DCMOTOR29_DRIVE_MOTOR_CCW );
log_printf( &logger, " Driving motor counter-clockwise rn" );
Delay_ms( 5000 );
dcmotor29_drive_motor( &dcmotor29, DCMOTOR29_DRIVE_MOTOR_COASTING );
log_printf( &logger, " Driving motor Coasting rn" );
Delay_ms( 5000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.DCMotor29
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 MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE 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.