brushless14 2.0.0.0
|
Brushless14 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Brushless14 Click example.
This application example showcases ability of the device to control motor, It's speed and rotation direction. Also it gives user ability to change other configuration parameters.
The demo application is composed of two sections :
Initialization of communication modules (I2C, PWM, UART) and additional pins (INT, DIR). It reads ID from DAC ic to confirm communcation. Then configures device for control.
Drives motor using PWM from 10% duty cycle to 100% and back to 0%. Increment is done by 10% in span of 2 seconds. Whenever application gets to 0% duty cycle it chages direction of rotation.
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 | ) |
int main | ( | void | ) |