stepper17
2.0.0.0
|
Stepper17 Click example. More...
Macros | |
#define | FULL_CIRCLE 50 |
Functions | |
void | application_init (void) |
void | application_task (void) |
void | main (void) |
Stepper17 Click example.
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.
#define FULL_CIRCLE 50 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
void main | ( | void | ) |