1 Lecture on Lab 6 Lab 7 Lab 8. 2 Lab 6: Open Loop Controller As you learned in lab 5, there are two kinds of control systems: open loop and closed loop.

Slides:



Advertisements
Similar presentations
MOTION CONTROL ECE 105 Industrial Electronics Engr. Jeffrey T. Dellosa College of Engineering and Information Technology Caraga State University Ampayon,
Advertisements

CPE 201 Digital Design Lecture 25: Register Transfer Level Design (2)
Lab 9: Matrix Keypad : ”No Key Press” Analysis Slide #2 Slide #3 ”Press and Hold Key 5” Analysis.
The 8051 Microcontroller and Embedded Systems
ECE 480 Design Team 3 Technical Lecture
More fun with Timer/Counters
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
THERMOMETER PROJECT BAHRAM GHANDCHI - LIU CHANGWEI - ISRAA ABDULAZIZ ALSUHAYYIH ET1496.
EET 2261 Unit 13 Controlling Stepper Motors and Servos  Read Almy, Chapter 21.  Lab #13 due next week.  Final Exam next week.
Digital Tachometer ENGR 4803 Electromechanical Systems & Mechatronics.
Synchronized Strobe for Video Camera
Simple Control Theory Jeremy Wyatt School of Computer Science University of Birmingham.
Motor Control of an Oscillating Pendulum Nick Myers and Chirag Patel March 9, 2004 Advised by: Dr. James Irwin and Mr. Jose Sanchez Bradley University.
Design of a Control Workstation for Controller Algorithm Testing Aaron Mahaffey Dave Tastsides Dr. Dempsey.
Solar Tracking Project Team Members: –Cristian Ruvalcaba –Ken Seal –David Clark –Mark McKinley –Richard DeJarnatt.
Department of Electrical Engineering Southern Taiwan University of Science and Technology Robot and Servo Drive Lab. 2015/7/2 Digital Control Strategy.
Motor Control of an Oscillating Pendulum Nick Myers and Chirag Patel March 9, 2004 Advised by: Dr. James Irwin and Mr. Jose Sanchez Bradley University.
M.S.P.V.L. Polytechnic College, Pavoorchatram
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Pulse Width Modulation (PWM) LED Dimmer Circuit
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Capacitance Sensor Project
Pulse Width Modulation (PWM) LED Dimmer Circuit
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Lynbrook Robotics Team, FIRST 846 Control System Miniseries - Summary of Lecture /03/2012.
Digital data acquisition1 Measuring ? „Wer misst, misst Mist.“ numeric result Sensing, Signal Processing Evaluation Physical/Chemical Property Physical/Chemical.
Software Three Main Functions Records/Monitors Zero Detection Points Gives our PWM a starting point Data used to dynamically adjust carrier frequency Detects.
ENGR 6806 – Motor Control Prepared By: Rob Collett September 15, Office: EN2074.
Chapter 4 TIMER OPERATION
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
1 Lab 5: Controls and feedback. 2 Lab 5: Control and Feedback This embedded system uses the Photo sensor to detect the light intensity of the environment.
By: Khalid Hawari Muath Nijim Thaer shaikh Ibrahim Supervisor: Dr. Jamal Kharousheh Dr. Nasser Hamad 27 December 2010.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
STEPPER MOTORS Name: Mr.R.Anandaraj Designation: Associate. Professor Department: Electrical and Electronics Engineering Subject code :EC 6252 Year: II.
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
Software Three Main Functions Records/Monitors Zero Detection Points Gives our PWM a starting point Data used to dynamically adjust carrier frequency Detects.
Microprocessors Tutorial 2: Arduino Robotics. Agenda 1. Robot Anatomy 2. Sensor Review 3. PWM 4. MAKE: Fade 5. Motors 6. H Bridge 7. Robot Control library.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Josh Lawson ECE Overview Project Description Schematic Hardware Involved Features of ATMEGA16/STK500 Involved System Features Testing Method.
ECE 4330 Project Proposal 1 Motor Music Presentation by Nick Hermanson.
Motor Speed Josh Edwards. Description Circuit will calculate the RPMs of the motor using the NT3100 and output to a 7 segment display Motor will be driven.
SOFTWARE NARRATIVE PRESENTED BY: JUSTIN LINDLEY Team # 15: Acoustic Storm Interweaving the impressive visual power of electricity and the visceral emotion.
Embedded Control Systems Dr. Bonnie Heck School of ECE Georgia Tech.
PULSE WIDITH MODULATION EE 587 Presented by Viswanadha Kakarlapudi.
ECE 3450 M. A. Jupina, VU, 2016 Capacitance Sensor Project Goal: Creation of a digital capacitance sensor circuit where a variation in capacitance changes.
Intro Consists of six semiconductor devices. Stator winding- star connected. Rotor - (RPS and TG) - to get actual speed signal. Commutation logic –info.
Ambient Feedback Control System Jonathan Uht.  Description of Ambient Feedback Control System  Block Diagram of Ambient Feedback Control System  Hardware.
Ambient Feedback Control System Jonathan Uht.  Recap  System Block Diagram  Hardware Implementation  Software Implementation  Results  Work Not.
Seth Schwiethale James Crosetto James Ellison.  square pulse of ms, repeats every 20 ms  It is the same for both steering and acceleration 
Modern Control Systems Lab#04 PID Position and speed control of D.C Motor Dr. Imtiaz Hussain
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
Josh Lawson ECE 4330 Dec 8. Overview Project Description Schematic Hardware Involved System Features Results.
BLDC Motor Speed Control with RPM Display. Introduction BLDC Motor Speed Control with RPM Display  The main objective of this.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
Module 8 Tutorial  An 8086 system is used for controlling the speed of a motor. The motor can operate at 5 different speeds (1- 5).  The speed.
1 Lab 4: D/A Converter Lab 4: D/A Converter This is a simple resistive network for a D/A converter Port 1, Port 0 are digital inputs ==> 00 (minimum),
Microcontroller basics Embedded systems for mortals.
-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon
MICROCONTROLLER AND INTERFACING
Timers and Event Counters
Instructor: Alexander Stoytchev
DC MOTOR SPEED CONTROL 1. Introduction
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
Instructor: Alexander Stoytchev
EET 2261 Unit 12 Controlling Stepper Motors and Servos
Robotics System Lecture 11_12: DC Motor
Presentation transcript:

