Brushless 2 click
PID: MIKROE-2754
Brushless 2 click
carries the DRV10964 BLDC motor controller with an integrated output stage
from Texas Instruments. The click is designed to run on either 3.3V or 5V power supply. It
communicates with the target microcontroller over the following pins on the mikroBUS™ line:
AN, RST, CS, PWM, INT.
How the click works
A 3 wire BLDC motor can be connected over the screw terminals; speed is controlled through
PWM pin on the mikroBUS™ line. The click also has feedback on the interrupt pin (INT), so
you can see exactly how fast the motor is going.
DRV10964 motor driver features
The DRV10964 is a three-phase sensorless motor driver with integrated power MOSFETs. It is
specifically designed for high-efficiency, low-noise and low-external component count motor
drive applications. The proprietary sensorless windowless 180° sinusoidal control scheme offers
ultra-quiet motor drive performance.
The DRV10964 contains an intelligent lock detect function, combined with other internal
protection circuits to ensure safe operation.
Specifications
Type
DC
The automotive industry, drones (because of the good power‐to weight ratio of
brushless motors), computers, medical equipment, HVAC systems, small home
appliances, robotics, battery powered systems, small cooling fans in computers, toys, etc.
DRV10964 5‐V, three‐phase sinusoidal sensorless BLDC motor driver
Applications
On‐board
modules
Key Features Input voltage range 2.1 to 5.5 V
Interface
GPIO,PWM
Input Voltage 3.3V or 5V
Click board
size
S (28.6 x 25.4 mm)
Pinout diagram
This table shows how the pinout on
Brushless 2 click
corresponds to the pinout on the
mikroBUS™ socket (the latter shown in the two middle columns).
Notes
Resistor setting for
configuring the handoff
threshold sense
Motor direction selection
Speed indicator selector
Pin
Pin
Notes
CFG
1
AN
PWM
16
PWM
Speed control
input
FR
FGS
NC
2
3
4
5
6
7
8
RST
CS
SCK
MISO
MOSI
3.3V
GND
INT
TX
RX
SCL
SDA
5V
GND
15
14
13
12
11
10
9
NC
NC
NC
NC
NC
+5V
Power supply
GND
Ground
NC
NC
Power supply
Ground
+3.3V
GND
Jumpers and settings
Designator Name
Default
Position
Default
Option
3V3
Description
Power supply selection, left position 3V3, right
position 5V
JP1
PWR.SEL. Left
Programming
Code examples for Brushless 2 click, written for MikroElektronika hardware and compilers are
available on Libstock.
Code snippet
This code example shows how to change the speed and direction of the motor by pressing
buttons on the development board.
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
uint8_t const
maxPwmDuty
=
255;
uint8_t
currentDuty
=
20
;
uint8_t
oldstate
=
0;
void
systemInit()
{
ANCON0
=
0x00;
ANCON1
=
0x00;
ANCON2
=
0x00;
PWM2_Init(5000);
PWM2_Start();
PWM2_Set_Duty(currentDuty);
MOTOR_DIR_PIN_Direction
=
0;
}
void
Brushless_2_Init()
{
MOTOR_DIR_PIN
=
1;
}
void
Brushless_2_Task()
{
if
(Button(&PORTB,
1, 1, 1))
{
currentDuty++;
PWM2_Set_Duty(currentDuty);
if
(currentDuty
>
maxPwmDuty)
currentDuty
=
0;
}
if
(Button(&PORTB,
5, 1, 1))
{
oldstate
=
1;
}
if
(oldstate
&&
Button(&PORTB,
5, 1, 0))
{
MOTOR_DIR_PIN
= ~MOTOR_DIR_PIN;
oldstate
=
0;
}
41
42
43
44
45
46
47
48
49
50
51
52
}
void
main()
{
systemInit();
Brushless_2_Init();
while(
1
)
{
Brushless_2_Task();
}
}
https://shop.mikroe.com/brushless‐2‐click 9‐29‐17