# Title: Stepper 15 Click Board™ ## Description: 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 ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Motor Control, Stepper, Stepper Motor Controller, Stepper Motor Driver ## Price range: 24.5 - 24.5 GBP ## Link: https://thedebugstore.com/products/mikroe-4639-stepper-15-click-board-uk ## Compare-at price range: 35.0 - 35.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Motor Control Click Boards™](https://thedebugstore.com/a/llms/collections/motor-control-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Stepper Motor Control Click Boards™](https://thedebugstore.com/a/llms/collections/stepper-motor-control-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-4639, Available: yes, Inventory: 1 ## Metafields - full_description:
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.
| 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 |
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 |
| 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 |
| 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 |
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.
This library contains API for Stepper 15 Click driver.
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.
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:
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.
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.
- attachments: [{"download_file":[{"download_file":"Stepper 15 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Texas Instruments PCA9538 8-Bit I/O Expander Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Texas Instruments DRV8889A Stepper Motor Driver Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - device_vendor: NXP USA Inc., Texas Instruments - device_type: PCA9538ABSHP, DRV8889QPWPRQ1 - warranty: 12 months - brand: MikroE - manufacturer: Mikroelektronika d.o.o. - target_keyword: Stepper 15 Click Board - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545248957","gid://shopify/Collection/279405232317"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"heading","level":3,"children":[{"type":"text","value":"How Does The Stepper 15 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Stepper 15 Click Board™","bold":true,"italic":true},{"type":"text","value":" 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."}]},{"type":"paragraph","children":[{"type":"text","value":""},{"type":"text","value":""},{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"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."}]},{"type":"paragraph","children":[{"type":"text","value":"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."}]},{"type":"paragraph","children":[{"type":"text","value":"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."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Stepper 15 Click Board™","bold":true},{"type":"text","value":" 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."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nStepper\nApplications\nCan be used for driving motors in any application that demands a precise and safe step motor driver.\nOn-board modules\nDRV8889A - integrated motor-driver solution for bipolar stepper motors from Texas Instruments\nKey Features\nQualified for automotive, up to 1/256 microstepping, integrated current sense, various protection features, and more.\nInterface\nSPI,I2C\nCompatibility\nmikroBUS\nClick board size\nL (57.15 x 25.4 mm)\nInput Voltage\n3.3V or 5V,External"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout of the "},{"type":"text","value":"Stepper 15 Click Board™","bold":true},{"type":"text","value":" corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\n\nPin\nNotes\nNC\n1\nAN\nPWM\n16\nSTP\nStep-Rate\nReset\nRST\n2\nRST\nINT\n15\nINT\nInterrupt\nSPI Chip Select\nCS\n3\nCS\nRX\n14\nNC\nSPI Clock\nSCK\n4\nSCK\nTX\n13\nNC\nSPI Data OUT\nSDO\n5\nMISO\nSCL\n12\nSCL\nI2C Clock\nSPI Data IN\nSDI\n6\nMOSI\nSDA\n11\nSDA\nI2C Data\nPower Supply\n3.3V\n7\n3.3V\n5V\n10\n5V\nPower Supply\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nLD1\nPWR\n-\nPower LED Indicator\nJP1\nVM SEL\nRight\nDRV8889A Power Supply Selection Vext/5V: Left position Vext, Right position 5V\nJP2\nVCC SEL\nRight\nLogic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"STEPPER 15 CLICK ELECTRICAL SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Description\nMin\nTyp\nMax\nUnit\nSupply Voltage VCC\n3.3\n-\n5\nV\nSupply Voltage Vext\n4.5\n-\n45\nV\nMaximum Output Current\n-\n-\n1.5\nA\nStep Resolution\n1/256\n-\n1\nμstep\nOperating Temperature Range\n-40\n+25\n+125\n°C"}]},{"type":"heading","level":3,"children":[{"type":"text","value":" "}]}]} - summary:The Stepper 15 Click Board™ is a compact add-on board that contains a bipolar stepper motor driver. This board features the DRV8889A, an automotive stepper driver with integrated current sense and stall detection from Texas Instruments. It supports up to 1.5A full-scale current with an internal microstepping indexer, smart tune decay technology, advanced stall detection algorithm, and integrated current sensing, eliminating the need for power sense resistors. With a simple STEP/DIR interface, the device supports up to 1/256 levels of microstepping to enable a smooth motion profile. Also, an advanced stall detection algorithm allows users to detect if the motor stopped and take action as needed, improving efficiency and reducing noise. This Click Board™ is suitable for driving motors in any application that demands a precise and safe step motor driver.
The Stepper 15 Click Board™ is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click Board™ comes as a thoroughly tested product, ready to be used on a system equipped with the mikroBUS™ socket.