brushless23 2.0.0.0
|
Brushless 23 Click is a compact add-on board suitable for controlling BLDC motors with any MCU. This board features the TC78B011FTG, a three-phase sine-wave PWM pre-driver realized with six external MOSFETs to drive sensorless brushless motors from Toshiba Semiconductor. Some of the main features are a built-in closed-loop speed control function with internal non-volatile memory (NVM) for speed profile setting and the ability to set other features such as rotation direction selection, brake, Standby mode, and others. It also has a wide operating voltage range of 11V to 27V with an output current capacity of 5A and several built-in error detection circuits.
We provide a library for the Brushless 23 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 Brushless 23 Click driver.
brushless23_cfg_setup
Config Object Initialization function. brushless23_init
Initialization function. brushless23_default_cfg
Click Default Configuration function. brushless23_pwm_set_duty_cycle
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ). brushless23_switch_direction
This function switches the direction by toggling the DIR pin state. brushless23_get_motor_speed
This function reads the motor speed in Hz. This example demonstrates the use of the Brushless 23 click board by driving the motor in both directions at different speeds.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Controls the motor speed by changing the PWM duty cycle every 2 seconds.
The duty cycle ranges from 20% to 80%. At the minimal speed, the motor switches direction. Each step will be logged on the USB UART where you can track the program flow.
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.