FPGA Implementation of a PID Controller with DC Motor Application

Similar documents
Project Proposal. Low-Cost Motor Speed Controller for Bradley ECE Department Robots L.C.M.S.C. By Ben Lorentzen

Design of a Simulink-Based Control Workstation for Mobile Wheeled Vehicles with Variable-Velocity Differential Motor Drives

Observer-based Engine Cooling Control System (OBCOOL) Project Proposal. Students: Andrew Fouts & Kurtis Liggett. Advisor: Dr.

Observer-based Engine Cooling Control System (OBCOOL) Functional Description & System Block Diagram. Students: Andrew Fouts & Kurtis Liggett

When to use an FPGA to prototype a controller and how to start

Closed Loop Magnetic Levitation Control of a Rotary Inductrack System. Senior Project Proposal. Students: Austin Collins Corey West

Students: Andrew Fouts Kurtis Liggett. Advisor: Dr. Dempsey

FPGA Implementation of a Digital Tachometer with Input Filtering

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Project Proposal

CHAPTER 5 CONTROL SYSTEM DESIGN FOR UPFC

High-speed and High-precision Motion Controller

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

Exercise 2-2. Antenna Driving System EXERCISE OBJECTIVE DISCUSSION OUTLINE DISCUSSION

AN ARDUINO CONTROLLED CHAOTIC PENDULUM FOR A REMOTE PHYSICS LABORATORY

SERVO MOTOR CONTROL TRAINER

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

Lab 5: Inverted Pendulum PID Control

SERVOSTAR S- and CD-series Sine Encoder Feedback

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

CSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System

Automated Industrial Wind Tunnel Network Control with LabVIEW. Matt Draear

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

Module: Arduino as Signal Generator

Engine Control Workstation Using Simulink / DSP. Platform. Mark Bright, Mike Donaldson. Advisor: Dr. Dempsey

Cyclone II Filtering Lab

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING BANGLADESH UNIVERSITY OF ENGINEERING & TECHNOLOGY EEE 402 : CONTROL SYSTEMS SESSIONAL

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

A HARDWARE DC MOTOR EMULATOR VAGNER S. ROSA 1, VITOR I. GERVINI 2, SEBASTIÃO C. P. GOMES 3, SERGIO BAMPI 4

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

EE 461 Experiment #1 Digital Control of DC Servomotor

Stratix Filtering Reference Design

SDR14TX: Synchronization of multiple devices via PXIe backplane triggering

Ch 5 Hardware Components for Automation

Training Schedule. Robotic System Design using Arduino Platform

Design of a Simulink-Based Control Workstation for Mobile Wheeled Vehicles with Variable- Velocity Differential Motor Drives

Root Locus Design. by Martin Hagan revised by Trevor Eckert 1 OBJECTIVE

Stratix II Filtering Lab

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

Sensors and Sensing Motors, Encoders and Motor Control

Peripheral Link Driver for ADSP In Embedded Control Application

The rangefinder can be configured using an I2C machine interface. Settings control the

EE 308 Lab Spring 2009

Implementation of Conventional and Neural Controllers Using Position and Velocity Feedback

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

Matlab Simulation Model Design of Fuzzy Controller based V/F Speed Control of Three Phase Induction Motor

Fuzzy logic control implementation in sensorless PM drive systems

Microprocessor & Interfacing Lecture Programmable Interval Timer

Lecture 2 Exercise 1a. Lecture 2 Exercise 1b

Computer Numeric Control

PID Implementation on FPGA for Motion Control in DC Motor Using VHDL

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

Carlos L. Castillo Corley Building 114A

Single-phase Variable Frequency Switch Gear

Rapid FPGA Modem Design Techniques For SDRs Using Altera DSP Builder

FPGA-based PID Controller Using SOPC Technology for DC Motor Speed Control

EFFICIENT FPGA IMPLEMENTATION OF 2 ND ORDER DIGITAL CONTROLLERS USING MATLAB/SIMULINK

V&T Technologies Co., Ltd. Vectorque TM V6-H-M1 SERIES INVERTER ADDITIVE MANUAL (M1) V6-H Series ADDITIVE MANUAL V& T

Design of stepper motor position control system based on DSP. Guan Fang Liu a, Hua Wei Li b

Controlling an AC Motor

Single-phase Variable Frequency Switch Gear

TCS3 SERVO SYSTEM: Proposed Design

Lab 1: Steady State Error and Step Response MAE 433, Spring 2012

Mars Rover: System Block Diagram. November 19, By: Dan Dunn Colin Shea Eric Spiller. Advisors: Dr. Huggins Dr. Malinowski Mr.

Lab 2.2 Custom slave programmable interface

Real-Time Testing Made Easy with Simulink Real-Time

dspace DS1103 Control Workstation Tutorial and DC Motor Speed Control Project Report

PID Control with Derivative Filtering and Integral Anti-Windup for a DC Servo

of harmonic cancellation algorithms The internal model principle enable precision motion control Dynamic control

DC motor control using arduino

Characterization of a PLL circuit used on a 65 nm analog Neuromorphic Hardware System

Rotary Motion Servo Plant: SRV02. Rotary Experiment #02: Position Control. SRV02 Position Control using QuaRC. Student Manual

5. Experiment s title: The Optical Tachogenerator AMEM 211

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives

MSK4310 Demonstration

Pulse-Width Modulation (PWM)

Implementation of a Fuzzy Logic-Based Embedded System for Engine RPM Control. (Speed Control)

Castle Creations, INC.

