Objectives:: Experiment 7 Open & Closed Loop Systems
Objectives:: Experiment 7 Open & Closed Loop Systems
Objectives:
1- Understand the difference between open and closed loop systems.
2- Study motor drives (H-Bridge).
3- Control the position of a motor using DAC & Labview.
Introduction:
A control system has an input, a process, and an output. Control systems can be
open-loop or closed-loop.
Motor Drivers:
Motor drivers are essentially power amplifiers; their function is to take a low-current
control signal, and turn it into a proportionally higher-current signal that can drive a
motor. Note here that the control signal is likely on the order of 10 mA, and the
motor may require 100's of mA to make it turn. An example of a motor driver is an
H-Bridge.
An H-bridge is an electronic circuit which enables a voltage to be applied across a
load in either direction. These circuits are often used in robotics and other
applications to allow DC motors to run forwards and backwards. H-bridges are
available as integrated circuits, or can be built from discrete components.
Figure (3): Structure of an H-bridge
Note: the switches S1 and S2 should never be closed at the same time, as this would
cause a short circuit on the input voltage source. The same applies to the switches S3
and S4.
Interpolation method:
A sensor is used to measure physical quantities such as temperature, speed,
position, intensity ....etc. These measurements should be feedback and compared to
the desired (input) value and the compensator will correct the error.
Lab Work:
The aim of this lab is to control the position of a DC motor by close loop system.
- The voltage across the variable resistor (0 volt to 5 volt) should be related to the
angle of the DC motor rotating from ( . This is done using interpolation
method.
-Then the measured angle (actual theta) should be compared to a desired value and
find the difference between the actual theta and desired theta (error signal).
-This means that the error signal is the difference between the reference input and
the output. Finally a comparison is done. There are 3 cases:
1- If the error signal is zero. Then the value applied to the H-bridge (which is
connected to the digital output pins of the DAC) is 0 forcing the motor to stop.
2- If the error signal is a positive value (actual value less than desired value) we shall
apply logic 1 on one pin of the DAC and logic 0 on the other pin of the DAC
forcing the motor to rotate in a direction that will correct the error.
3- If the error signal is a negative value (actual value larger than desired value) we
shall apply logic 1 & 0 on the pins of the DAC to force the motor to rotate in
reverse direction and correct the error.
Part (1):
Connect a potentiometer to the analog input pin of the DAC and convert the voltage
values to angle values using interpolation method. Display the converted values on
an indicator on the front panel of the Labview.
Part (2):
Find the error signal between desired theta and the actual measured theta. Use a
control (Knob) to apply the desired theta and an indicator to display the value of the
error signal.
Part (3):
Built a compensator that will drive the DC motor to its' desired position.
Final result: