TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136786 times)
  2. FAT32 Library (69980 times)
  3. Network Ethernet Library (55951 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41889 times)
  6. FT800 Library (41184 times)
  7. GSM click (28988 times)
  8. PID Library (26420 times)
  9. mikroSDK (26374 times)
  10. microSD click (25382 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Brushless 4 click

Rating:

5

Author: MIKROE

Last Updated: 2018-05-18

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Brushless

Downloaded: 4653 times

Not followed.

License: MIT license  

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.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Brushless 4 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Brushless 4 click" changes.

Do you want to report abuse regarding "Brushless 4 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Brushless 4 click

Brushless 4 click

Native view of the Brushless 4 click board.

View full image
Brushless 4 click

Brushless 4 click

Front and back view of the Brushless 4 click board.

View full image

Library Description

The library provides generic functions for working with the Click board.

Key functions:

  • void brushless4_motorParameters(uint8_t poles, uint8_t slots) - Sets the number of poles and slots of the motor. This needs to be set correctly for the calculation to be correct
  • uint16_t brushless4_getSpeed(uint16_t pulseSample) - Calculates the speed of accumulated pulses from the interrupt pin and returns the motor speed value.
  • uint8_t brushless4_intGet() - Returns the state of the interrupt pin.

Example description

The application is composed of three sections:

  • System Initialization - Initializes the GPIO structure.
  • Application Initialization - Initializes the GPIO driver and configures the PWM
    peripheral for controlling the speed of the motor.
  • Application Task - (code snippet) - Increases and decreases the speed of the motor
    demonstrating the speed control.
void applicationTask()
{
 for(i=0;i<pwm_period;i++)
 {
 brushless4_setSpeed(i);
 Delay_ms(10);
 }
 Delay_ms(1000);

 for(i=pwm_period;i>1;i--)
 {
 brushless4_setSpeed(i);
 Delay_ms(10);
 }
 Delay_ms(1000);
}
  • void brushless4_pwmInit() - Initializations of the PWM on the mikroBUS 1.
  • void brushless4_setSpeed(uint16_t speed) - Sets the PWM signal for the motor.


Other MikroElektronika libraries used in the example:

  • PWM Library

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

Ambient 21 click

0

Ambient 21 Click is a compact add-on board used to measure the amount of the present ambient light. This board features ams AG's TSL2591, a very-high sensitivity light-to-digital converter that transforms light intensity to a digital signal output capable of the direct I2C interface. It combines one broadband photodiode (visible plus infrared) and one infrared-responding photodiode on a single CMOS integrated circuit, providing a flexible and wide operating range of up to 88klx with an excellent responsivity close to the human eyes' response. The TSL2591 also has a programmable interrupt function and an integrated filter to reduce unwanted IR signals from the environment, improving lux accuracy across various light sources.

[Learn More]

EEPROM 3 click

2

EEPROM 3 click carries Atmel’s AT24CM02 DIP-8 socket EEPROM chip with 256 KB of memory. The board communicates with the target MCU through the mikroBUS I2C interface (SCL, SDA pins) with speeds up to 1 MHz. The chip allows for an entire page of data to be written in a single cycle. The board is designed to use either a 3.3V or a 5V power supply.

[Learn More]

DHT22 click

0

It’s a low cost reliable solution that communicates with the target board microcontroller through a single Serial Data Line.

[Learn More]