TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136554 times)
  2. FAT32 Library (69757 times)
  3. Network Ethernet Library (55855 times)
  4. USB Device Library (46195 times)
  5. Network WiFi Library (41816 times)
  6. FT800 Library (41010 times)
  7. GSM click (28931 times)
  8. PID Library (26386 times)
  9. mikroSDK (26297 times)
  10. microSD click (25305 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: 4619 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

Buck 19 click

0

Buck 19 Click is a compact add-on board that steps down the voltage from its input (supply) to its output (load). This board features the STPD01, a programmable synchronous buck converter from STMicroelectronics, providing power supply in applications following USB power delivery specifications. The STPD01 provides the desired voltage levels required by USB power delivery systems (USB PD 3.0) via I2C serial interface up to 60W output power, more precisely voltages in the range of 3V to 20V with a step of 20mV minimum, and currents from 0.1A to 3A with a minimum in steps of 50mA. It also offers advanced protection features such as overvoltage, overcurrent, and overtemperature detections.

[Learn More]

Gyro 5 click

5

Gyro 5 Click is a three-axis gyroscope Click board that can sense motion over three perpendicular axes. It is equipped with the ITG-3701, a three-axis digital gyroscope.

[Learn More]

OPTO 2 click

5

Opto 2 click is an optical isolator used to provide an optical galvanic isolation of sensitive lines.

[Learn More]