Professional Documents
Culture Documents
.
2
UNIT 1: TRANSDUCERS
1.0 Introduction
A transducer is any device that converts energy from one form to another. In this unit, you are
going to cover the following input transducers: light dependent resistor (LDR), thermistor and
strain gauge as well as the following output transducers light emitting diode (LED), buzzer and
relay.
1.1 Input transducers: The light dependent resistor (LDR), thermistor and strain gauge.
1.1.1 The (LDR)
You can make an LDR by sandwiching a film of photosensitive material such as cadmium
sulphide between two metal electrodes. It has a window which allows light to reach the
photosensitive material. An LDR is sensitive to changes in light intensity. Typically, in complete
darkness, its resistance is about 10M , in moonlight, its resistance is about 1M and in bright
sunlight, about 100 . You should also take note that a constant light intensity gives a constant
LDR resistance. The LDR symbol is shown in Figure 1.1 (a).
The LDR’s resistance falls with increasing light intensity as illustrated in Figure 1.1 (b).
3
Figure 1.1 (b): The variation of resistance with illumination (i.e.), the relationship between light
falling on the LDR (incident light) and the LDR’s resistance.
Negative temperature coefficient (NTC) thermistors have resistances that vary inversely with
temperature (i.e.), their resistance becomes smaller as the temperature increases. This is
illustrated in Figure1.3.
Figure 1.3: The variation of resistance with temperature for an NTC thermistor.
4
1.1.3 The strain gauge
You can make a strain gauge by sealing a length of very fine wire in a small rectangle of thin
plastic, as shown in Figure 1.4 (a).
5
Solution
You should recall that the resistance R of a wire of length L and of uniform cross-sectional area
L
A is given by: R … (i)
A
If you assume that there is a negligible change in the area of cross section when the wire extends
by a small amount L , then new resistance will be:
R R L L … (ii)
A
L
R or R α L .
A
Thus, if you assume that the area of cross section is constant, the strain which is proportional to
the extension L will also be proportional to the change in resistance R .
1.2 Using LDRs, thermistors and strain gauges in potential divider circuits
Input transducers (sensing devices) are usually connected to an electrical circuit which is
designed to provide a voltage that will control an output transducer. You can consider an
example of an input transducer which gives rise to a change in resistance R, say a thermistor in
Figure 1.5. A potential divider like the one shown in Figure 1.5 can be used to convert this
change in R into a change in voltage, V0.
6
Figure 1.5: Potential divider circuit.
If you connect a supply of emf V S and negligible internal resistance in series with a fixed resistor
of resistance R F and a sensing device of resistance R, the output voltage V0 will be:
R
V0 VS
RF R
Alternatively, you can divide both the numerator and denominator of the above equation by R.
This alternative expression provides an easier way of observing the dependence of the output
voltage with the changes in the voltage divider’s resistances.
7
(b) Give any real life application of the circuit shown in Figure 1.5.
Example 1.2
A battery of emf 6.0V and negligible internal resistance is connected in series with a fixed
resistor of resistance 1kΩ and a strain gauge of resistance 2kΩ as shown in Figure 1.6.
Solution
Rs
Potential difference across the strain gauge Vin
s
R R
2000
6.0
2000 1000
4.0V
Example 1.3
A temperature sensor input subsystem is shown in Figure 1.7.
8
Solution
You can observe that at a temperature of 250C, the thermistor has a resistance R of 20kΩ.
Therefore, if you apply the potential division formula, you get:
15
V0 6
15 5
V0 4.5V
9
LEDs can emit different colours of light such as red, green, yellow, blue, white and amber (etc.),
depending on the material used in their manufacturing. Their low power consumption makes
them suitable for use as indicators. LEDs are solid-state devices, so they are much more robust
than filament lamps. A resistor is frequently connected in series with an LED, so that when the
LED is forward biased (the diode is conducting), the current is not so large as to damage the
LED.
Example 1.4
An LED is used as the output device in a digital system that gives an output voltage of
0V or 12V as illustrated in Figure 1.11.
(a) Show in Figure 1.11 how the LED and another component should be connected
to the system to light when the output is high.
10
Figure 1.11: Digital system.
(b) (i) The LED has a forward voltage drop of 2 V when it is conducting the required
current of 25mA. Calculate the value of the component you have chosen in part (a).
(ii) Find the power dissipated by this component.
(iii) If 25mA is the maximum allowable current through the LED. Choose an appropriate
preferred value for this component.
(iv) What is the colour code for the chosen value in part (b)(iii) if it has a tolerance of 5%?
Solution
(a)
11
(b) (i) 12 2 10V
10
400 .
0.025
(ii) 10 0.025 0.25W .
(iii) 430 Ω (allow 470 Ω).
(iv) Yellow, orange, brown and gold.
12
13
14
Infinite slew rate (i.e.), a sudden change in the input results in a sudden change in the output, without
any time delay.
15
16
17
18
19
Advantages of negative feedback
Greater operating stability / Stabilized gain.
Amplitude and frequency distortion is reduced.
Reduces electrical noise which is generated within the feedback loop.
Increases the bandwidth (i.e.), improves the frequency response.
Modify the input and output impedance levels.
20
An input signal Vin is applied to the input resistor Rin. Negative feedback is applied by means of the
feedback resistor Rf. The resistors Rin and Rf act as a potential divider between the input terminal and the
output of the OP-AMP.
3. Assume virtual earth approximation, i.e. voltage (potential difference) between the input terminals is
zero. The implication of zero voltage between the input terminals means that if one input is tied to
ground, then the other input is at the same potential. The current flow into the input leads is zero, so
the input impedance of the op amp is infinite.
VIRTUAL EARTH IS BEING AT EARTH POTENTIAL BUT THE POINT IS NOT DIRECTLY CONNECTED TO EARTH.
21
22
23
24
25
THE SCHMITT TRIGGER
Schmitt trigger is a comparator circuit which applies positive feedback to the non-inverting input of a
comparator or differential amplifier, i e a Schmitt trigger consists of an OPAMP in the non-
inverting mode with positive feedback. The circuit is named a "trigger" because the output retains its
value until the input changes sufficiently to trigger a change in the output voltage. When the input is
higher than a chosen threshold/changeover voltage, the output is high, ie the output always saturates
positively and vice versa when the input is below or lower than the chosen threshold/changeover
voltage. When the input is between the two levels the output retains its value.
The input voltage Vin of the trigger is obtained from a moveable contact wiper on a
potentiometer as shown below.
26
The pre-set value/the changeover value Vin at which Vo switches/triggers from a negative
maximum value to a positive maximum value or vice versa is set in the OPAMP before wiping
up or down.
The input voltage Vin is varied by wiping the wiper contact up or down on the potentiometer.
When the changeover voltage value Vin is not reached yet, Vo remains saturated at a constant
value, i e the OPAMP ‘remembers’ the previous Vo until Vin the changeover/pre-set value is
𝑹𝒇
attained/reached. Gain for OPAMP above is 4 (Gain for a non-inverting OPAMP, A = 1 + )
𝑹𝒊
Suppose the wiper is at the lowest end at switching 0n, -12V so as to make the voltage at the
non-inverting input X negative and hence, less than the voltage at the Y input which is kept at
0V and output Vo.
27
Sliding the wiper further upwards, makes Vin less and less negative until Vin = 0V, but Vo remains
saturated at -12V.
𝟒(−𝟏𝟐)
When Vin = 0V, potential at X, Vx = = -3V So Vo = 4(-3V) = -12V.
𝟒+𝟏𝟐
𝑹𝟏 𝑽𝒐
The changeover voltage Vin is given by the expression 𝑽𝒊𝒏 = − 𝑹𝟐
The diagram below shows the resistances R1 and R2 used in the equation
Where Vo is output voltage before the changeover voltage Vin was achieved/attained.
4(16𝑉)
Potential at point X, Vx is given by Vx = 4 - = 0𝑉
4+12
Vo = 4 x vx = 4 x 0 = 0V
28
The value Vo = 0V means that the output voltage Vo switches from -12V through 0V to +12V.
Further moving the wiper upwards makes Vin more positive but Vo remains saturated at 12V.
When sliding downwards, the above process is reversed and changeover voltage value occurs at -4V.
The characteristic graph below shows the output voltages when sliding the wiper upwards and
downwards.
29
30
31
32
33
34
35
36
37
38
39
COMBINATIONAL LOGIC
40
41
CONTROL SYSTEMS
It is required to design a logic circuit which detects broken glass to and smoke in a house any
time of the day. The circuit should be able to be tested during the day only. The circuit below is
intended to provide the necessary protection. Construct its truthtable and explain whether the
circuit provides the required protection.
42
Solution
Truth table.
Day/night Break glass Smoke R S Output to
switch detector detector outside siren
0 0 0 1 1 0
1 0 0 1 0 0
0 1 0 0 1 0
1 1 0 0 0 1
0 0 1 0 1 0
1 0 1 0 0 1
0 1 1 0 1 0
1 1 1 0 0 1
(a) The proposed system will not provide the building with adequate protection because the
siren is not activated if just one of Smoke detector, Break glass detector or Day/night switch
is at logic state 1. The circuit below is the intended design.
(b) Since the circuit does not provide the required protection, design one that sounds the siren
when the glass is broken or when smoke is detected in the house any time of the day. Show
suitability of your circuit by means of a truthtable.
43
LOCK SYSTEM
SOLUTION
A B C D Q1 Q2 Q3 Q4 Q5 Q6
0 0 0 0 1 1 0 0 0
1 0 0 0 0 1 0 0 0
0 1 0 0 1 1 1 0 0 SOUND
1 1 0 0 0 1 0 0 0
0 0 1 0 1 1 0 1 0
1 0 1 0 0 1 0 1 0
0 1 1 0 1 1 1 1 1
1 1 1 0 0 1 0 1 0
0 0 0 1 1 0 0 0 0
1 0 0 1 0 0 0 0 0
0 1 0 1 1 0 1 0 0 SOUND
1 1 0 1 0 0 0 0 0
0 0 1 1 1 0 0 0 0
1 0 1 1 0 0 0 0 0
0 1 1 1 1 0 1 0 0
1 1 1 1 0 0 0 0 0
CORREECT CODE = 0110 A = 0 B = 1 C = 1 D = 0
44
PRACTISE QUESTIONS
1. Define the following terms:
(a) logic gate,
(b) truth table.
2. An air conditioner should switch on a fan when temperature in a room rises or becomes too hot
during the day. You are supplied with a relay, AND gate and a fan. Using these three apparata,
design the necessary circuit.
3. Use two switches, an LED and a dc power supply to draw a circuit diagram which
behaves in exactly the same way as an EX-OR gate. Explain your diagram.
4. A logic circuit is required to activate an alarm when the temperature of a hot radiator
FALLS during the day. A switch is necessary to test the circuit any time of the day.
Design the circuit and construct its truthtable. In your design include a relay since current
from a logic gate is too small to run an alarm.
5. Table below shows how the input sensors A and B of an electronic system control the
outputs P, Q and R.
A B P Q R
0 0 1 1 1
1 0 0 1 0
0 1 0 1 0
1 1 0 0 1
45
For the circuit above draw up its truthtable and identify a single equivalent gate that acts in the
same way as the circuit.
W X Y Z Q
0 0 1 0 0
0 1 1 1 1
1 0 1 1 1
1 1 0 1 0
(a) Inputs W and X are connected to two logic gates having outputs Y and Z. Given that Y and Z form
the inputs to a third gate which provides the output Q. Complete diagram below by drawing the
logic circuit that would give these outputs.
(b) Name a single logic gate which performs the same function as the complete circuit
above.
46