brushless9 2.0.0.0
|
Brushless 9 Click is a compact add-on board suitable for controlling BLDC motors with any MCU. This board features the TC78B027FTG, a 1-Hall sine-wave PWM controller for three-phase brushless DC motors from Toshiba Semiconductor. It simplifies the motor selection by using only one Hall sensor input that can be used with either a single Hall sensor motor or the more conventional 3 Hall sensor motors.
We provide a library for the Brushlesss9 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 Brushlesss9 Click driver.
brushless9_cfg_setup
Config Object Initialization function. brushless9_init
Initialization function. brushless9_set_duty_cycle
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ). brushless9_set_dir
This function sets dir pin output to status setting. brushless9_set_brk
This function sets brk pin output to status setting. This application is a showcase of controlling speed and direction of brushless motor with hall sensor.
The demo application is composed of two sections :
Initialization of LOG, PWM module and additional pins for controlling motor.
In span of 2 seconds changes duty cycle from 0 to 100% and then back to 0, at the end changes direction of motor.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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.