Carte à clic pour moteur à courant continu 21
Carte à clic pour moteur à courant continu 21
Overview
Le Moteur à courant continu 21 Click Board™ est une carte complémentaire compacte qui contient un pilote de moteur à courant continu à balais. Cette carte comprend l'A3910, un pilote de moteur à courant continu conçu pour les applications d'alimentation basse tension d'Allegro Microsystems. Il est contrôlé via plusieurs broches GPIO et dispose d'une large plage de tension de fonctionnement avec une capacité de courant de sortie de 500 mA. En plus de la possibilité d'être utilisé dans la configuration en pont complet pour piloter un seul moteur à courant continu bidirectionnel, il peut également être utilisé comme un double demi-pont pour piloter deux moteurs à courant continu. L'utilisation d'un commutateur MOS intégré améliore l'action de freinage du moteur, par rapport à la mise en œuvre avec une simple diode de serrage. En outre, il dispose également d'une protection intégrée telle qu'une protection contre les courants croisés et un arrêt thermique.
Le moteur à courant continu 21 Click Board™ est adapté à l'entraînement de moteurs à courant continu à balais et destiné au marché grand public et industriel avec des applications finales pour les équipements basse tension.
How Does The DC Motor 21 Click Board™ Work?
The DC Motor 21 Click Board™ is based on the A3910, a dual half-bridge motor driver designed for low voltage power applications from Allegro Microsystems. The DC Motor 21 Click Board™ is controlled via several GPIO pins of the mikroBUS™ socket and has a wide operating voltage range with an output current capacity of 500mA maximum. The integrated MOSFETs, which configures a half-bridge circuit inside the A3910, provide the possibility to drive dual DC motors but also allow to be used in the full-bridge configuration to drive a single bidirectional DC motor. Thanks to its plane features and benefits, the DC Motor 21 Click Board™ is targeted at the consumer market with end applications to low voltage equipment.
Using an integrated MOS switch improves braking action for the motor, compared to implementation with a simple clamp diode. Besides, it also features built-in protection such as crossover current and thermal shutdown protection, alongside "Sleep" Standby mode with zero drain-current.
As mentioned in the product description, the DC Motor 21 Click Board™ communicates with MCU using several GPIO pins. To turn ON the internal MOSFETs of the A3910, they need to be switched by the logic level, which is input to the control input pins: HN1, LN1, HN2, and LN2 pins routed to the AN, CS, PWM, and INT pins of the mikroBUS™ socket. Thereby, the Drive/Break/Coast/Sleep motor functions can be selected according to the state of its input control signals.
The DC Motor 21 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 communication lines properly. However, the 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 driving DC brushed motors and targeted at the consumer and industrial market with end applications to low voltage equipment |
On-board modules | A3910 - dual half-bridge motor driver designed for low voltage power applications from Allegro Microsystems |
Key Features | Low power consumption, full- and half-bridge configuration, low rds, Standby mode with zero drain-current, crossover and thermal shutdown protection, and more |
Interface | GPIO |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout on the DC Motor 21 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Motor 1 Control Input | HN1 | 1 | AN | PWM | 16 | HN2 | Motor 2 Control Input |
NC | 2 | RST | INT | 15 | LN2 | Motor 2 Control Input | |
Motor 1 Control Input | LN1 | 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 | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
DC MOTOR 21 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Maximum Output Current | - | - | 500 | mA |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the DC Motor 21 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The 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 the DC Motor 21 Click Board™ driver.
Key functions
-
dcmotor21_set_out_1
This function sets the state of output 1. -
dcmotor21_set_out_2
This function sets the state of output 2.
Example Description
This example demonstrates the use of the DC Motor 21 Click Board™.
void application_task ( void )
{
dcmotor21_set_out_1 ( &dcmotor21, DCMOTOR21_OUT_LOW );
dcmotor21_set_out_2 ( &dcmotor21, DCMOTOR21_OUT_HIGH );
log_printf( &logger, " rn Driving the motor...rn" );
Delay_ms( 2000 );
dcmotor21_set_out_1 ( &dcmotor21, DCMOTOR21_OUT_HIGH );
dcmotor21_set_out_2 ( &dcmotor21, DCMOTOR21_OUT_LOW );
log_printf( &logger, " Switch direction.rn" );
Delay_ms( 2000 );
dcmotor21_set_out_1 ( &dcmotor21, DCMOTOR21_OUT_HIGH_Z );
dcmotor21_set_out_2 ( &dcmotor21, DCMOTOR21_OUT_HIGH_Z );
log_printf( &logger, " The motor is disconnected.rn" );
Delay_ms( 2000 );
}
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.DCMotor21
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. UART terminal is available in all MikroElektronika compilers.
MIKROSDK
The DC Motor 21 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 21 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The 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 the DC Motor 21 Click Board™ driver.
Key functions
-
dcmotor21_set_out_1
This function sets the state of output 1. -
dcmotor21_set_out_2
This function sets the state of output 2.
Example Description
This example demonstrates the use of the DC Motor 21 Click Board™.
void application_task ( void )
{
dcmotor21_set_out_1 ( &dcmotor21, DCMOTOR21_OUT_LOW );
dcmotor21_set_out_2 ( &dcmotor21, DCMOTOR21_OUT_HIGH );
log_printf( &logger, " rn Driving the motor...rn" );
Delay_ms( 2000 );
dcmotor21_set_out_1 ( &dcmotor21, DCMOTOR21_OUT_HIGH );
dcmotor21_set_out_2 ( &dcmotor21, DCMOTOR21_OUT_LOW );
log_printf( &logger, " Switch direction.rn" );
Delay_ms( 2000 );
dcmotor21_set_out_1 ( &dcmotor21, DCMOTOR21_OUT_HIGH_Z );
dcmotor21_set_out_2 ( &dcmotor21, DCMOTOR21_OUT_HIGH_Z );
log_printf( &logger, " The motor is disconnected.rn" );
Delay_ms( 2000 );
}
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.DCMotor21
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. UART terminal is available in all MikroElektronika compilers.
MIKROSDK
The DC Motor 21 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.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.