brushless15 2.0.0.0
|
Brushless 15 Click is a compact add-on board suitable for controlling BLDC motors with any MCU. This board features the TB9061AFNG, an automotive pre-driver that incorporates a sensorless controller for driving a 3-phase full-wave brushless DC motor from Toshiba Semiconductor. The TB9061AFNG achieves 120° rectangular wave motor control by using an input signal line that measures the induced voltage of the motors and three-phase motor output without using Hall sensors, rated for an operating voltage range of 6 to 18V. Motor rotation can be controlled by either the DC or the PWM input signal. Besides, it features several diagnostic circuits and drive-control functions such as motor lock detection, step-out detection, over-current/over-temperature detection, and many more.
We provide a library for the Brushless 15 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 15 Click driver.
brushless15_cfg_setup
Config Object Initialization function. brushless15_init
Initialization function. brushless15_default_cfg
Click Default Configuration function. brushless15_set_duty_cycle
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ). brushless15_enable_device
This function enables the device by setting the EN pin to low logic state. brushless15_switch_direction
This function switches the direction by toggling the DIR pin state. This example demonstrates the use of the Brushless 15 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 once per second. 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 maximal PWM Clock frequency for this click board is 1 kHz. So, depending on the selected setup the user will need to lower the MCU's main clock frequency in the setup in order to get the PWM clock frequency down to 1 kHz.
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.