OFF
MIKROE-4125
19 g
Status:
The Stepper 14 Click is a Click board™ that features the DRV8847PWPR, a step motor driver, from Texas Instruments. This Click board™ provides a bipolar step motor controle, It features an H-bridge bipolar step motor driver, which supports full-, half-, quarter-, or eighth-step modes. This click board™ also carries a port expander so that the communication can be done with a minimal number of pins, through the mikroBUS™ I2C bus. This click board™ offers thermal protection, integrated kickback voltage protection, it has a wide range of input voltage, protection against current shoot-through the H-Bridge and high current capability. These features make Stepper 14 click an ideal solution for driving motors in any application that demands a precise and safe step motor driver.
Stepper 14 click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
This click board™ is equipped with two integrated circuits. The step motor driver IC is the DRV8847PWPR, a dual full-bridge motor driver from Texas Instruments. This IC internal structure is somewhat symmetrical. It features two MOSFET H-bridges used to drive two coils of a bipolar step motor in both directions. The DRV8847PWPR uses a wide input voltage range - from 2.7V to 18V. This is the voltage used to energize the motor coils. A jumper (JP4) is used to select whether to use external power supply or to obtain the power supply from the mikroBUS™ +3.3V or +5V rail. The DRV8847PWPR has two PHASE inputs which are used to control the direction of current flow through H-bridges and thus, the motor coils. It also allows controlling step motor in both full step and half step modes, by toggling states on MS1 and MS1 pins.
The bipolar step motor coils can be connected to the onboard screw terminals. There are two terminals, used to connect each of the step motor coils. The third connector is used to connect an external voltage, ranging from 2.7V to 18V, depending on the used motor voltage requirements. It should be noted that without a valid external voltage connected to this terminal, the motor will not work. Also, it should be noted that 20V is an absolute maximum voltage allowed as per datasheet, thus the overtemperature protection might be activated when driving heavier loads. The recommended maximum voltage should not exceed 18V, as stated on the silkscreen layer of the PCB.
All of the DRV8847PWPR control lines are routed to the second IC on Stepper 14 board, which is the PCA9538A, a well-known 8bit I/O expander with a serial interface, used on many of the MikroElektronika’s designs for its simplicity and reliability. It allows the control lines of the DRV8847PWPR IC to be driven via the I2C and few pins it uses - reducing the required pin count of the Stepper 14 click. This also allows for sending compact I2C messages, instead of toggling several pins at once - which can introduce problems with timing sometimes, especially when those pins belong to different MCU ports. By changing states of the six control pins, it is possible to drive the step motor in full step mode as well as the half step mode. However, provided MikroElektronika libraries contain simple and intuitive functions to fully control the bipolar step motor, connected to Stepper 14 click. Their usage is demonstrated in the included example application, which can be used as a reference for a custom design.
The motor power supply can be connected to the input terminal labeled as VIN and should be within the range of 2.7V to 18V. Stepper motor coils can be connected to the terminals labeled as A1, B2, B1, and A2. The Click board™ supports an optional external power supply for the motor in order to work.
However, this Click board™ can be supplied and interfaced with both 3.3V and 5V without the need for any external components. The onboard SMD jumper labeled as VCC SEL allows voltage selection for interfacing with both 3.3V and 5V microcontrollers.
Type
Stepper
Applications
Refrigerator damper and ice maker, Washers, dryers and dishwashers, Electronic point-of-sale (ePOS) printers , Stage lighting equipment, Miniature circuit breakers and smart meters etc.
On-board modules
DRV8847PWPR Dual Full-Bridge 18V, 1A, Stepper Motor Driver, from Texas Instruments; PCA9538A 8bit I/O Expander with Serial Interface, from NXP
Key Features
Dual H-bridge motor driver, Single or dual brushed DC motors, One bipolar stepper motor, Solenoid loads, Multiple control interface options.
Interface
GPIO,I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
This table shows how the pinout on Stepper 14 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Power Supply Voltage Selection: Left position 3V3, right position 5V |
JP2 | ADDR SEL | Left | Slave address selection: Left position 0, right position 1. |
JP3 | ADDR SEL | Left | Slave address selection: Left position 0, right position 1. |
JP4 | VM SEL | Left | Power select jumper for motor power supply: left position - On-board supply, right position - External supply. |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Input Voltage | 2.7 | - | 18 | V |
Output current | - | - | 1 | A |
We provide a library for the Stepper 14 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 Stepper 14 Click driver.
Key functions
stepper14_set_direction
This function sets the motor direction to clockwise or counter-clockwise in ctx->direction.
stepper14_set_step_mode
This function sets the step mode resolution settings in ctx->step_mode.
stepper14_drive_motor
This function drives the motor for the specific number of steps at the selected speed.
Example Description
This example demonstrates the use of the Stepper 14 Click by driving the motor in both directions for a desired number of steps.
void application_task ( void )
{
log_printf ( &logger, " Move 200 full steps clockwise, speed: mediumrnn" );
stepper14_set_direction ( &stepper14, STEPPER14_DIR_CW );
stepper14_set_step_mode ( &stepper14, STEPPER14_MODE_FULL_STEP );
stepper14_drive_motor ( &stepper14, 200, STEPPER14_SPEED_MEDIUM );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
log_printf ( &logger, " Move 400 half steps counter-clockwise, speed: fastrnn" );
stepper14_set_direction ( &stepper14, STEPPER14_DIR_CCW );
stepper14_set_step_mode ( &stepper14, STEPPER14_MODE_HALF_STEP );
stepper14_drive_motor ( &stepper14, 400, STEPPER14_SPEED_FAST );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
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:
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.
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.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.