Remote Drive Quick Start Guide, Inc. (USA) 14100 Murphy Avenue San Martin, CA 95046 (408) 852-0067 http://www.slscorp.com Version : 0.1.1 Date : July 17, 2007
Copyright 2007,.All rights reserved. SLS, An Embedded systems company, the stylized SLS logo, specific device designations, and all other words and logos that are identified as trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of SLS in India and other countries. All other products or service names are the property of their respective holders. SLS products are protected under numerous U.S. and foreign patents and pending applications, mask working rights, and copyrights. SLS warrants performance of its semiconductor products to current specifications in accordance with SLS is standard warranty, but reserves the right to make changes to any products and services at any time without notice. SLS assumes no responsibility or liability arising out of the application or use of any information, products, or service described herein except as expressly agreed to in writing by SLS. SLS customers are advised to obtain the latest version of specifications before relying on any published information and before orders for products or services. MPD_SO11_RD_QG_011 ii
About this Tutorial Introduction This document explains the procedure to run the Remote Drive application on DE1/DE2 Board using SLS Stackable Stepper Motor Controller and IR Receiver Board. We assume that the user is familiar with the usage of SLS Stackable Stepper Motor Controller Board, SLS IR Receiver and DE1/DE2 Board. Table below shows the Revision history of. Version Date Description 0.1.1 First Publication of Remote Drive Quick Start Guide. How to Contact SLS For the most up-to-date information about SLS products, go to the SLS worldwide website at http://www.slscorp.com. For additional information about SLS products, consult the source shown below. Information Type Product literature services, SLS literature services, Non-technical customer services, Technical support. E-mail support@slscorp.com iii
Typographic Conventions Typographic Conventions uses the typographic conventions shown as below. Visual Cue Meaning Bold Type with Initial Capital Letters All Headings and Sub Headings Titles in a document are displayed in bold type with initial capital letters; Example: Introduction, About Application Bold Type with Italic Letters 1. 2. All Definitions, Figure and Table Headings are displayed in Italics. Examples: Figure 1. Connection of E-Gasket with DE2 Board Numbered steps are used in a list of items, when the sequence of items is important. such as steps listed in procedure. Bullets are used in a list of items when the sequence of items is not important. The hand points to information that requires special attention The caution indicates required information that needs special consideration and understanding and should be read prior to starting or continuing with the procedure or process. The warning indicates information that should be read prior to starting or continuing the procedure or processes. The feet direct you to more information on a particular topic. iv
Contents About this Tutorial... iii Introduction...iii How to Contact SLS...iii Typographic Conventions...iv Quick Start Guide... 1 Introduction... 1 Before you Begin... 1 About Application... 1 Hardware Setup... 1 Downloading the Application...7 Running the Application... 9 v
vi
Quick Start Guide Introduction This document explains the procedure to run the Remote Drive application on DE1/DE2 Board using SLS Stackable Stepper Motor Controller and IR Receiver Board. In this guide, you will learn: 1. About Remote Drive application 2. Remote Drive hardware setup 3. Downloading the application 4. Running the application Before you Begin To run the Remote Drive application you require following hardware: DE1/DE2 Board Two Stepper Motor Controller Boards IR Receiver Board E-Gasket Two Stepper Motors IR Keyboard USB Cable DE1/DE2 Power Supply We assume that the Altera s Software Design Suite (Quartus II, Nios II), version 6.1 is installed on your PC. About Application Hardware Setup The Remote Drive application for DE1/DE2 board is designed to control two stepper motors using the IR keyboard. The application uses the joystick (available on the IR keyboard) to control single or both stepper motors in forward/reverse direction. The Remote Drive application for DE1 and DE2 boards is found at: <..//SSMC_Demonstrations/Remote_Drive/> To set up the hardware for Remote Drive application perform the steps below: 1. Take the DE1/DE2 Board 2. Plug in the power supply adapter to provide power to the DE1/DE2 board. 3. Connect DE1/DE2 board with the PC using USB cable. 1
Hardware Setup Figure 1. Connection of E-Gasket with DE1 Board 4. Mount the IO Header (J7, J8) of E-Gasket on header (JP1, JP2) of DE1/DE2 board. Figure 1 shows the connection with DE1 board. 5. Mount the IO Santa Cruz connectors (JP2, JP3 and JP4) of first Stackable Stepper Motor Controller on Header (J3, J5, and J4) of E-Gasket as shown in Figure 2. 2
Quick Start Guide Figure 2. Mounting Stackable Stepper Motor Snap On Board on the E-Gasket Make sure that Jumper Pin JP12.1 is shorted with JP12.2 and Jumper pin JP13.1 is shorted with JP13.2 for both Stackable Stepper Motor Controllers. 6. For controlling Stepper Motor1, make the Stackable Stepper Motor Controller1 s jumper settings as shown in Table 1. Table 1. Jumper Settings for Stepper Motor1 Jumper Name Jumper Settings JP8 JP9 JP10 JP11 Shot JP8.1 with JP8.2 Shot JP9.1 with JP9.2 Shot JP10.1 with JP10.2 Shot JP11.1 with JP11.2 7. For controlling Stepper Motor2, make the Stepper Motor Controller2 s jumper settings as shown in Table 2. Table 2. Jumper Settings for Stepper Motor2 Jumper Name Jumper Settings JP8 JP9 Shot JP8.3 with JP8.4 Shot JP9.3 with JP9.4 3
Hardware Setup Table 2. Jumper Settings for Stepper Motor2 JP10 JP11 Jumper Name Jumper Settings Shot JP10.3 with JP10.4 Shot JP11.3 with JP11.4 Figure 3 below indicates motor connections and jumper settings with locations for Stepper Motor Controller board 1.. Figure 3. Jumper Settings for Stackable Stepper Motor Controller1 8. After that mount the IO Santa Cruz connectors (JP2, JP3 and JP4) of second stackable stepper motor snap on board on Header (JP5, JP6 and JP7) of first stackable stepper motor. As shown in Figure 4. 4
Quick Start Guide Figure 4. Mounting Stepper Motor Controller2 on Stepper Motor Controller1 9. Now mount the IO Santa Cruz connectors (J1, J2 and J3) of IR Receiver board on Header (JP5, JP6 and JP7) of second Stackable Stepper Motor Controller. Figure 5 below shows the final view of the hardware. 5
Hardware Setup Figure 5. Mounting IR on SSMC 10. Connect Stepper Motor wires with Stepper Motor Controller Board s driver outputs (Y1, Y2, Y3 and Y4). Refer to the datasheet of the motor you are using for details on motor connections. 6
Quick Start Guide Figure 6. Final View of Remote Drive Set up Final view of the Remote Drive is as shown in Figure 6. Please make sure that USB-Blaster is installed on your PC. Refer to getting started user guide for DE1/DE2 Board for more details. Downloading the Application The Remote Drive application is provided in the form of an MS-DOS batch file. Follow the steps below to download the respective (DE1/DE2) application: 7
Downloading the Application 1. To run the run.bat file for DE1 board, double click the run.bat file from the SLS_Stackable_Stepper_Motor_Controller\SSMC_Demonstrations \Remote_Drive\remotedrive_de1 folder. The console shows the output as shown in Figure 7. Figure 7. Console Window after Running the run.bat for DE1 Board To run the run.bat file for DE2 board, double click the run.bat file from the SLS_Stackable_Stepper_Motor_Controller\SSMC_Demonstrations\ Remote_Drive\remotedrive_de2 folder. 2. The SOF file will be downloaded first using the Quartus II programmer with the help of USB Blaster. 3. After successful downloading, it will prompt for any key press. Press any key when you find 0 errors. The software application to control the motor will be downloaded which is in the form of ELF file. The Figure 8 shows the console window after successful downloading. 8
Quick Start Guide Figure 8. Nios II C Application Downloading Complete 4. Now the application is downloaded and ready to use. Press any key to close the window. Running the Application With the help of Joystick of the IR Keyboard, you can observe the rotation of single and/or both Stepper Motors. Table 3 shows the information on motor control using joystick. Table 3. Stepper Motor Control Operation using Joystick Joy Stick s Position Stepper Motor1 Stepper Motor2 UP No rotation Rotates clockwise DOWN No rotation Rotates anti-clockwise RIGHT Rotates clockwise No rotation LEFT Rotates anti-clockwise No rotation UP-RIGHT Rotates clockwise Rotates clockwise UP-LEFT Rotates anti-clockwise Rotates clockwise DOWN-RIGHT Rotates clockwise Rotates anti-clockwise DOWN-LEFT Rotates anti-clockwise Rotates anti-clockwise Figure 9 shows IR keyboard. 9
Running the Application Figure 9. IR Keyboard 10