Docsity

Open Loop and Feedback Control of DC Motor: Lab 6, 7, 8, Slides of Computer Science

Toggle sidebar
bg1
1
1
Lecture on Lab 6 Lab 7 Lab 8
Write one complete report consisting of 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
A
VCC
5V
Q1
PWM_Ou tput
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.
Docsity.com
pf3
pf4

Partial preview of the text

Download Open Loop and Feedback Control of DC Motor: Lab 6, 7, 8 and more Slides Computer Science in PDF only on Docsity!

Lecture on Lab 6 Lab 7 Lab 8

Write one complete report consisting of Lab 6, Lab 7, Lab 8

Lab 6: Open Loop Controller

As you learned in lab 5, there are two kinds ofcontrol systems: open loop and closed loop.Your task of this lab is to build an open loop DCmotor controller.

The ‘plant’ to be controlled in this lab is a DCmotor. The speed of the motor is controlled by apower FET. The signal to the gate of the FET isthe PWM output of the microprocessor (μP).The greater the duty cycle of the PWM output,the faster the motor turns. The circuit is shownin the next slide.

Lab 6: Open Loop Controller

A

VCC

5V

Q

PWM_Output

Motor Speed Control with Power FET

Lab 6: Open Loop Controller

The RPM of the DC motor is sensed with theNTE3100 optical sensor that was used in lab 3.

The DC motor spins a disk or paddle thatinterrupts the IR beam between the LED and thesensor in the NTE3100.

The NTE3100 is then connected as the clocksource of a counter in the μP. As shown in afigure in the next slide.

Docsity.com

Lab 6: Open Loop Controller

Each rotation of the DC motor thus registers asa count. By reading the count periodically, theRPM of the motor is determined.

U

NTE

E

S

VCC

5V

VCC

5V

R

2.2kOhm

R

1kOhm

To_AVR

Lab 6: Open Loop Controller

In-Lab task

Build an open loop controller based on the circuits in figures 1and 2. Use the various VTG pins for Vcc.

Use the switches on the STK500 board to vary the duty cycleof the PWM output from 0% to 100%.

Program the switches on the STK500 to control the RPM ofthe DC motor.

Use HyperTerminal to record actual RPM versus commandedRPM for various step changes in commanded RPM.

Use Excel to graph the commanded RPM versus actual RPMdata Use Excel to graph the commanded RPM versus actualRPM data.

You need to complete this in-lab task and report it in your report.

Lab 6: Open Loop Controller

RPM Response - Open Loop Controller

0

8000600040002000 1800016000140001200010000

0

10

20

30

40

50

60

70

Time (s)

RPM

Commanded RPMActual RPM

You need to produce this figure based on your experimental data.

Lab 6: Open Loop Controller

RPM as a Function of OCR

RPM = 328.97 * OCR2 - 13330

0

8000600040002000 1800016000140001200010000

40

50

60

70

80

90

100

OCR2 (integer)

DC Motor RPM

You need to produce this figure based on your experimental data

Docsity.com

Lab 7: Simple Feedback Controller

Simple Feedback Control

Time (s)

RPM

SelectedRPMActual RPM

You need to produce the above figure based on yourexperimental data.

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 thecommanded RPM.

  • Unlike the simple controller, the response

time should be very short.

  • Commanded changes to RPM should very

quickly be seen in actual RPM.

Lab 8: Proportional Feedback Controller

Lab 8: In-lab Task •

Modify the software from Lab 6 or Lab 7 so thatthe amount by which the PWM OCR is adjusteddepends on the size of the error between actualand commanded RPM.

Using HyperTerminal, collect commanded RPMversus actual RPM data for several stepchanges in commanded RPM. Plot the data asin Lab 6. Controller response time should beimproved compared to the simple feedbackcontroller in Lab 7.

Lab 8: Proportional Feedback Controller

Proportional Feedback Control 0

Time (s)

RPM

Selected RPMActual RPM

You need to produce the above figure in your report based onyour experimental data.ECE5330 students need to do Integration and derivative as well.

Docsity.com