brushless22 2.0.0.0
|
Brushless 22 Click is a compact add-on board suitable for controlling brushless DC (BLDC) motors with any MCU. This board features the MTD6508, a 3-phase full-wave sensorless driver for BLDC motors from Microchip Technology. It features 180° sinusoidal drive, high torque output, and silent drive, rated for an operating voltage range including both mikroBUS™ power rails, and comes with speed control achieved through pulse-width modulation (PWM). Besides, it features several diagnostic circuits and drive-control functions such as motor lock protection, overcurrent limitation, and thermal shutdown protection.
We provide a library for the Brushless 22 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 22 Click driver.
brushless22_cfg_setup
Config Object Initialization function. brushless22_init
Initialization function. brushless22_default_cfg
Click Default Configuration function. brushless22_set_slew_rate_resistance
This function sets the slew rate resistance by configuring the onboard digital potentiometer. brushless22_set_duty_cycle
This function sets the PWM duty cycle in percentages ( Range[ 0..1 ] ). brushless22_switch_direction
This function switches the direction by toggling the DIR pin state. This example demonstrates the use of the Brushless 22 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 500ms.
The duty cycle ranges from 0% to 100%. 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.