brushless4 2.0.0.0
|
Brushless 4 click is a 3 phase sensorless BLDC motor driver, which features a 180° sinusoidal drive, providing high efficiency and low acoustic noise. This type of drivers inherently provides higher torque in general, compared to classical 120° BLDC motor drivers.
We provide a library for the Brushless4 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Brushless4 Click driver.
- Initialization function.void brushless4_cfg_setup ( brushless4_cfg_t *cfg );
BRUSHLESS4_RETVAL brushless4_init ( brushless4_t *ctx, brushless4_cfg_t *cfg );
void brushless4_default_cfg ( brushless4_t *ctx );
- This function starts PWM module.void brushless4_set_duty_cycle ( brushless4_t *ctx, pwm_data_t duty_cycle );
void brushless4_pwm_start ( brushless4_t *ctx );
void brushless4_pwm_pin ( brushless4_t *ctx, uint8_t state );
This click has many features for driving a wide range of small to medium BLDC motors. It provides the rotor position digital output, via the FG pin, routed to the mikroBUS INT pin.
The demo application is composed of two sections :
Initializes the GPIO driver and configures the PWM peripheral for controlling the speed of the motor.
This is an example that demonstrates the use of a Brushless 4 Click board. Brushless 4 Click communicates with the register via the PWM interface.
Increases and decreasing the speed of the motor demonstrate speed control. Results are being sent to the Usart Terminal where you can track their changes.
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.