TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136659 times)
  2. FAT32 Library (69896 times)
  3. Network Ethernet Library (55915 times)
  4. USB Device Library (46248 times)
  5. Network WiFi Library (41881 times)
  6. FT800 Library (41124 times)
  7. GSM click (28970 times)
  8. PID Library (26406 times)
  9. mikroSDK (26342 times)
  10. microSD click (25349 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 5 click

Rating:

5

Author: MIKROE

Last Updated: 2018-05-29

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Brushless

Downloaded: 4270 times

Not followed.

License: MIT license  

Brushless 5 click is a 3 phase sensorless BLDC motor controller, with a soft-switching feature for reduced motor noise and EMI, and precise BEMF motor sensing, which eliminates the need for Hall-sensors in motor applications.

No Abuse Reported

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

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

Do you want to report abuse regarding "Brushless 5 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 5 click

Brushless 5 click

Native view of the Brushless 5 click board.

View full image
Brushless 5 click

Brushless 5 click

Front and back view of the Brushless 5 click board.

View full image

Library Description

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

Key functions:

  • void brushless5_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 brushless5_getSpeed(uint16_t pulseSample) - Calculates the speed of accumulated pulses from the interrupt pin and returns the motor speed value.
  • uint8_t brushless5_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++)
 {
 brushless5_setSpeed(i);
 Delay_ms(10);
 }
 Delay_ms(1000);

 for(i=pwm_period;i>1;i--)
 {
 brushless5_setSpeed(i);
 Delay_ms(10);
 }
 Delay_ms(1000);
}
  • void brushless5_pwmInit() - Initializations of the PWM on the mikroBUS 1.
  • void brushless5_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

H-Bridge Driver click

5

H-Bridge Driver Click is a compact add-on board that contains an H-bridge gate driver, also known as a full-bridge pre-driver. This board features the MC33883, an H-Bridge gate driver with an integrated charge pump and independent high and low side gate drive channels from NXP Semiconductors.

[Learn More]

G2C click

0

Go to Cloud (G2C) click is a gateway Click board™ which provides a simple and reliable connection to the Click Cloud platform, a cloud-based rapid prototyping environment, hosted by MikroElektronika. Go to Cloud (G2C) click offers an unprecedented simplicity for adding Click Cloud connectivity to any embedded application, by utilizing the simple UART interface: it can be configured and managed using a minimal set of well-documented AT commands.

[Learn More]

MIC24055 click

0

MIC24055 click is the buck regulator that can deliver continuous output current up to 8A and can step down voltages from up to 19V which makes this click board easy to use with many power sources commonly available.

[Learn More]