
6 Firmware and GUI Application
The DRV8317HEVM can implement sensored, sensorless, or Field-oriented control for commutating a 3-phase
Brushless-DC motor. The supported firmware is a sensorless Field-oriented control algorithm adapted from
Texas Instruments’
Library of motor solutions. The firmware includes motor identification and
a sensorless FOC algorithm to spin the motor. The firmware uses the DRV8317HEVM InstaSPIN Universal GUI
to run the algorithm and includes tabs to read from and write to the DRV8317 SPI registers (DRV8317S only).
The steps below will describe how to identify useful motor parameters, spin the motor, and work with the
DRV8317S SPI registers. For more information on more advanced features of the C2000 InstaSPIN Universal
GUI such as torque and speed control, MTPA, or Field-weakening, consult the MotorControl SDK InstaSPIN Lab
Guide (in the
MotorControl Software Development Kit tool page
) and
InstaSPIN-FOC and InstaSPIN-MOTION
.
6.1 C2000 InstaSPIN Universal GUI
and ensure the LAUNCHXL-F280049C is connected to the PC and the
power supply is turned on to the DRV8317HEVM PCB.
2. Search for the
GUI Composer Galllery
https://dev.ti.com/gallery/search/DRV8317xevm
. You will
need to login with a myTI account in order to access the GUI.
3. Accept the readme if the readme message pops up.
4. Select the "InstaSPOIN-FOC" tab at the top right hand corner to go to the main page of the GUI. Check the
bottom left corner of the GUI to see if the GUI flashes the algorithm to the MCU as shown in
Once the device has completed flashing the algorithm, it should show “Hardware Connected” in the bottom
left corner.
Figure 6-1. C2000 InstaSPIN Universal GUI Downloading Program
6.2 Motor Identification
1. Check the “Enable System” box to enable the InstaSPIN algorithm and run preset calibrations. Wait for the
“OffsetCalc” button to uncheck automatically to finish calibrating board offsets.
2. Check the “Run” box to begin the motor identification algorithm as shown in
begin to spin and stop as it goes through many states to calculate and identify useful motor parameters for
sensorless Field-oriented control. This should take no more than a few minutes.
3. Once the motor identification process is complete, the “Motor Identified” indicator will light up, the “Run” box
will be automatically unchecked, and the values Rs, Rs Online, Ls-d, Ls-q, Flux, and Rr will update for that
motor as shown in
. These values will be automatically used for Field-oriented control.
Firmware and GUI Application
SLVUCL3 – DECEMBER 2022
DRV8317HEVM User's Guide
15
Copyright © 2022 Texas Instruments Incorporated