Schrittmotor 15 Click-Platine
Schrittmotor 15 Click-Platine
Der Stepper 15 Click Board™ ist eine kompakte Zusatzplatine, die einen bipolaren Schrittmotortreiber enthält. Diese Platine verfügt über den DRV8889A, einen Automobil-Schrittmotortreiber mit integrierter Strommessung und Blockiererkennung von Texas Instruments. Es unterstützt bis zu 1,5 A Vollstrom mit einem internen Mikroschritt-Indexer, Smart-Tune-Decay-Technologie, erweitertem Blockiererkennungsalgorithmus und integrierter Strommessung, wodurch die Notwendigkeit von Strommesswiderständen entfällt. Mit einer einfachen STEP/DIR-Schnittstelle unterstützt das Gerät bis zu 1/256 Mikroschrittstufen, um ein gleichmäßiges Bewegungsprofil zu ermöglichen. Außerdem ermöglicht ein erweiterter Blockiererkennungsalgorithmus dem Benutzer, zu erkennen, ob der Motor angehalten hat, und bei Bedarf Maßnahmen zu ergreifen, um die Effizienz zu verbessern und Lärm zu reduzieren. Dieses Click Board™ eignet sich zum Antrieb von Motoren in allen Anwendungen, die einen präzisen und sicheren Schrittmotortreiber erfordern.
Das Stepper 15 Click Board™ wird durch eine mikroSDK-kompatible Bibliothek unterstützt, die Funktionen enthält, die die Softwareentwicklung vereinfachen. Dieses Click Board™ ist ein gründlich getestetes Produkt und kann auf einem System verwendet werden, das mit der mikroBUS™-Buchse ausgestattet ist.
How Does The Stepper 15 Click Board™ Work?
The Stepper 15 Click Board™ uses the DRV8889A, an integrated motor-driver solution for bipolar stepper motors from Texas Instruments. The DRV8889A integrates two N-channel power MOSFET H-bridges (disabled by default after Power-Up), integrated current sense and regulation circuitry, and a microstepping indexer. It can be powered with a supply voltage from 4.5 to 45V, providing an output current up to 2.4A peak, 1.5A full-scale, or 1.1A RMS.
The DRV8889A uses an integrated current-sense architecture which eliminates the need for two external power sense resistors. This architecture removes the power dissipated in the sense resistors using a current mirror approach and using the internal power MOSFETs for current sensing. It also includes an integrated torque DAC that allows the controller to scale the output current through a full-duplex, 4-wire synchronous SPI interface without needing to scale the voltage reference. The torque DAC allows the controller to save system power by decreasing the motor current consumption when high output torque is not required.
A simple STEP/DIR interface allows an external MCU to manage the direction and step rate of the stepper motor. The internal indexer can execute high-accuracy microstepping without requiring the MCU to handle the winding current level. The indexer can take the whole step, half step, and 1/4, 1/8, 1/16, 1/32, 1/64, 1/128, and 1/256 microstepping. Also, a noncircular half stepping mode is available for increased torque output at higher motor RPM in addition to a standard half stepping mode.
Unlike the STEP pin controlled by the PWM pin from the mikroBUS™ socket, other pins from the DRV8889A such as Sleep mode selection, fault indicator, direction selection, and device disable pin are controlled through a well-known 8bit I/O expander, the PCA9538 from NXP Semiconductor using the standard I2C 2-Wire interface with a maximum frequency of 400kHz. The PCA9538 also uses RST and INT pins from the mikroBUS™ socket as a hardware reset and interrupt function.
The Stepper 15 Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. It allows for both 3.3V and 5V capable MCUs to use the communication lines properly. Additionally, there is a possibility for stepper motor driver power supply selection via jumper labelled as VM SEL to supply the DRV8889A from an external input terminal in the range from 4.5 to 45V or with a 5V from mikroBUS™ power rail.
SPECIFICATIONS
Type | Stepper |
Applications | Can be used for driving motors in any application that demands a precise and safe step motor driver. |
On-board modules | DRV8889A - integrated motor-driver solution for bipolar stepper motors from Texas Instruments |
Key Features | Qualified for automotive, up to 1/256 microstepping, integrated current sense, various protection features, and more. |
Interface | SPI,I2C |
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 of the Stepper 15 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | | Pin | Notes | |||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | STP | Step-Rate | |
Reset | RST | 2 | RST | INT | 15 | INT | Interrupt |
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | SCL | I2C Clock |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | SDA | I2C Data |
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 | VM SEL | Right | DRV8889A Power Supply Selection Vext/5V: Left position Vext, Right position 5V |
JP2 | VCC SEL | Right | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
STEPPER 15 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage VCC | 3.3 | - | 5 | V |
Supply Voltage Vext | 4.5 | - | 45 | V |
Maximum Output Current | - | - | 1.5 | A |
Step Resolution | 1/256 | - | 1 | μstep |
Operating Temperature Range | -40 | +25 | +125 | °C |
Software Support
We provide a library for the Stepper 15 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 The package Manager (recommended), downloaded from our LibStock™ or found on the mikroE Github account.
Library Description
This library contains API for Stepper 15 Click driver.
Key Functions
stepper15_make_one_step
- Stepper 15 make one step function.stepper15_set_direction
- Stepper 15 set direction function.stepper15_step_by_angle
- Stepper 15 step by angle function.
Example Description
void application_task ( void ) { log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Clockwise motion rn" ); log_printf( &logger, " Angle of rotation : 90 degrees rn" ); log_printf( &logger, " Step speed : 85 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_CLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed - 15, 90, step_360 ); Delay_ms( 2000 ); log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Counterclockwise motion rn" ); log_printf( &logger, " Angle of rotation : 180 degrees rn" ); log_printf( &logger, " Step speed : 85 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_COUNTERCLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed - 15, 180, step_360 ); Delay_ms( 2000 ); log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Clockwise motion rn" ); log_printf( &logger, " Angle of rotation : 270 degrees rn" ); log_printf( &logger, " Step speed : 90 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_CLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed - 10, 270, step_360 ); Delay_ms( 2000 ); log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Counterclockwise motion rn" ); log_printf( &logger, " Angle of rotation : 360 degrees rn" ); log_printf( &logger, " Step speed : 100 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_COUNTERCLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed, 360, step_360 ); Delay_ms( 2000 ); log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Clockwise motion rn" ); log_printf( &logger, " Angle of rotation : 360 degrees rn" ); log_printf( &logger, " Step speed : 100 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_CLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed, 360, step_360 ); Delay_ms( 2000 ); } The complete application code, and ready-to-use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on the mikroE Github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Stepper15
Additional Notes and Information
Depending on the development board you are using, you may needs a USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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 Stepper 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 Stepper 15 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 The package Manager (recommended), downloaded from our LibStock™ or found on the mikroE Github account.
Library Description
This library contains API for Stepper 15 Click driver.
Key Functions
stepper15_make_one_step
- Stepper 15 make one step function.stepper15_set_direction
- Stepper 15 set direction function.stepper15_step_by_angle
- Stepper 15 step by angle function.
Example Description
void application_task ( void ) { log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Clockwise motion rn" ); log_printf( &logger, " Angle of rotation : 90 degrees rn" ); log_printf( &logger, " Step speed : 85 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_CLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed - 15, 90, step_360 ); Delay_ms( 2000 ); log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Counterclockwise motion rn" ); log_printf( &logger, " Angle of rotation : 180 degrees rn" ); log_printf( &logger, " Step speed : 85 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_COUNTERCLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed - 15, 180, step_360 ); Delay_ms( 2000 ); log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Clockwise motion rn" ); log_printf( &logger, " Angle of rotation : 270 degrees rn" ); log_printf( &logger, " Step speed : 90 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_CLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed - 10, 270, step_360 ); Delay_ms( 2000 ); log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Counterclockwise motion rn" ); log_printf( &logger, " Angle of rotation : 360 degrees rn" ); log_printf( &logger, " Step speed : 100 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_COUNTERCLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed, 360, step_360 ); Delay_ms( 2000 ); log_printf( &logger, "---------------------------------rn" ); log_printf( &logger, " Clockwise motion rn" ); log_printf( &logger, " Angle of rotation : 360 degrees rn" ); log_printf( &logger, " Step speed : 100 %% rn" ); stepper15_set_direction ( &stepper15, STEPPER15_DIRECTION_CLOCKWISE ); stepper15_step_by_angle( &stepper15, step_speed, 360, step_360 ); Delay_ms( 2000 ); } The complete application code, and ready-to-use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on the mikroE Github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Stepper15
Additional Notes and Information
Depending on the development board you are using, you may needs a USB UART Click Board™, USB UART 2 Click Board™ or RS232 Click Board™ 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 Stepper 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.
Schrittmotor 15 Click-Platine
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.