DC motor controller System on ELT II board

Similar documents
MAX II ISP Update with I/O Control & Register Data Retention

BitBlaster Serial Download Cable

Using Altera MAX Series as Microcontroller I/O Expanders

USB-Blaster Download Cable User Guide

December 2002, ver. 1.0 Application Note 285. This document describes the Excalibur web server demonstration design and includes the following topics:

In-System Programmability

Engineering Change Order (ECO) Support in Programmable Logic Design

ic-mq EVAL MQ1D EVALUATION BOARD DESCRIPTION

Video and Image Processing Suite

RAPID PROTOTYPING OF DIGITAL SYSTEMS Second Edition

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

White Paper Using the Intel Flash Memory-Based EPC4, EPC8 & EPC16 Devices

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

CHAPTER 11: Flip Flops

MasterBlaster Serial/USB Communications Cable User Guide

DMX-K-DRV. Integrated Step Motor Driver + (Basic Controller) Manual

USB-Blaster II Download Cable User Guide

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

RoverPal - A Mobile Payment Application

White Paper FPGA Performance Benchmarking Methodology

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

MorphIO: An I/O Reconfiguration Solution for Altera Devices

Using the Agilent 3070 Tester for In-System Programming in Altera CPLDs

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

ModelSim-Altera Software Simulation User Guide

PROFINET IRT: Getting Started with The Siemens CPU 315 PLC

For Quartus II Software. This Quick Start Guide will show you. how to set up a Quartus. enter timing requirements, and

Event counters in NOVA

DK40 Datasheet & Hardware manual Version 2

DC Motor Driver 24V 20A [RKI-1340]

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

Using the Altera Serial Flash Loader Megafunction with the Quartus II Software

White Paper Streaming Multichannel Uncompressed Video in the Broadcast Environment

Quartus II Introduction Using VHDL Design

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

AN2680 Application note

To Purchase This Item, Visit BMI Gaming Operation Manual

User manual DinaSys DTC/DTS and DTC/DTZ

Using Pre-Emphasis and Equalization with Stratix GX

A Verilog HDL Test Bench Primer Application Note

E-Blocks Easy RFID Bundle

Quartus II Software Download and Installation Quick Start Guide

DKWF121 WF121-A B/G/N MODULE EVALUATION BOARD

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

How many high-speed counters (HSCs) are provided by the SIMATIC S PLC? SIMATIC S FAQ March Service & Support. Answers for industry.

3.2 inch QVGA TFT Color LCD User s Guide Version 1 & 2

MIDECO 64-outputs MIDI note decoder USER MANUAL. Roman Sowa 2012

Current Probes. User Manual

DRV8312-C2-KIT How to Run Guide

Arduino Motor Shield (L298) Manual

Switch board datasheet EB

Allen-Bradley/Rockwell

Quick Start Guide for High Voltage Solar Inverter DC-AC Board EVM. Version 1.3

X8 Option 2 - Technology

EDK 350 (868 MHz) EDK 350U (902 MHz) EnOcean Developer Kit

Understanding CIC Compensation Filters

MED-AFEs Design Reference Manual

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

ServoOne. Specification. Option 2 - Technology. x 11. x 8 X 8. x 10. x 9. x 7. x 6 TTL Encoder / TTL Encoder simulation

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

Software User Guide UG-461

White Paper Utilizing Leveling Techniques in DDR3 SDRAM Memory Interfaces

FPGAs for High-Performance DSP Applications

Nuvoton Nu-Link Debug Adapter User Manual

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

SYSTEM 4C. C R H Electronics Design

GPS NTP Time Server for Intranet Networks DIN RAIL Version

Arduino Lesson 16. Stepper Motors

White Paper Implementing a Flexible CPLD-Only Digital Dashboard for Automobiles

DATASHEET. ADAM Arduino Display Adaptor Module. Arduino Compatible Shield P/N: 4Display-Shield-FT843 For the 4D Systems 4DLCD-FT843 Display

The 104 Duke_ACC Machine

Optimize your simple machines... Modicon M218 Selection Guide

HVP-KV31F120M Quick Start Guide

INSTALLATION/PROGRAMMING INSTRUCTIONS E4KP ENTRYCHECK

SYSTEM 45. C R H Electronics Design

How to read this guide

ISP Engineering Kit Model 300

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

AD9125-EBZ Quick Start Guide

Figure 1. 8-Bit USB Debug Adapter

MC433 Stepper Motor Controller

White Paper Understanding Metastability in FPGAs

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

