stepper16
2.0.0.0
|
<PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU>
[click Product page](<CLICK_PRODUCT_PAGE_LINK>)
We provide a library for the Stepper16 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 Stepper16 Click driver.
stepper16_cfg_setup
Config Object Initialization function. stepper16_init
Initialization function. stepper16_default_cfg
Click Default Configuration function. stepper16_hard_reset
Resets device. stepper16_set_step_resolution
Set step resolution. stepper16_move_motor_angle
Move motor in angle value. 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 :
Initializes UART and SPI communication modules, and additional
pins for motor control, resets device, set's default configuration, and reads its ID and sets
First it move motor clockwise for 360 degrees in medium speed and
full step resolution. Then changes direction and moves motor for 180 degrees in slow speed and quarter step, and additional 180 degrees in fast speed and 1/16 step resolution.
Device is powered by externam VM so for communication to work Click
board should be connected on power supply from 6V to 29V. At the start of application user should reset device and read it's Status register 1 to clear it. After that it can communicate with device and control it noramaly.
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.