brushless21 2.0.0.0
|
Brushless 21 Click is a compact add-on board suitable for controlling brushless DC (BLDC) motors with any MCU. This board features the AMT49400, an advanced 3-phase, sensorless BLDC motor driver with integrated power MOSFETs from Allegro Microsystems. The AMT49400 is rated for an operating voltage range from 4V to 16V. Motor rotation speed is controlled by applying a duty cycle command to the PWM input, while a simple I2C interface is provided for setting motor-rated voltage, rated current, rated speed, resistance, and startup profiles.
We provide a library for the Brushless 21 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 21 Click driver.
brushless21_cfg_setup
Config Object Initialization function. brushless21_init
Initialization function. brushless21_default_cfg
Click Default Configuration function. brushless21_set_duty_cycle
This function sets the duty cycle in percentages ( Range[ 0..1 ] ). brushless21_get_motor_speed
This function reads the motor speed in Hz. brushless21_switch_direction
This function switches the motor direction by toggling the DIR bit. This example demonstrates the use of the Brushless 21 click board by driving the motor at different speeds.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets the GPIO as a default communication and enables the PWM.
Controls the motor speed by changing the PWM duty cycle once per second. The duty cycle ranges from 0% to 100%.
When the click board is configured in I2C mode the motor switches the direction at a minimal speed. Also, the chip internal temperature, VBB voltage and the motor speed readings are supported in I2C mode. 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.