Stepper 16 Click Board
Stepper 16 Click Board
The Stepper 16 Click Board™ is a compact add-on board that contains a micro-stepping stepper motor driver. This board features the NCV70517, an SPI and I/O configurable motor driver for bipolar stepper motors from ON Semiconductor. The NCV70517 contains a current−translation table and takes the next micro−step depending on the clock signal on the NXT input pin and the status of the DIR pin. It also provides an error message if an electrical error, an Undervoltage, or an elevated junction temperature is detected.
The Stepper 16 Click Board™ is fully compatible with the automotive voltage requirements and ideally suited for general−purpose stepper motor applications in the automotive, industrial, and applications with fluctuating battery supplies.
Software Support
Software Support
We provide a library for the Stepper 16 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe Github account.
Library Description
This library contains API for the Stepper 16 Click Board™driver.
Key Functions
stepper16_cfg_setup
- Config Object Initialization function.stepper16_init
- Initialization function.stepper16_default_cfg
- Click the Default Configuration function.
Example Description
This example showcases the device's ability to control the motor. It initializes the device for control and moves the motor in two directions in a variety of speeds and step resolutions for 360 degrees.
The demo application is composed of two sections :
void application_task ( void ) { static uint8_t direction = 1; log_printf( &logger, "> Move 360deg in CW direction.rn" ); stepper16_set_step_resolution( &stepper16, STEPPER16_STEP_RES_FULL ); check_error( &stepper16 ); stepper16_move_motor_angle( &stepper16, 360, STEPPER16_SPEED_MEDIUM ); direction = !direction; stepper16_set_dir( &stepper16, direction ); Delay_ms( 500 ); log_printf( &logger, "> Move 180deg in CCW direction.rn" ); stepper16_set_step_resolution( &stepper16, STEPPER16_STEP_RES_QUARTER ); check_error( &stepper16 ); stepper16_move_motor_angle( &stepper16, 180, STEPPER16_SPEED_SLOW ); Delay_ms( 1000 ); log_printf( &logger, "> Move 180deg in CCW direcion.rn" ); stepper16_set_step_resolution( &stepper16, STEPPER16_STEP_RES_1div16 ); check_error( &stepper16 ); stepper16_move_motor_angle( &stepper16, 180, STEPPER16_SPEED_FAST ); direction = !direction; stepper16_set_dir( &stepper16, direction ); Delay_ms( 2000 ); }
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe Github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Stepper16
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. 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 16 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 16 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.