DRV8328 GUI User Guide

1. Overview

This graphical user interface (GUI) was developed to allow simple evaluation of a user’s motor with the DRV8328AEVM being controlled by TI’s MSPM0 microcontroller. This guide will go over the key parts of the GUI to allow you to get up and running quickly. You can access the GUI described in this document here.

1.1 Getting Started with GUI

The GUI allows the user to configure various settings required for BLDC motor control. The user can adjust settings like duty cycle, PWM Frequency, deadband, direction control, acceleration rate, ADC reference, fault status monitoring, speed monitoring.

1.2 Hardware Connection

Perform the following steps to begin using the GUI:

  1. Connect the BLDC motor to the DRV8328AEVM.

  2. Make the necessary connections for connecting LP-MSPM0G3507 to DRV8328AEVM.

  3. Plug in the micro-USB cable to the PC.

  4. Enable the power supply to EVM.

View the hardware user guide for detailed steps required to get the hardware in the right state to run this GUI example.

2. Using the GUI

The GUI will automatically program the LaunchPad with the necessary firmware. If everything is successful the bottom left corner of the GUI should say “Hardware connected”.

3. GUI Window

In the GUI window user can find various controls like nSLEEP, DRVOFF, Direction control, duty cycle, pwm frequency, deadband, and acceleration rate. Various faults are also indicated using LEDs.

3.1 Motor Control

Once the hardware connections are done and GUI is connected to device, the motor is ready to spin. All the controls are in defaults. The user can spin the motor by adjusting the duty cycle.

Note: In DRV8328AEVM the nSleep and DRVOFF pins are default controlled by switches provided on EVM. The user need to modify hardware connections to control nSleep and DRVOFF pins from GUI. Please refer to hardware user guide for modifications.

Function

Default

Description

nSLEEP

Awake

Controls the DRV low power status and sets the duty cycle to zero

DRVOFF

ON

Controls the DRV pwm output and sets the duty cycle to zero

Direction

Reverse

Controls the direction of motor spinning

PWM Frequency

20kHz

PWM Frequency can be varied from 1kHz to 100kHz

Deadband

320ns

Deadband can be varied from 100ns to 1000ns

Duty cycle

0%

Minimum of 5 percent is applied to start spinning

Acceleration rate

20

Duty cycle is incremented or decremented at a rate of 1% per 20ms

3.2 Motor Braking

The motor can be stopped from GUI without turning off the DRV by using stop button. The motor stops spinning with brake type selected.

Function

Default

Description

Run/Stop

Run

Stops the motor according to the braking type

Braking type

Coast

Braking type can be coast or brake.

3.3 Current setting

The DRV8328AEVM has an external current sense amplifier with fixed gain of 20 V/V. A shunt resistor and current reference are provided for current measurement. The user need to input all these parameters into GUI.

Function

Default

Description

CSA gain

20V/V

CSA gain is fixed to 20 V/V

CSA Vref

3.3V

External voltage reference for current monitoring.

Rshunt

1mohm

Shunt resistance value used for current measurement.

3.4 Fault Status

The firmware continuously monitors the motor parameters, in case of any fault occurred it is indicated by LED. The user can set the voltage and current limits from GUI.

Fault

Function

Description

UV

Undervoltage fault

LED glows when module voltage is less than undervoltage limit

OV

Overvoltage fault

LED glows when module voltage is more than overvoltage limit

OC

Overcurrent fault

LED glows when phase current is more than overcurrent limit

DRV

DRVFault

LED glows when DRV generates a fault

3.5 ADC Reference Setting

The user can use 3 different ADC references, which can be changed from the GUI.

Function

Default

Description

ADC VREF

ADC Reference Voltage

User reference voltage source of VDDA, internal reference, or external reference.

INT VREF

ADC VREF 2.5V

Internal reference can be 2.5V or 1.4V

EXT VREF

3300mV

User need to input the external reference voltage applied

When VDDA is used as ADC reference the data input in internal reference and external reference is ignored.

3.6 Voltage and Current Monitoring

The user can monitor the motor parameters like bus voltage, bus current and phase voltages. The user can see the bus voltage and bus current graphs.

3.7 Speed Monitoring

When the motor starts spinning the user can see the motor speed displayed in RPM. The user needs to input the number of poles in the motor used. The user must enter even number of poles failing which the speed calculation go wrong.

image0a