1 Lecture on Lab 6 Lab 7 Lab 8

2 Lab 6: Open Loop Controller As you learned in lab 5, there are two kinds of control systems: open loop and closed loop. Your task of this lab is to build an open loop DC motor controller. The ‘plant’ to be controlled in this lab is a DC motor. The speed of the motor is controlled by a power FET. The signal to the gate of the FET is the PWM output of the microprocessor (μP). The greater the duty cycle of the PWM output, the faster the motor turns. The circuit is shown in the next slide.

3 Lab 6: Open Loop Controller Motor Speed Control with Power FET

4 Lab 6: Open Loop Controller The RPM of the DC motor is sensed with the NTE3100 optical sensor that was used in lab 3. The DC motor spins a disk or paddle that interrupts the IR beam between the LED and the sensor in the NTE3100. The NTE3100 is then connected as the clock source of a counter in the μP. As shown in a figure in the next slide.

5 Lab 6: Open Loop Controller Each rotation of the DC motor thus registers as a count. By reading the count periodically, the RPM of the motor is determined.

6 Lab 6: Open Loop Controller In-Lab task –Build an open loop controller based on the circuits in figures 1 and 2. Use the various VTG pins for Vcc. –Use the switches on the STK500 board to vary the duty cycle of the PWM output from 0% to 100%. –Program the switches on the STK500 to control the RPM of the DC motor. –Use HyperTerminal to record actual RPM versus commanded RPM for various step changes in commanded RPM. –Use Excel to graph the commanded RPM versus actual RPM data. You need to complete this in-lab task and report it in your report.

7 Lab 6: Open Loop Controller You need to produce this figure based on your experimental data.

8 Lab 6: Open Loop Controller You need to produce this figure based on your experimental data

9 Lab 6: Open Loop Controller SwitchPWM%OCR2 Value SW % 0x28 SW1 SW2 SW3 SW4 SW5 SW6 SW7 You need to construct this table according to your data !!

10 1. Initialize peripherals in Atmel  P: –Port A : Input from the switches –Port B : Timer 0 input on pin 0 –Port D : PWM output on pin 7 –UART : 9600 baud, 8-N-1 –Timer0 : Counts pulses, heart beat signal and others –Timer1 : Hold the count of the number of times the blade on the motor blocks the optical sensor, etc. –Timer2 : non-inverted 8-bit PWM, value in OCR2 register determines the pulse width. Lab 6: Open Loop Controller Continue the rest of the program based on your design.

11 Lab 7: Simple Feedback Controller With a feedback controller, plant output is sampled and used to correct control signals to the plant so that plant output adjusts to the desired output value In this case, the plant output is DC motor RPM, the output is sampled by measuring RPM with the NTE3100 optical sensor and the control signal is the duty cycle of the PWM signal to the FET You will build a simple feedback controller that samples RPM and adjusts the PWM so that the motor turns at the commanded RPM This controller is a simple feedback controller because it does not do any math (such as integration, derivative) to figure out the fastest way to achieve the commanded RPM.

12 Lab 7: Simple Feedback Controller Lab 7: In-lab Task Modify the software from Lab 6 so that the actual RPM is used to nudge the PWM output in the necessary direction. –If the measured RPM is too low, increment the PWM OCR value by one. –If the measured RPM is too high, decrease the PWM OCR value by one. An important consideration is how often to sample the RPM and correct the PWM OCR. This is the control frequency. A control frequency of 10 Hz will work well for this lab. Using HyperTerminal, collect commanded RPM versus actual RPM data for several step changes in commanded RPM.

13 Lab 7: Simple Feedback Controller You need to produce the above figure based on your experimental data.

14 Lab 8: Proportional Feedback Controller In Lab 8, you will add proportionality to the controller to improve its response time. Like the simple feedback controller, the actual RPM will be very close to the commanded RPM. Unlike the simple controller, the response time should be very short. Commanded changes to RPM should very quickly be seen in actual RPM.

15 Lab 8: Proportional Feedback Controller Lab 8: In-lab Task Modify the software from Lab 6 or Lab 7 so that the amount by which the PWM OCR is adjusted depends on the size of the error between actual and commanded RPM. Using HyperTerminal, collect commanded RPM versus actual RPM data for several step changes in commanded RPM. Plot the data as in Lab 6. Controller response time should be improved compared to the simple feedback controller in Lab 7.

16 Lab 8: Proportional Feedback Controller You need to produce the above figure in your report based on your experimental data. ECE5330 students need to do Integration and derivative as well.