Experiment-1 Sample and Hold Circuit Using Opamp
Experiment-1 Sample and Hold Circuit Using Opamp
Experiment-1 Sample and Hold Circuit Using Opamp
Experiment-1
AIM: To test a sample and hold circuit using opamp and FET.
APPARATUS: FET BFW11, opamp 741, diode BY127, resistors (100KΩ, 1KΩ, 10KΩ),
capacitors (0.01μF-2).
THEORY: The basic sample and hold circuit is the combination of switch and a capacitor as
shown below.
Vin S Vout
The switch ON and OFF is controlled by a control signal called sample signal. The input
signal is transferred to the capacitor when ‘S’ is closed. Capacitor holds the value to which it has
charged when ‘S’ is opened. The implementation of switch is done by using an FET and input is
applied to a buffer to prevent loading.
Given data:
Fin = 1KHz
= 2KHz
Ts = 1/Fs
= 0.5ms
1
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
Calculations:
V0/Ts = Ibias/Cmin
Cmin = 1.5μA*0.5ms/40mV
= 18.75nF
= 0.5ms/5*150 = 0.66μF
CIRCUIT DIAGRAM:
PROCEDURE:
TABULAR COLUMN:
2
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
3
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
EXPERIMENT-2
ANALOG MULTIPLEXER
THEORY: Multiplexer is a device which selects one out of n inputs at a time, depending on the
addresses given to the select lines.
CD4051 is an 8-channel analog multiplexer with 3 digital select lines (S0 to S2),
an active low enable input CE bar, 8 independent inputs (Y0 to Y7) and an output Z. With CE
bar LOW, one of the 8-input switches (low impedance on state) is selected by S2S1S0. With CE
bar high all the input switches are in high impedance off state independent of S2S1S0. Vcc and
GND are the supply voltage and ground pins for digital control inputs. Some of the features of
CD4051 are,
Wide analog input voltage range(±5V)
Low on resistance
Logic level transition to enable 5V logic to communicate with ±5V analog signals
Output capability nonstandard
IC category- MSI
CIRCUIT DIAGRAM:
4
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
UNIPOLAR BIPOLAR
PROCEDURE:
1. Seven resistors of 1KΩ value are connected in series between the supply 5V and GND,
for unipolar operation.
2. The value of each node a log this series is also noted.
3. We connect this network of resistors with corresponding pins of IC 4051.
4. The select lines are used to multiplex one input at a time. Note down that output.
5. Next connect the resistor network and corresponding notes, to only that input pin which
is to be selected by select lines. The other inputs are not connected(floating inputs).
6. In each case note down the output.
7. The output is noted down for the entire range.
8. For bipolar operation the resistors are connected between +5V and -5V.
TABULAR COLUMN:
5
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
RESULT: for each select line the corresponding analog signal is obtained.
Inference: the function of the mux is to obtain an analog signal for the
corresponding select line. In the unipolar mux the analog signals are with the
same polarity and in the bipolar mux the analog signals have both polarities
and depending upon the select lines the analog signal is obtained.
AIM: to rig up and test a PGA using a DAC and other components
The output of the DAC is given by, Vod=[Vref/2^n][∑2^i*ai], i varying from 0 to (n-1)
Where n is the number of digits in th edigital input. Vref is the reference voltage to the DAC.
According teh idal opamp characteristics Vod must be equal to Vin. Therefore substituting
Vod=Vin
V0/Vin=256/255>1
PROCEDURE :
2. Change input bits one at a time and note down the corresponding output
6
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
CIRCUIT DIAGRAM :
7
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
TABULAR COLUMN :
RESULT : the gain of the output is obtained for the corresponding select lines.
INFERENCE: the mux is used to obtain the analog values for the corresponding select lines and
these analog values are amplifer fot the required gain.
8
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
EXPERIMENT 3
Here S0,S1,S2 and S3 are electronic switches which are digitally controlled, when 1 is
present on the MSB line, switch S3 connects the resistor 2R to Vref. Conversely when 0 is
present on MSB line, switch S3 connects the same resistor to the ground line. Since the ladder is
composed of linear resistors, it is a linear network and the principal of super position can be
used. This means that the total output voltage due to a combination of input digital levels can be
found by simply taking the same of the output levels caused by each digital input individually.
CIRCUIT DIAGRAM:
A) R-2R LADDER NETWORK:
9
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
A 4 bit DAC using R-2R ladder network and an op-amp voltage follower acting as a
buffer stage D0, D1, D2, D3 are the digital inputs. Each digital input may be low (0) or high (1).
VR(0) = 0, VR(1) = VR= reference voltage can be selected depending on the maximum
analog o/p voltage required. If the digital inputs are obtained from a digital IC trainer, then V R =
+5 volts = constant/ DC reference voltage.
The analog output voltage Vo for a 4-bit DAC shown above can be written as:
V0 = VR/ 24 (2R/3)
V = VR / 24
PROCEDURE:
1. Verify all the components and patch-chords whether they are in good condition.
10
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
TABULAR COLUMN:
Inference: the binary weight and the R-2R ladder networks are designed to convert the
digital inputs into analog outputs. A four bit DAC is designed with reference of 5V.
11
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
EXPERIMENT 4:
3 BIT FLASH ADC
AIM: 1. To realize Flash ADC to convert the specified volts to 3 bit binary numbers.
APPARATUS: LM 324, IC 74148, Patch-chords, power chord and IC trainer kit.
THEORY: The Flash converter is the highest – speed ADC available, but it requires much more
circuitry than other types. For example 6-bit Flash ADC requires 63 analog comparators, while
an 8-bit unit requires 255 comparators and a 10-bit converter requires 1023 comparators. The
large number of comparators has limited the size of Flash converters are currently available in 2
to 8-bit units, and most manufacturers predict that 9 and 10-bit units will the market in the near
future.
In general an N-bit Flash converter would require 2 N-1comparators,2N resistors and the
necessary encoder logic.
PROCEDURE:
1) Check all the components and IC packages using multi-meter and digital IC tester.
2) Make connection as shown in circuit diagram.
3) Give supply to the trainer kit.
4) Provide Analog input voltage through 0 to 5v through variable power supply.
5) Verify the function table sequence of 2-bit Flash ADC and 3-bit Flash ADC and observe
the outputs.
CIRCUIT DIAGRAM:
12
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
Resolution= 1.25 V
Tabular Column
C1 C2 C3 C4 C5 C6 C7 C B A
0-0.5 V 1 1 1 1 1 1 1 1 1 1
0.5 – 1 V 0 1 1 1 1 1 1 1 1 0
1 – 1.5V 0 0 1 1 1 1 1 1 0 1
1.5 – 2.0 V 0 0 0 1 1 1 1 1 0 0
2 – 2.5 V 0 0 0 0 1 1 1 0 1 1
2.5 – 3.5 V 0 0 0 0 0 1 1 0 1 0
> 4V 0 0 0 0 0 0 1 0 0 1
13
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
RESULT: the given analog value is converted into its digital value.
INFERENCE : the analog value is given to the negative of the comparator and
reference is given to the positive of the comparator and depending on the
difference which is greater the output is either positive or negative. And the
priority encoder gets the input from these comparator and the digital output
is obtained from the priority encoder.
14
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
EXPERIMENT 5
8 BIT DAC USING IC 0800
THEORY:
Description
The DAC0800 series are monolithic 8-bit high-speed current-output digital-to-analog converters
(DAC) featuring typical settling times of 100 ns. When used as a multiplying DAC, monotonic
performance over a 40 to 1 reference current range is possible. The DAC0800 series also features
high compliance complementary current outputs to allow differential output voltages of 20 Vp-p
with simple resistor loads. The reference-to-full-scale current matching of better than ±1 LSB
eliminates the need for full-scale trims in most applications, while the nonlinearities of better
than ±0.1% over temperature minimizes system error accumulations.
The noise immune inputs will accept a variety of logic levels. The performance and
characteristics of the device are essentially unchanged over the ±4.5V to ±18V power supply
range and power consumption at only 33 mW with ±5V supplies is independent of logic input
levels.
The DAC0800, DAC0802, DAC0800C and DAC0802C are a direct replacement for the DAC-
08, DAC-08A, DAC-08C, and DAC-08H, respectively. For single supply operation, refer to AN-
1525.
15
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
PROCEDURE:
1. verify all the components and patch chords weather they are in good condition
2. make connections as shown in circuit diagram
3. give supply to the trainer kit
4. for different digital inputs measure the output voltage using multi meter
5. verify whether the theoretical values is matching with practical values and observe
the outputs.
CIRCUIT DIAGRAM:
TABULAR COLUMN:
D7 D6 D5 D4 D3 D2 D1 D0 Practical Theoretical
16
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
RESULTS:
INFERENCE:
17
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
AIM: To rig up an 8 bit unipolar successive approximation type ADC and verify the operation
for a full scale input voltage of 5V.
THEORY: ADC 0804 is an 8-bit ADC working on successive approximation technique. The
important features of this IC are on chip clock generator, differential analog voltage input, and
no requirement of zero adjustment.
The pin diagram of ADC 0804 is shown in figure. The start conversion signal is to
be applied to WR bar. The start conversion signal is applied to WR bar. The start of conversion
is to be first made low and then high. To start conversion is to be first made low and then high.
To start conversion CS bar must be low. When both CS bar and WR bar goes low, the converter
is reset. When WR bar returns to high state the conversion begins. When both CS bar and RD bar
are low, the digital is available on the output lines. The range of clock frequency is 100khz-
800khz. The clock may be supplied from an external source or it can be generated by an internal
clock generator.
PROCEDURE:
Vary the pot and set the input at 0.5V and note down the status of LEDs on the LED
bank which represents the equivalent digital code.
Change the input with an increment of 0.2V and note down the output upto 5V.
18
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
CIRCUIT DIAGRAM:
TABULAR COLUMN:
19
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
D7 D6 D5 D4 D3 D2 D1
RESULT:
INFERENCE:
EXPERIMENT 7
20
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
THEORY:
The first order system is one where the highest order of derivation describing the system behavior
is one. It os described by the equation: a1dc(t)/dt+a0c(t)=b0r(t) where a1 a0 b0 are all constants.
First order system are commonly found in measurement systems.
The time constant s of such a system is defined as the time to reach 63.2% of the final value. It
has some dimension at the time i.e is equal to the product of resistance and capacitance used in
common RC circuit which is considered here. Since constant is indicative of low, fast is the
system response to reach the final value.
PROCEDURE:
3. the values of R and C are varied randomly to get a response through DRB and DCB
4. the 63.2% of the output response got is calculated. It is projected from this value
downwards to get the time constant.
CIRCUIT DIAGRAM:
21
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
RESULT:
EXPERIMENT 8
To determine the step response of the second order system using RLC circuit.
22
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
AIM: Determine the output response of a second order system for under damped, over damped
and critically damped cases for step input. Also determine rise time, overshoot, and settling time
for under damped condition. Verify using theoretically calculated values
THEORY: For second order system the denominator of the closed loop transfer function is
Second order systems are important for a number of reasons. They are the
simplest systems that exhibit oscillations and overshoot.
PROCEDURE:
23
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
2. Design the values of R L C for critically damped, over damped and under damped
conditions.
3. Observe the response on CRO. From response measure rise time, peak over shoot, peak
time for critically damped, over damped and under damped conditions.
CIRCUIT DIAGRAM:
TABULAR COLUMN:
1
2 Critically damped
3
1 Over damped
24
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
2
3
1
2 Under damped
Sl. Parameters values Rise time Peak time Settling time Max overshoot
no
RESULT:
EXPERIMENT 9
25
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
APPARATUS: DRB, DRC, ASG, Oscilloscope, connecting wires and Signal generator.
PROCEDURE:
5) By varying the frequency of the input voltage, note down the output voltage and phase
angle.
7) The magnitude and phase plot are plotted on a semilog graph sheet and compare the
results with the designed values.
26
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
27
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
TABULAR COLUMN
28
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
29
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
Tabular column
30
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
31
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
Tabular column
RESULT:
EXPERIMENT 10:
32
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
AIM: 1. To conduct an experiment to study the operation of relay under two circumstances:
i) Relay to be ON when light falls on LDR.
ii) Relay to be ON when light falls on LDR is interrupted.
APPARATUS: Resistors (330 Ω ,6.8K,10K pot),LED,LDR,optocoupler,Relay,ransistor SL100,
digital multimeter , connecting wires and base board.
PROCEDURE:
2. Light is allowed to fall on LDR and the condition of LED and that of the Relays noted
down.
3. Light on LED is interrupted and conditions of LED and Relay is noted down.
4. Also, optocoupler circuit is rigged up and condition of LED is noted for no obstruction
and paper obstruction.
33
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
CIRCUITDIAGRAM:
34
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
35
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
TABULAR COLUMN:
Illumination OFF
Normally closed (NC)
Dark ON
RESULTS:
36
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
EXPERIMENT 11
Theory: In the proportional control algorithm, the controller output is proportional to the error
signal, which is the difference between the set point and the process variable. In other words, the
output of a proportional controller is the multiplication product of the error signal and the
proportional gain.
where
Procedure:
1. The proportional gain and the resistor values are calculated for the given problem
3. by maintaining error voltage as zero. The output Vout is adjusted for initial
conditions using V0 (if it is set to zero)
4. the input error voltage Ve is applied and increased gradually within the given range
and corresponding output voltage Vout is measured
37
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
Circuit diagram:
TABULAR COLUMN:
RESULT:
38
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
PROCEDURE:
1. connect the circuit as shown in the circuit diagram.
2. apply 5 Vpp square wave of 1KHz from the signal generator
3. fix the resistance and capacitance as per the design
4. obtain the output waveform and plot it is a graph.
CIRCUIT DIAGRAM:
39
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
RESULTS:
PROCEDURE:
By maintaining Ve as zero output is set for initial voltage ( if it is given otherwise it is set
to zero).
The error voltage Ve (step change) is applied at the input and the output is note down
with respect to time.
After Vout reached saturation the individual output are measured and verified with the
obtained output.
40
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
CIRCUIT DIAGRAM:
RESULTS:
41
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
EXPERIMENT 12
AIM : Using MATLAB/LAB VIEW software, plot the Bode plot and Root locus with and
without compensation for a given transfer function and specifications. Verificatioto n using
Theoretical values.
42
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
PROGRAM
N=[15];
D= [1 1 0];
Figure(1);
Margin (n,d);
[gm pm wcp wcg] = margin (n, d);
Pms = 45;
L=11;
Pml = pms – pm +l;
Pmr = pml * pi/180;
A2 = 1- sin (pmr);
A3 = 1+sin(pmr);
A=a2 / a3 ;
A1 = 20* log 10(sqrt (a));
N=conv (n, 1/a);
W=100;
For i=wcg;.01;w
[m, p] = bode (n, d, i);
M=20*log 10(m);
If m>= a;
f = I;
break;
end;
end;
w1=f * (sqrt (a));
w2=f/ (sqrt (a));
n1 = [1,w1];
d = [1,w2];
[nc, dc] = series (n, d, n, d);
Figure (2);
Margin (nc, dc);
End;
RESULT :
INFERENCE :
43
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
44
DATA CONVERTER AND CONTROL SYSTEM LAB MANUAL [Type text]
45