stepper19
2.1.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the Stepper 19 Click 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.
This library contains API for Stepper 19 Click driver.
stepper19_cfg_setup
Config Object Initialization function. stepper19_init
Initialization function. stepper19_default_cfg
Click Default Configuration function. stepper19_rotate_by_angle
This function rotates the shaft through a desired step speed and angle. stepper19_rotate_by_step
This function rotates the shaft through for the specific number of steps at the selected speed. stepper19_set_direction
This function sets the desired direction of motor movement: clockwise or counterclockwise. This example demonstrates the use of Stepper 19 Click board by driving the motor in both directions for a desired rotation angle.
The demo application is composed of two sections :
The initialization of I2C module and log UART. After driver initialization, the app sets the default configuration.
The application task represents an example that demonstrates the use of the Stepper 19 Click board with which the user can sequentially move the motor. The first part of the sequence executes the clockwise/counterclockwise motor movement for an angle of 90 degrees with a step speed of 50%, all the way to the last sequence of the same movement routine of 360 degree angle with a step speed of 90%. Results are being sent to the UART Terminal, where you can track their changes.
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:
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 MikroElektronika compilers.