Page 1
DG0598 Demo Guide SmartFusion2 Dual-Axis Motor Control Starter Kit...
Page 2
Within the USA: +1 (800) 713-4113 with the Buyer. Microsemi does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other IP rights, whether with regard to such information itself or anything described by such information. Information provided in this...
The following is a summary of changes made in revision 7.0 of this document. • Design Requirements, page 2 was edited to change the version of Libero SoC to v11.8 SP2 and the version of Microsemi Motor Control GUI to v5.8. • Programming files and GUI files links were edited in Demo Design, page 2 with respect to Libero v11.8 SP2 release.
The kit helps designers in customizing and developing dual-axis motor control solution on the SmartFusion2 device for a specific application and reduces time-to-market. This document provides details about the hardware setup and connections for running the demo design.
Setting Up the Hardware The following figure shows the hardware setup for one BLDC motor in sensorless FOC and a stepper motor in FOC. Figure 1 • SmartFusion2 Dual Axis Motor Control Demo Hardware Setup DG0598 Demo Guide Revision 7.0...
SmartFusion2 Dual-Axis Motor Control Starter Kit 2.5.1.1 Connecting the Board The following steps describe how to connect the board: Connect the 24 V power supply to J12 connector. Connect the BLDC motor (QBL4208-41-04-006) to J2 connector. • Black wire - U-Phase of the motor •...
The downloaded programming file must be programmed on the board before proceeding for driver installation. Connect the host PC to the J17 connector on the SmartFusion2 Motor Control Kit using the USB A to mini-B USB cable. Connect the power adapter to the kit and switch ON the SW3 switch.
SmartFusion2 Dual-Axis Motor Control Starter Kit Open Device Manager of the host PC and select USB Input Device under Human Interface Devices, as shown in the following figure. Figure 3 • Device Manager DG0598 Demo Guide Revision 7.0...
SmartFusion2 Dual-Axis Motor Control Starter Kit Right-click USB Input Device and select Properties. Figure 4 • Installing the USB Driver - Opening the Properties Window The following figure shows the USB Input Device Properties window. In the Details tab, select Hardware Ids under Property.
SmartFusion2 Dual-Axis Motor Control Starter Kit Verify that the VID number is 1514. If not, go to Step 3 and select a different device and try again. Figure 5 • Selecting the Right VID Number in the Properties Window In the Device Manager window, right-click the USB Input Device with the specified VID number and select Update Driver Software, as shown in the following figure.
SmartFusion2 Dual-Axis Motor Control Starter Kit Select Browse my computer for driver software from the Update Driver Software - USB Input Device window. Figure 7 • Updating Driver Software - Locate and Install the Driver Software Manually Click Let me pick from a list of device drivers on my computer and click Next as shown in the following figure.
SmartFusion2 Dual-Axis Motor Control Starter Kit After successful installation, the following window is displayed. Figure 11 • Successful Installation Message 12. Check for NI-VISA-USB Devices in the Device Manager window to ensure that the driver is installed successfully. Figure 12 • Verifying the Installed Driver Software...
After installing the GUI, go to Start menu and select SF2 Dual Axis Motor Control GUI to open the GUI as shown in the following figure. Figure 13 • Launching the SmartFusion2 Dual-Axis Motor Control GUI DG0598 Demo Guide Revision 7.0...
SmartFusion2 Dual-Axis Motor Control Starter Kit In the SmartFusion2 Motor Control GUI, select the USB device with VID 0x1514 and PID 0x2015 (USB0::0x1514::0x2015..) from the USB DEVICE drop-down list. Figure 14 • SmartFusion2 Motor Control GUI - Launch Window Click Connect. On successful connection, the Connect button (highlighted in...
PI controller parameters, and angle correction PI parameters. Click Configure to invoke the Configure Motor Parameters window. Figure 15 • SmartFusion2 Motor Control GUI - BLDC Motor Screen The PI controller parameters (Kp and Ki values) can be modified using the Configure Motor...
SmartFusion2 Dual-Axis Motor Control Starter Kit On clicking, Configure Motor Specification highlighted in the following figure, Motor Specifications Configuration window opens, which allows to change the listed parameters. Figure 16 • Configuring Motor Parameters Window Figure 17 • Motor Specifications Configuration Window •...
In the event of a fault occurrence, it is indicated in the indicator above the Clear Fault button. To clear a Fault, click Clear Fault highlighted in the following figure. Figure 18 • SmartFusion2 Motor Control GUI - Run or Stop All Motors Click Motor Direction to set the motor direction. This button also indicates the current motor direction.
The GUI automatically plots waveforms when motor starts running. The plotting can be paused by clicking the pause button highlighted in the following figure. Figure 19 • SmartFusion2 Motor Control GUI - Start Plotting Click Expand Plot Window to display the debug waveforms in a separate window as shown in the following figure.
SmartFusion2 Dual-Axis Motor Control Starter Kit Note: The following figure shows the plots corresponding to the motor axis. All plots are in per unit where a value of 65536 represents the rated value. Figure 21 • Plot Waveforms Window with Options Right-click on the plot menu to invoke the following options: ...
SmartFusion2 Dual-Axis Motor Control Starter Kit To view the motor speed on a tachometer dial, click RPM and Current as highlighted in the following figure. Figure 22 • SmartFusion2 Motor Control GUI - Displaying Speed and Current DG0598 Demo Guide Revision 7.0...
10. Click Save Waveform to save the current waveform in the GUI as a.tdms file. The saved waveform can be reloaded by using the Load Waveform option and loading the.tdms file. Figure 23 • SmartFusion2 Motor Control GUI - Saving and Loading Waveforms Running Stepper Motors This design runs stepper motors in Continuous Mode and Position Mode: Note: The Continuous Mode is selected by default.
Click GET to see the current parameters. Click Configure to open a list of configurable parameters. Figure 24 • SmartFusion2 Motor Control GUI - Stepper Motor Window Click Reset to reset all the stepper parameters to their default values, and click SET to enter these values into the system.
3. The following figure shows the GUI in position mode. Figure 25 • SmartFusion2 Motor Control GUI - Stepper Motor in Position Mode The motor runs at the speed set by the user in Speed (RPM) through the number of steps entered in Command Steps as shown in the preceding figure.
Click Configure to open the Configure Stepper Motor Parameters window, as shown in the following figure. Figure 26 • Configure Stepper Motor Parameters Window Click STOP to stop the motor/de-energize the motor. Click EXIT to exit the SmartFusion2 Motor Control GUI. DG0598 Demo Guide Revision 7.0...
SmartFusion2 Dual-Axis Motor Control Starter Kit Register Dump Feature The register dump feature generates a csv file with data to be programmed in each FPGA register, which is calculated based on motor configuration inputs. Click the icon marked in the following figure to open the Register Dump window.
SmartFusion2 Dual-Axis Motor Control Starter Kit The following figure shows the BLDC tab of the register dump window. The Save to File button opens a dialog box to specify the location and the name of the csv file. The generated csv file contains only the data corresponding to the BLDC blocks.
SmartFusion2 Dual-Axis Motor Control Starter Kit The following figure shows the Stepper tab of the register dump window. The Save to File button opens a dialog box to specify the location and the name of the csv file. The generated csv file contains only the data corresponding to the stepper blocks.
SmartFusion2 Dual-Axis Motor Control Starter Kit The following figure shows a sample csv file, which contains data calculated based on the inputs provided in the register dump window. Figure 30 • Sample Csv File DG0598 Demo Guide Revision 7.0...
Appendix: Jumper Settings Appendix: Jumper Settings The following table lists the jumpers that are required to be set on the SmartFusion2 Starter Kit board. Table 2 • Jumper Settings on the SmartFusion2 Starter Kit Board Jumper Function Default Settings Notes...
Appendix: Connecting the Motor Terminals Appendix: Connecting the Motor Terminals BLDC Motor Connections The following steps describe how to connect to the BLDC motor: Identify and isolate the BLDC Motor Terminals (set of 3) and Hall Sensor Terminals (set of 5), as shown in the following figure.
Appendix: Connecting the Motor Terminals 4.1.1 Stepper Motor Connections The stepper motor has four terminals. The motor terminals of the stepper motor must be connected to the four pin plug, as shown in the following figure. Figure 33 • Wiring Diagram for Stepper Motor Connectors Stepper Motor QSH 4218-35-10-027 Black –...
Need help?
Do you have a question about the SmartFusion2 and is the answer not in the manual?
Questions and answers