MAX6683 Evaluation System/Evaluation Kit

Keep it Simple Timing

Configure Inverter output for two utility settings, (1)120V/60Hz, (2)220V/50Hz

TRILOGI 5.3 PLC Ladder Diagram Programmer and Simulator. A tutorial prepared for IE 575 by Dr. T.C. Chang. Use On-Line Help

PoNET kbd48cnc. User s manual

EMC6D103S. Fan Control Device with High Frequency PWM Support and Hardware Monitoring Features PRODUCT FEATURES ORDER NUMBERS: Data Brief

CONTROL SWITCHER User s Manual (Preliminary)

White Paper Reduce Total System Cost in Portable Applications Using Zero-Power CPLDs

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence :

TN0023 Technical note

xpico Wi-Fi Embedded Device Server Evaluation Kit Quick Start Guide

White Paper Military Productivity Factors in Large FPGA Designs

User Manual. ATX12V / EPS12V Power Supply TG-I460R (460W+460W) TG-I550R (550W+550W) Switching Power Supply User Manual

Transcription:

DC motor controller System on ELT II board, Ver. 1.1 Objective Introduction SSMC System Overview To control the speed of the DC motor connected to the Stackable Stepper Motor Controller (SSMC) Snap-On Board using Entry Level Tool II (ELT II) board. Following section gives you brief introduction to the Stackable Stepper Motor controller system and guides you to run the project on ELT II board. In this document you will learn: Overview of the Stackable Stepper Motor Controller System Tools used Hardware set up Running the system The stackable stepper motor controller system is developed for the SLS Stackable Stepper Motor Controller board. In this system is running the DC motor speed and its rotation is controlled using program and switches on the board. Using switch SW1 on ELT II board we can move the DC motor in the forward direction and using switch SW2 we can rotate the motor in the reverse direction. In the program we have taken one 4 Bit counter for controlling the speed of the motor. When the counter has lower value the motor rotates with the highest speed. And when the counter has higher value, the motor rotates with the lower speed. This is done by controlling the ON-OFF period of the counter. Refer the WormGear.v file for System code and ELTII_WormGear_Control folder for Quartus II project. The frequency is selected by making the jumper connection on ELT II board. For 225 Hz frequency jumpers are connected at J6.19 and J6.20, J4.2 and J4.3, J5.2 and J5.3. Tools Used The application note uses following tools in order to create, the stepper motor controller system on ELT II board. SLS Stepper Motor Controller Board The SLS Stepper Motor Controller is that is developed specifically for providing the stepper motor interface to the development board using Santa Cruz header. System Level Solutions 1

Tools Used Figure 1. shows the SLS Stepper Motor Controller Board. Figure 1. The SLS Stackable Stepper Motor Controller Board ELT II Board The ELT II provides a hardware platform for designing and developing simple and low- systems based on Altera MAX II (CPLD) devices. Figure 2. shows the ELT II Education cum development board. Figure 2. The SLS ELT II Board DC Motor The DC motor has voltage capacity upto 10V dc and the sink current is around 300mA. The above are the specification of the DC motor. A DC motor is known as an electric generator. An electrical Generator is a machine which converts mechanical energy (or power) into electrical energy (or power). 2 System Level Solutions

Application Note Principle: It is based on the principle of production of dynamically (or motionally) include e.m.f. (Electromagnetic Force). Whenever a conductor cuts magnetic flux, dynamic included e.m.f. is produced in it according to Faraday s Laws of Electromagnetic Induction. This e.m.f. causes a current to flow if the conductor circuit is closed. Hence the basic essential parts of an electric generator are: 1. A magnetic Field 2. A conductor or conductors which can so move as to cut the flux Figure 3. DC Motor Principle Hardware Set up We have used the ELT II board to control the function of DC Motor Controller system. We will connect our SSMC on the ELT II board at the expansion prototype connector and DC motor is connected at the spring connector of the SSMC board. The Figure 4. below shows the overview of the hardware set up. System Level Solutions 3

Hardware Set up Figure 4. Hardware Set up Overview PC ELT II Stackable Stepper Motor Board DC Motor Please follow the steps mentioned below to set up the hardware for controlling the function of DC motor by the Stackable Stepper Motor Controller System using ELT II. 3. Connect the stackable stepper motor controller board with the expansion headers on the ELT II board as shown in Figure 5. Figure 5. Connection of Stackable Stepper Motor Controller Board with ELT II Board 4 System Level Solutions

