Studio 5 : INTRODUCTION TO EXPERIMENTAL CONTROLS

ENME462


THE SYSTEM:

In general , the system is controlled via an IBM compatible computer. The main components of the system are as shown in the above figure. A computer equipped with data acquisition and control board(DACB) performs the control. The DACB measures signals from sensors on the plant and converts them to digital signals which can be acquired and processed by the computer. A control program residing in the computer performs the operarions required on these signals and computes output voltages that are written to the DACB. The DACB outputs are connected to Amplifiers which in turn drive the actuator in the system.

Now let me give you a figure which will enable you to understand the various transactions that take place within the system.



As you know the computer takes in and gives out only digital signals, an analogto digital converter(A/D) and vice-versa(D/A) is required. The data acquisitionand control board used in the system is the MultiQ board. This is a general purpose data acquisition and control board which has 8 single ended analog inputs,8 analog outputs, 8 bits of digital input,8 bits of digital output,3 programmable timers and 6 encoder inputs. All wiring to the board is performed through the terminal board which is supplied with the board.

A Power Amplifier is provided in the system to magnify the voltages generated by the computer. This is essential because computer gives out only small voltages of the order of 5 volts where as high voltages are required at the plant. The Power Amplifier drives the actuator. Each power module has several connectors referred to as the "quick connect system". The input to the power amplifier is the output of one of the D/A channels on the board. For MIMO(multiple input multipleoutput) systems you will need as many power amplifiers as there are actuators. But since our system is a SIMO(single input multiple output) one power amplifier is enough for us. In our system the voltage signal from the computer which gets transformed into the force on the cart is the only input. Whereas we can have multiple outputs like the cart position, the angle of the inverted pendulum, the angle of the see-saw, or the position of the second cart connected to the first (we can have the second cart also).

The DACB board can be equipped with up to 6 encoder decoders. Encoder measurements are fed directly to the terminal board.

Plant:

The 'Plant' is nothing but the system to be controlled. It consists of the seesaw-cart-inverted pendulum arrangement.

The basic component for the linear motion experiments is the inverted pendulum cart and track shown in the figure. It consists of a cart which slides on a ground stainless steel shaft. The cart is equipped with a motor and a potentiometer. These are coupled to a rack and pinion mechanism to input the driving force to the system and to measure cart position respectively.The motor shaft is connected to a 0.5" diameter gear while the potentiometer shaft is connected to a 1.116" diameter gear. Both these gears mesh with the toothed rack. When the motor turns, the torque created at the output shaft is translated to linear force which results in the cart's motion. When the cart moves, the potentiometer shaft turns and the voltage measured from the potentiometer can be calibrated to obtain the track position. the purpose of the feed back system is to control the position of the cart.

The inverted pendulum has two sensors, one for the cart position and one for the inverted pendulum angle.these sensors are attached to the multiQ A/D inputs channel#0 & channel#1 respectively. The system is driven by a DC motor which is powered via a power amplifier on the power module. The input to the power amplifier is obtained from the D/A channel#0 on the MultiQ board.

As a safety feature, the controller is automatically turned off if the pendulum angle exceeds 10 degrees in either direction.

Mathematical Model

The first step in any control system design is to model your system. The basic plant you'll be working with is a simple cart riding on a track. The track is assumed to be frictionless, and the cart is actuated by a voltage-controlled rotary motor which drives the cart's wheels through a gear system.

 

The differential equation of the frictionless cart of mass m is simply,

 

The system is driven by a DC motor with the following dynamics:

 

where I is the current through the motor, r is the radius of the gear connecting the motor to the track, K is a combined motor torque constant, and R is the resistive load of the motor. Solving this equation for I results in:

 

The torque produced by the motor is proportional to the current I,

 

Combining these relations, the applied force on the cart due to the motor is,

 

which results in,

 

or in the Laplace domain,

 

Substituting in the known system parameters m, R, r, and K results in the final transfer function,

 

Visualising the system with a block diagram:



where
   R(s) =  Reference signal (sinusoidal signal)
   C(s) =  Cart position
   Gc   =  computer control system
   K    =  Power amplifier 
   G1(s)=  motor trannsfer function
   G2(s)=  cart dynamics
   H1(s)=  Encoder
The system can be realised as in the above block diagram. But the components to the left of the dash-line i.e, R(s) and Gc are not tangible because they are in the computer.

The rest of the components namely - power amplifier, motor, cart can be viewed and understood easily.

General principles in wiring are the following:

1) Connect from the desired D/A channel to the power amplifier input 'FROM D/A'.

2) Connect the output of the power amplifier to the actuator of the main plant.

3) Connect the analog sensor signals of the main plant to the Power Module 'FROM ANALOG SENSORS'.

4) Connect the analog sensor signals of the module to either the main plant secondary six pin plug(SRV-02) or directly to S3 or S4 on the quick connect.

5) Connect the analog sensor signals from the quick connect (TO A/D) to the appropriate analog inputs of the MultiQ.

6) Encoder measurements are fed directly to the terminal board. Do not attach encoders to Power Modules.




Assignment:


[1] Hunt around on the Web to find out more about encoders:
(a) Describe in detail what an encoder is.
(b) Can you mathematically write down the transfer function of an optical encoder using the tools developed in ENME362 so far? Why or why not?

[2] The block diagram of the control system shows a siungle input and single output. However, in the real world things are never so simple, since there are many sources of disturbance which will also affect the system. Do the following:
(a) Name at least 3 possible disturbance signals which can enter into the system
(b) Redraw the block diagram for the system including these disturbance signals, indicating how these signals add into the system.
(c) Label each disturbance as to its nature, e.g. impulsive, white noise, filtered (colored) noise, sinusoid, etc.


studios| Homework| ENME361