Microsemi SmartFusion2 Demo Manual
Microsemi SmartFusion2 Demo Manual

Microsemi SmartFusion2 Demo Manual

Dual-axis motor control starter kit
Hide thumbs Also See for SmartFusion2:
Table of Contents

Advertisement

DG0598
Demo Guide
SmartFusion2 Dual-Axis Motor Control Starter Kit

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SmartFusion2 and is the answer not in the manual?

Questions and answers

Summary of Contents for Microsemi SmartFusion2

  • 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...
  • Page 3: Table Of Contents

    Revision 1.0 ............... 1 2 SmartFusion2 Dual-Axis Motor Control Starter Kit ......2 Introduction .
  • Page 4 Identifying the SmartFusion2 Motor Control Kit USB Driver ....... 5...
  • Page 5 Jumper Settings on the SmartFusion2 Starter Kit Board ....... .
  • Page 6: Revision History

    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.
  • Page 7: Smartfusion2 Dual-Axis Motor Control Starter Kit

    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.
  • Page 8: Demo Design Features

    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...
  • Page 9: Installing The Motor Control Gui

    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 •...
  • Page 10: Figure 2 Identifying The Smartfusion2 Motor Control Kit Usb Driver

    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.
  • Page 11: Figure 3 Device Manager

    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...
  • Page 12: Figure 4 Installing The Usb Driver - Opening The Properties Window

    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.
  • Page 13: Figure 5 Selecting The Right Vid Number In The Properties Window

    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.
  • Page 14: Figure 7 Updating Driver Software - Locate And Install The Driver Software Manually

    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.
  • Page 15: Figure 9 Model Selection

    SmartFusion2 Dual-Axis Motor Control Starter Kit 10. Select MSCC_UsbHID and click Next. Figure 9 • Model Selection 11. Click Install. Figure 10 • Windows Security Dialog DG0598 Demo Guide Revision 7.0...
  • Page 16: Figure 11 Successful Installation Message

    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...
  • Page 17: Running The Demo Design

    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...
  • Page 18: Figure 14 Smartfusion2 Motor Control Gui - Launch Window

    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...
  • Page 19: Running The Bldc Motors

    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...
  • Page 20: Figure 16 Configuring Motor Parameters Window

    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 •...
  • Page 21: Figure 18 Smartfusion2 Motor Control Gui - Run Or Stop All Motors

    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.
  • Page 22: Figure 19 Smartfusion2 Motor Control Gui - Start Plotting

    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.
  • Page 23: Figure 21 Plot Waveforms Window With Options

    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: ...
  • Page 24: Figure 22 Smartfusion2 Motor Control Gui - Displaying Speed And Current

    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...
  • Page 25: Running Stepper Motors

    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.
  • Page 26: Continuous Mode

    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.
  • Page 27: Figure 25 Smartfusion2 Motor Control Gui - Stepper Motor In Position Mode

    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.
  • Page 28: Figure 26 Configure Stepper Motor Parameters Window

    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...
  • Page 29: Register Dump Feature

    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.
  • Page 30: Figure 28 Register Dump Window-Bldc Tab

    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.
  • Page 31: Figure 29 Register Dump Window-Stepper Tab

    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.
  • Page 32: Figure 30 Sample Csv File

    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...
  • Page 33: Appendix: Jumper Settings

    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...
  • Page 34: Appendix: Connecting The Motor Terminals

    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.
  • Page 35: Stepper Motor Connections

    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 –...

Table of Contents