Application Note 4. Connect the DC motor wires with SSMC board s output as shown in Table 1 below. Table 1. DC Motor Wire Connection with Stepper Motor Controller Board Wire Color Driver Output Red Black Y1 Y2 5. For controlling DC Motor, make the Stepper Motor Controller board s jumper settings as shown in Table 2. Table 2. Jumper Settings for Stepper Motor1 Jumper Name Jumper Settings JP8 JP9 Short JP8.1 with JP8.2 Short JP9.1 with JP9.2 System Level Solutions 5

Software Setup Figure 6. Connection of DC Motor with ELT II Board Software Setup For controlling the speed and the rotations of the DC motor rotation we have write down the code for it. The code is written in the verilog format. The program is as below: module WormGear (clk,reset_b,swforward,swreverse,posterm,negterm); input clk; input reset_b; input SwForward; input SwReverse; output PosTerm; output NegTerm; reg PosTerm; reg NegTerm; 6 System Level Solutions

Application Note The above part of the program is known as the entity definition. And rest of the lines are declaring the input and output of the program. Here we have take the four inputs and two output. In verilog code output is always define as the register to store the value. Now the main part of the program to make the DC motor rotate in the particular direction. We have also written the code for the controlling the speed of the DC motor. For this we have take one counter to count the value and according that it will make the DC motor to ON. reg [3:0] Count; reg Out; always@(posedge clk) if (~reset_b) Count <= 0; else Count <= Count + 1; always@(posedge clk) if (~reset_b (Count ==4'b0000)) Out <= 0; else case (Count) 4'b0001 : Out <= 1; case always@(posedge clk) if (~reset_b) begin PosTerm <= 0; NegTerm <= 0; else begin case ({SwForward,SwReverse}) 2'b00: begin PosTerm <= 0; NegTerm <= 0; 2'b01: begin PosTerm <= Out; NegTerm <= 0; 2'b10: begin System Level Solutions 7

Running the System PosTerm <= 0; NegTerm <= Out; 2'b11: begin PosTerm <= 0; NegTerm <= 0; default: begin PosTerm <= 0; NegTerm <= 0; case module As you can see from the above program that the motor is rotate in the forward direction when the SW1 bit is high and SWl bit is low then the DC motor stop. When the SW2 is ON, the motor rotates in the reverse direction. For moving the motor in particular direction we only need to energise the coil, so that we are only making output line high or low. For controlling the speed of the motor we have used one 4 bit counter. We are incrementing counter at every clock pulses. So when it reaches to the particular value then it will start the motor to run according to the switch position. By increasing the number of the counter to make output bit high, we can rotate the motor more slowly. Running the System Please follow the steps mentioned below for programming the chip and running the application. 1. Open Quartus II software. 2. Make a new project called as ELTII_DC and select the design file type as the verilog. 3. Now add the verilog file the WormGear.v file for System code. 4. Select Processing > Start > Start Analysis and Synthesis. 5. Open the assignment editor by selecting from Assignments > Assignment Editor and give the pin name as shown in the table given below. 6. Select Start Compilation. 7. After compilation, open the Tools > Programmer. 8 System Level Solutions

Table 3. Pin Assignments Pin Name CPLD Pin Number Conclusion Further Information Revision History clk PosTerm NegTerm reset SwFroward SwReverse PIN_14 PIN_99 PIN_97 PIN_44 PIN_2 PIN_3 8. Select the Hardware setup as ByteBlaster II and mode as JTAG. Now click on the Program/Configure. 9. Click on Start button. The program will be downloaded into the chip. 10. Press SW1 into ON position and observe the output on the DC motor. 11. Press SW2 into ON position and observe the output on the DC motor. Using Stackable Stepper Motor board, it s easy to drive the DC motor on ELT II board. We can also run the higher specification motor using the SSMC board. For more information about ELT II refer to http://www.slscorp.com/pages/entryleveltool.php For information about Stackable Stepper Motor Controller Board, refer to http://www.slscorp.com/pages/steppermotorsls.php Download the Quartus II project for the application note from http:// www.slscorp.com/pages/download/appnotes/dcmotor/ref_des_eltii.zip. Table below shows the revision history of the document. Version Date Description 1.0 July 2008 Initial Release 1.1 Add download link for application Quartus II project in Further information section

Application Note System Level Solutions, Inc. (USA) 14100 Murphy Avenue San Martin, CA 95046 (408) 852-0067 http://www.slscorp.com Copyright 2007, System Level Solutions.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 ping 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. an_dcmotor_ssmc_1.1 System Level Solutions 10