Brushless click
1
Brushless click
Brushless click
Brushless click
IC
Interface
Power supply
Product page
Schematic
Toshiba's TB6575FNG
[1]
PWM,INT,AN and RST pins
5V
www.mikroe.com/click/brushless
Brushless click schematic
[3]
[2]
Brushless click carries Toshiba's TB6575FNG IC for driving 3-phase full-wave Brushless DC motors
—
which are
ideal for powering flying drones. The click is able to safely drive external motors with up to 32V/2A.
The board features three pairs of onboard screw terminals. VBAT is for connecting an external 7-32V power supply.
The other two are for connecting an external motor.
The IC controls the rotation speed by changing the PWM duty cycle by analog voltage.
Features and usage notes
Motor position detection error
Position detection is synchronized with the PWM signal generated in the IC. When the IC is used in a high speed
motor a position detection error relative to the PWM frequency may occur. The detection is performed on the falling
edge of the PWM signal. An error is recognized when the pin voltage exceeds the reference voltage.
MOSFET chips
Two types of MOSFET chips on board switch the output on and off (N-channel 40V and P-channel 30V). They are
here for electronic motor control
–
switching the output on and off controls the voltage levels applied to the motor
and this in turn determines the speed and rotation of the motor shaft.
To ensure a more secure connection there are three pairs of screw terminals - CON1 for the power supply and CON2
and CON3 for connecting to the motor. The U,V and W pins control the motor rotation direction. The Brushless
click communicates with the target board MCU over the PWM pin, as well as INT, AN and RST pins.
Brushless click
The board is designed to use a
5V power supply
only.
2
Application:
Automotive industry, drones (because of the good power-to weight ratio of the motor), computers, medical
equipment, HVAC systems, small home appliances, robotics, battery powered systems, small cooling fans in
computers, toys, etc.
Key features:
• TB6575FNG driver for sensorless communication
• 5V power supply
• Overcurrent protection
•
•
•
•
20-mA current sink capability on PWM output pins
MOSFET chips toggle the output on and off
MCP6281 prevents phase reversal
Lead angle control (7.5° and 15°)
• Forward/reverse rotation
• Input voltage
−0.3
to VDD + 0.3V
• Green LED indicates that power is on
• Operating temperature -30°C to 105°C
Pinout diagram
This table shows how the pinout on Brushless click corresponds to the pinout on the mikroBUS™ socket (the latter
shown in the two middle columns).
Notes
Pin
mikroBUS
Measures the voltage of the DC power supply
VSENSE
1 AN
Motor direction
DIR
NC
NC
NC
NC
This click works on 5V only
Ground
NC
GND
2 RST
3 CS
4 SCK
5 MISO
6 MOSI
7 +3.3V
8 GND
tm
Pin
Notes
X
PWM 16
PWM
Duty cycle control
INT
RX
TX
SCL
SDA
+5V
15
INT
14 NC
13 NC
12 NC
11 NC
10
+5V
GND
+5V power input
Ground
Rotation speed sensing output
GND 9
Brushless click
3
Programming
This code snippet initializes required ports, ADC channels and PWM module. It also initializes TFT and sets motor
direction. In an endless loop, if button is pressed, we increment or decrement current PWM duty by STEP, which
consequently change the rotating speed of BLDC motor.
Code example
1 void main()
2 {
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 }
}
}
Delay_ms(20);
// current_speed display
WordToStr(current_speed, txt);
TFT_Rectangle(150, 80, 250, 110);
TFT_Write_Text(txt, 150, 80);
}
PWM_TIM5_Set_Duty(current_speed,
_PWM_NON_INVERTED, _PWM_CHANNEL1); // set newly acquired duty ratio
}
if (GPIOD_IDR.B6) {
Delay_ms(10);
current_speed = current_speed - STEP;
if (current_speed > pwm_period)
{
current_speed = pwm_period;
// set current_duty to value of pwm_period
// if we decrease current_duty greater then possible pwm_period value (overflow)
// button on PD6 pressed
}
PWM_TIM5_Set_Duty(current_speed,
_PWM_NON_INVERTED, _PWM_CHANNEL1);
// set newly acquired duty ratio
MCU_Init();
TFT_Init_ILI9341_8bit(320, 240);
TFT_BLED = 1;
DrawFrame();
MOTOR_DIR = CCW;
while(1) {
if (GPIOD_IDR.B3) {
Delay_ms(10);
current_speed = current_speed + STEP;
if (current_speed > pwm_period)
{
current_speed = 0;
// reset current_duty value to zero
// increment current_duty
// if we increase current_duty greater then possible pwm_period value
// button on PD3 pressed
// Setting motor direction to counter-clock-wise
// TFT Init
Code examples for Brushless click, written for MikroElektronika hardware and compilers are available on Libstock
[4]
.
Brushless click
4
Resources
•
•
•
•
Brushless click data sheet
[1]
Library
[4]
Brushless click schematic
[5]
mikroBUS™ standard specifications
[6]
References
[1]
[2]
[3]
[4]
[5]
[6]
https:/ / toshiba. semicon-storage. com/ ap-en/ product/ linear/ motordriver/ detail. TB6575FNG. html
http:/ / www. mikroe. com/ click/ brushless
http:/ / cdn-docs. mikroe. com/ images/ 7/ 7a/ Brushless_schematic_v100. pdf
http:/ / libstock. mikroe. com/ projects/ view/ 1951/ brushless-click-example
http:/ / cdn-docs. mikroe. com/ images/ e/ e4/ Brushless-click. pdf
http:/ / www. mikroe. com/ mikrobus/
Article Sources and Contributors
5
Article Sources and Contributors
Brushless click
Source: http://docs.mikroe.com/index.php?oldid=2193 Contributors: Biljana.nedeljkovic, Lana.vulic, Srdjan.misic, Vojislav.gvozdic
Image Sources, Licenses and Contributors
File:Click brushless new front.jpg
Source: http://docs.mikroe.com/index.php?title=File:Click_brushless_new_front.jpg License: unknown Contributors: Vojislav.gvozdic
File:mikrobus logo.png
Source: http://docs.mikroe.com/index.php?title=File:Mikrobus_logo.png License: unknown Contributors: Vojislav.gvozdic
License
Creative Commons Attribution
https:/ / creativecommons. org/ licenses/ by/ 4. 0/