Control Design for Servomechanisms July 2005, Glasgow Detailed Training Course Agenda

Robotic Navigation Distance Control Platform

Sensors and Sensing Motors, Encoders and Motor Control

The University of Wisconsin-Platteville

EECS 461, Winter 2009, Problem Set 2 1

Servo and Motor Controller

DESIGN OF INTELLIGENT PID CONTROLLER BASED ON PARTICLE SWARM OPTIMIZATION IN FPGA

Scanning Digital Radar Receiver Project Proposal. Ryan Hamor. Project Advisor: Dr. Brian Huggins

Electronic Counters. Sistemi Virtuali di Acquisizione Dati Prof. Alessandro Pesatori

Introduction to Modeling of Switched Mode Power Converters Using MATLAB and Simulink

EECS 270: Lab 7. Real-World Interfacing with an Ultrasonic Sensor and a Servo

International Journal of Advance Engineering and Research Development

Method We follow- How to Get Entry Pass in SEMICODUCTOR Industries for 2 nd year engineering students

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

Valve Control Unit ValDi

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

PWM, ALT, HALT, HAST.

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction

SIMULATION AND IMPLEMENTATION OF PID-ANN CONTROLLER FOR CHOPPER FED EMBEDDED PMDC MOTOR

A DSP Based Class D Audio Amplifier *

MODEL BASED DESIGN OF PID CONTROLLER FOR BLDC MOTOR WITH IMPLEMENTATION OF EMBEDDED ARDUINO MEGA CONTROLLER

ECE Senior Design Final Report For. Scalable Regulated Three Phase Power Rectifier. May 10, 2004 Rev. 1.0

Transcription:

FPGA Implementation of a PID Controller with DC Motor Application Members Paul Leisher Christopher Meyers Advisors Dr. Stewart Dr. Dempsey This project aims to implement a digital PID controller by means of an FPGA. This system will be used to control a DC motor (driven by a PWM signal) which has a high degree of nonlinearity and serves to test the performance of the controller. Our preliminary research has primarily focused on simulating the ent ire system, although recently we have begun work on the VHDL code to program the FPGA. Upon completion of the VHDL, we will begin testing and improving the overall system. Outline 1

Outline Functional Description This project will implement a digital Proportional-Integral-Derivative (or PID) controller in an existing DC motor system. The DC motor system will be controlled by a PWM signal. The system will be implemented in closed loop form, which will correct the non-linearity and unreliability of the change in loads on the DC motor. The entire system will be programmed in VHDL, and implemented on a FPGA Development Board. This will allow the user to input a desired RPM and be able to monitor the speed of the DC motor. It will also provide an economical solution to DC motor control. 2

System Inputs and Outputs Inputs Speed Command Signal Outputs Motor Shaft Velocity System Display System Block Diagram Speed Command Signal Digital PID Controller PWM System DC Motor System Motor Shaft Velocity Frequency to Digital 3

Modes of Operation Full Speed Off 0 to 860 RPM via user Outline 4

Progress To Date Matlab Design Program Simulink System Model FPGA Development Board VHDL Programming PWM System in VHDL Frequency to RPM Converter in VHDL Display Code in VHDL Projected Timeline Week Feb. 25 March 4 March 11 March 18 March 25 April 1 April 8 April 15 April 22 April 29 Goals Finish up VHDL code, debug Hardware interface design, initial system test System testing PID controller redesign, VHDL code improvement Complete system testing Design, implement, and test additional features Design, implement, and test additional features Documentation, Tech Expo, presentation preparation Documentation, Tech Expo, presentation preparation Documentation, Tech Expo, presentation preparation 5

Outline Matlab Design Program Shows uncompensated system plots Shows compensated system plots Determine Digital PID Controller coefficients 6

Simulink System Model Outline 7

PWM System Receives a number from the PID controller between 0-128 (7-bits) Uses internal counters along with the clock input to determine the PWM signal, by number comparison Includes out of range checks PWM System INPUTS 7-BIT Unsigned Number Clock Negative Trigger OUTPUTS Pulse Width Modulated Signal 8

PWM System Problems Usage of an External Clock Solution Designed a VHDL block to divide an internal clock signal PWM System Schematic 7-bit Input Negative Trigger from PID Controller PWM Block Output PWM Signal Internal FPGA Clock 8MHz Clock Divider CLK 9

Outline Encoder to 7-Bit Number System This system converts the rotary encoder output of the motor (512 pulses per revolution) to a 7 bit number (0 to 86) where that number is one-tenth the speed of the motor shaft in RPM. Because the system sampling frequency is 500 Hz, this system is not fully accurate. 10

Encoder to 7-Bit Number System This system works by counting the number of pulses that occur within T=2ms (fs=500hz). Once we have a fully functional complete system, we will come back to this subsystem and try to find a way to improve it (possibly by measuring time between pulses). Encoder to 7-Bit Number System Motor Encoder Output Counter SRPM/10 (7-Bit) 100 MHz Oscillator Divide Down Fs (500 Hz) 11

Outline PID System No work has begun work on the PID system at this time. 12

Outline Other Systems A few other systems will need to be written for the system: Display System (Paul is currently working on) Command Input System Error Signal System 13

Display System This system will allow for the display of either the current command input signal or the current motor speed (both in RPM). The user can switch between either display by means of an onboard toggle. This system utilizes three of the four onboard seven-segment displays. Outline 14

Closing Overall, we are about right on schedule. No major problems have come up yet, however, there has been some difficulty in getting a computer to use. We hope to have a working system within a week. 15