Carte de clic pour moteur à courant continu 15
Carte de clic pour moteur à courant continu 15
Le DC Motor 15 Click Board™ est une carte complémentaire compacte qui contient un pilote de moteur avec détection et régulation de courant. Cette carte comprend le DRV8874, un pilote de moteur intégré avec pont en H à canal N, pompe de charge, détection de courant et réglage de Texas Instruments. La fonction de détection et de régulation de courant élimine le besoin d'une grande résistance shunt de puissance, économisant ainsi de la surface de la carte et réduisant le coût du système. La sortie de détection de courant permet à un microcontrôleur de détecter les calages du moteur ou les changements de conditions de charge. Le DRV8874 peut également réguler le courant du moteur pendant le démarrage et les événements de charge élevée sans interaction du microcontrôleur. Ce Click Board™ convient aux moteurs à courant continu à balais et aux servomoteurs et aux actionneurs, aux appareils électroménagers, aux outils électriques portatifs et bien d'autres.
Le DC Motor 15 Click est pris en charge par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette Click Board™ est un produit entièrement testé, prêt à être utilisé sur un système équipé de la prise mikroBUS™.
How Does The DC Motor 15 Click Board™ Work?
The DC Motor 15 Click Board™ is based on the DRV8874, an integrated motor driver with N-channel H-bridge, charge pump, current sensing and proportional output, current regulation, and protection circuitry from Texas Instruments. The DRV8874 operates from the external power supply from 4.5V to 37V providing a wide range of output load currents for various types of motors and loads. The charge pump feature improves efficiency by supporting N-channel MOSFET half-bridges and 100% duty cycle driving. This Click board™ also integrates current sensing, regulation, and feedback. These features allow for the DRV8874 to sense the output current without an external sense resistor or sense circuitry reducing system cost and complexity. This also allows for the device to limit the output current in the case of the motor stall or high torque events and give detailed feedback to the MCU about the load current through a current proportional output on the AN pin of the mikroBUS™ labeled as IPR.
The DRV8874 integrates an H-bridge output power stage that can be operated in different control modes set by the PMODE pin setting. The PMODE pin on this Click board™ is set to a logic low level that means that the device is latched into PH/EN mode. PH/EN mode allows for the H-bridge to be controlled with a speed and direction type of interface through two GPIO pins labeled as IN2 and IN1, routed to the PWM and CS pins of the mikroBUS™ socket. It also has a Sleep Mode that achieves ultra-low quiescent current draw by shutting down most of the internal circuitry. The SLP pin routed to the RST pin of the mikroBUS™ socket provides an ultra-low power mode to minimize current draw during system inactivity.
The DC Motor 15 Click Board™ communicates with MCU using several GPIO pins as mentioned before in the product description. In addition to the pins used to adjust the speed and rotation direction of the motor, this Click board™ also has an interrupt labeled as FLT routed to the INT pin of the mikroBUS™ socket used to protect the device and the output load. The DRV8874 enters a Fault Mode when a fault is encountered, and leave the Fault Mode, and re-enter the Active Mode when the recovery condition is met.
The DC Motor 15 Click Board™ is designed to be operated with both 3.3V and 5V logic voltage levels that can be selected via VCC SEL jumper. This allows for both 3.3V and 5V capable MCUs to use the GPIO 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 for a brushed DC and servo motor and actuator drive, home appliances, handheld power tools, and many more. |
On-board modules | The DC Motor 15 Click Board™ is based on the DRV8874, an integrated motor driver with N-channel H-bridge, charge pump, current sensing and proportional output, current regulation, and protection circuitry from Texas Instruments. |
Key Features | High output current capability, integrated current sensing and regulation, proportional current output, selectable current regulation and control modes, low power consumption, and more. |
Interface | GPIO |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout of thenC Motor 15 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Analog Current Output | IPR | 1 | AN | PWM | 16 | IN1 | Motor control input 1 |
Sleep Mode | SLP | 2 | RST | INT | 15 | FLT | Fault Indicator |
Motor Control Input 2 | IN2 | 3 | CS | RX | 14 | NC | |
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Power Supply Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
DC MOTOR 15 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 4.5 | - | 3.7 | V |
Maximum Output Current | 0 | - | 6 | A |
Current sense output current | - | - | 3 | mA |
Operating Temperature Range | -40 | - | +125 | °C |
Software Support
We provide a library for the DC Motor 15 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions to control the DC Motor 15 Click Board™. The DC Motor 15 Click Board™ communicates with the target board through the RST, CS, PWM and INT pins on mikroBUS™. This library offers functions for setting or clearing of RST, CS and PWM pins, and check the state of the INT pin, also user can use functions that drive motor forward and in reverse or apply brake functions.
Key Functions
void dcmotor15_forward ( );
- Function is used to drive the motor forward.void dcmotor15_reverse ( );
- Function is used to drive the motor in reverse.void dcmotor15_brake ( );
- Function is used to brake the motor.
Example Description
The application is composed of three sections :
- System Initialization - Initializes LOG structure and sets RST, CS and PWM pins as output, and INT pin as input.
- Application Initialization - Initializes GPIO driver, powers up the device and starts log.
- Application Task - This example demonstrates the use of the DC Motor 15 Click Board™ by driving the connected motor forward for 5 seconds, than braking for 2 second, and driving it in reverse for 5 more seconds, braking again for 2 second afterwards.
void application_task ( ) { mikrobus_logWrite( "The motor turns forward!", _LOG_LINE ); dcmotor15_forward( ); Delay_ms( 5000 ); mikrobus_logWrite( "The motor brakes!", _LOG_LINE ); dcmotor15_brake( ); Delay_ms( 2000 ); mikrobus_logWrite( "The motor turns in reverse!", _LOG_LINE ); dcmotor15_reverse( ); Delay_ms( 5000 ); mikrobus_logWrite( "The motor brakes!", _LOG_LINE ); dcmotor15_brake( ); Delay_ms( 2000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The DC Motor 15 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.
Software Support
We provide a library for the DC Motor 15 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library covers all the necessary functions to control the DC Motor 15 Click Board™. The DC Motor 15 Click Board™ communicates with the target board through the RST, CS, PWM and INT pins on mikroBUS™. This library offers functions for setting or clearing of RST, CS and PWM pins, and check the state of the INT pin, also user can use functions that drive motor forward and in reverse or apply brake functions.
Key Functions
void dcmotor15_forward ( );
- Function is used to drive the motor forward.void dcmotor15_reverse ( );
- Function is used to drive the motor in reverse.void dcmotor15_brake ( );
- Function is used to brake the motor.
Example Description
The application is composed of three sections :
- System Initialization - Initializes LOG structure and sets RST, CS and PWM pins as output, and INT pin as input.
- Application Initialization - Initializes GPIO driver, powers up the device and starts log.
- Application Task - This example demonstrates the use of the DC Motor 15 Click Board™ by driving the connected motor forward for 5 seconds, than braking for 2 second, and driving it in reverse for 5 more seconds, braking again for 2 second afterwards.
void application_task ( ) { mikrobus_logWrite( "The motor turns forward!", _LOG_LINE ); dcmotor15_forward( ); Delay_ms( 5000 ); mikrobus_logWrite( "The motor brakes!", _LOG_LINE ); dcmotor15_brake( ); Delay_ms( 2000 ); mikrobus_logWrite( "The motor turns in reverse!", _LOG_LINE ); dcmotor15_reverse( ); Delay_ms( 5000 ); mikrobus_logWrite( "The motor brakes!", _LOG_LINE ); dcmotor15_brake( ); Delay_ms( 2000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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.
MIKROSDK
The DC Motor 15 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.
Carte de clic pour moteur à courant continu 15
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.