Stepper 13 Click Board
Stepper 13 Click Board
The Stepper 13 Click Board™ is a bipolar step motor driver. It features an H-bridge bipolar step motor driver, which supports full-, half-, quarter-, or eighth-step modes. Stepper 13 click also carries a port expander so that the communication can be done with minimal pins through the mikroBUS™ I2C bus. This click board™ offers thermal protection and 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 13 click an ideal solution for driving motors in any application that demands a precise and safe step motor driver.
The Stepper 13 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.
Software Support
We provide a library for the Stepper 13 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
Library carries everything needed for stepper motor control including speed and acceleration setup. Library is also adjustable to working on different amount of ticks per second, also speed and acceleration can be provided in float format. Buffer used for movement calculation is defined by user so this library can be adjusted for MCUs with very limited RAM resources. Check documentation for more details how to use it.
Key Functions
uint8_t stepper13_setSpeed( float minSpeed, float maxSpeed, float accelRatio, T_STEPPER13_OBJ obj )
- Setup motor speeduint8_t stepper13_setRoute( const uint8_t direction, uint32_t steps, T_STEPPER13_OBJ obj )
- Setup new routevoid stepper13_start( T_STEPPER13_OBJ obj )
- Start motor movement
Example Description
The application is composed of three sections :
- System Initialization - Initializes all GPIO pins found on Stepper_13 Click and timer to 1ms interrupt.
- Application Initialization - First segment initializes driver and stepper control. Second segment setup movement limits, maximum and minimum speed, and acceleration ratio. The third segment enables the motor and set up new route which will be called from the application task.
- Application Task - (code snippet) - Sequentially moves motor. The first part of the sequence executes movement until the end. The second part stops motor movement after one second and continues the sequence after two seconds.
void applicationTask() { stepper13_start( (T_STEPPER13_OBJ)&myStepper ); while ( myStepper.status.running ) { stepper13_process( (T_STEPPER13_OBJ)&myStepper ); } Delay_ms( 2000 ); stepper13_start( (T_STEPPER13_OBJ)&myStepper ); Delay_ms( 1000 ); stepper13_stop( (T_STEPPER13_OBJ)&myStepper ); Delay_ms( 2000 ); }
In addition to library function calls example carries necessay Timer ISR and Timer initialization. Check Timer initialization setings and update it according to your MCU - Timer Calculator.
The full application code, and ready to use projects can be found on our LibStock page.
Additional Notes and Information
Depending on the development board you are using, you may need 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 13 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.
Stepper 13 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.