stepper17
2.0.0.0
|
Stepper 17 Click is a compact add-on board that contains a bipolar stepper motor driver. This board features the TB67S539FTG, a two-phase bipolar stepping motor driver using a PWM chopper from Toshiba Semiconductor.
We provide a library for the Stepper17 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 Stepper17 Click driver.
stepper17_cfg_setup
Config Object Initialization function. stepper17_init
Initialization function. stepper17_default_cfg
Click Default Configuration function. stepper17_reset_electrical_angle
Reset electrical angle to initial state. stepper17_step_resolution
Step resolution setting. stepper17_set_en_state
Enable stepping motor output. This is an example application for showing Stepper 17 click
ability to control motor. First, it sets default configuration, then runs motor on every turn it stops when makes a full circle and it changes direction on every iteration and on every CW movement changes step resolution.
The demo application is composed of two sections :
Initialization of UART(for logging states and errors), I2C and PWM
modules and additional GPIO's. Sets default configuration for click board and starts motor rotating in CW direction in 1/32 step resolution.
Runs motor one circle, stops and pauses for 2seconds,
and runs motor in opposite direction. On every CW run it changes step resolution. It loops from 1/2 step resolution to 1/32 resolution.
Click is tested with motor with 1 step = 1.8degree with PWM
configured with 1500Hz. You may need to lower MCU frequency to reach 1500Hz PWM frequency.
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.