M2_lectures_partA
M2_lectures_partA
Stimulus
Vref #
Signal conditioning
vin
ADC input must be a voltage signal within a limited amplitude range; for instance from 0 V to
5 V. The task of the signal conditioning circuitry is to adapt sensor’s signal to that voltage
range so that maximum effective resolution can be achieved for a specified stimulus range.
BIS 2024-2025 M2.a: 2/38
M2.2. First look at Operational Amplifiers (OAs)
An Operational Amplifier (OPAMP or, simply, OA) is a circuit able to largely amplify an
input differential voltage. It is also characterized by a very large input resistance and a very
small output resistance.
(external appearance of an
OPAMP; PDIP package)
M2.a: 4/38
iout
Note that the output energy in an OPAMP comes from the power supply and not
from the input.
A OPAMP used as comparator for detecting zero- A comparator can detect transitions through a
crossings. threshold voltage set with a voltage divider
(source: “Electronic Circuits and Applications”, S. D. Senturia and B. D. Wedlock) M2.a: 6/38
The linear gain factor of an OPAMP, 𝐴 , is always very large (>10000) but it has an
uncertain value. In order to use an OPAMP as a linear amplifier, negative feedback is
employed thus sacrificing potential gain but obtaining accuracy.
𝑣𝑂𝑈𝑇 = 𝑣+ − 𝑣− 𝐴
𝑣𝑂𝑈𝑇 = 𝑣+ − 𝐵𝑣𝑂𝑈𝑇 𝐴
𝑣+
+ 𝑣𝑂𝑈𝑇 1 + 𝐵𝐴 = 𝐴𝑣+
𝑣𝑂𝑈𝑇
𝑣− 𝐴𝑣+ 𝑣+ (implies gain
- 𝑣𝑂𝑈𝑇 = =ቚ
1 + 𝐵𝐴 𝐴≫1 𝐵 since B ≤1)
and,
B
𝑣+
= 𝑣+ − 𝑣− 𝐴 = 𝐴𝑣+ − 𝐴𝑣−
𝐵
𝑖− = 0 → 𝑖𝑆 = 𝑖𝐹
𝑣𝑠 − 𝑣− 𝑣𝑠 − 𝑣− 𝑣𝑠
𝑖𝑆 = =ቚ =
(infinite input resistance) 𝑅𝑆 𝑣− =𝑣+ =0 𝑅𝑆 𝑅𝑆
𝑣− − 𝑣0 0 − 𝑣0 −𝑣0
𝑖𝐹 = =ቚ =
𝑅𝐹 𝑣− =𝑣+ =0 𝑅𝐹 𝑅𝐹
𝑣𝑆 −𝑣0 𝑅𝐹
= → 𝑣0 = − 𝑣
𝑅𝑆 𝑅𝐹 𝑅𝑆 𝑆
BIS 2024-2025 M2.a: 8/38
Follower
Input impedance is very high (ideally infinite) and output impedance is very low (ideally
zero). This circuit is useful for “copying” the voltage from a network without disturbing it.
(http://arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf)
LED
μC
The microcontroller output would be able to drive by itself the LED (current ~ 5 mA). The follower is added here so as to
make the SCK line similar to the other output lines in terms of maximum current capability (~ 20 mA)
(exercise: demonstrate)
M2.a: 11/38
(exercises: demonstrate)
M2.a: 12/38
5V
In this case the reference ground of the
OPAMP is not
but
2.5 V
0V
that is, in case v+-v- is zero then the
output voltage will be + 2.5 V with respect
to the external ground.
+ +
VD/2
VD/2
VC
-
V-
VU
+
VU ≡
VC=VU/2 VD/2= VU/2
Single-ended voltage 0V
(to ground)
Same voltage signal represented as a differential
signal with a common-mode voltage.
Common-Mode Rejection Ratio can be defined for any circuit that amplifies a
CMRR). Here it is shown one of the simplest configurations containing a single OPAMP:
if then:
+
VC VD/2
Observe that in the previous difference amplifier the ground reference is defined by an
additional terminal; it is not defined from the OPAMP power supply terminals.
R = R0 (1 + x ) = R0 (1 + s ) R − R0 R
x =s = = −1
where s is the stimulus. R0 R0
In principle, output from these sensors could be read by injecting current and measuring
voltage. However, x is very small and, therefore, the overall resolution of the system
would be poor (i.e. small voltage variations over a large fixed voltage).
A simple voltage divider would not help in terms of resolution and would make things
more difficult to calculate x
V0
RA RA
Vs V0 VS − V0
Vo R = RA x= −1
VS − V0 R0
R = R0 (1 + x )
Thermal coefficient
R = R0 T (1 + x + T ) = R0 T (1 + s + T )
0 0
So, there is a need for a technique for magnifying x and for cancelling the impact of the
temperature changes. And that’s what the Wheatstone bridge does…
Vs R1 R2
- VD +
R4 R3 = R0 (1 + x )
constant
R3 R4 kx k
VD = VS − = VS = VS x
R3 + R2 R4 + R1 k = R1 = R2 (k + 1)(k + 1 + x ) x ( k +1) (k + 1)(k + 1)
R4 R0
If R1,R2,R3 and R4 are made with the same technology and on the same substrate, their
thermal coefficients will be very similar and, therefore, temperature will not have an effect
on the output.
R1 R2 R1 (1 + T ) R2 (1 + T )
k= = = =
R4 R0 R4 (1 + T ) R0 (1 + T )
Vs
R1 = R0 (1 + x ) R2 = R0
R1 R2
- VD + facilitates k= =
R4 R0
R4 = R0 R3 = R0 (1 + x )
(and increases sensitivity)
Vs
R1 = R0 (1 + x ) R2 = R0 (1 − x )
Linear output
- VD +
R4 = R0 (1 − x ) R3 = R0 (1 + x ) VD = VS x
R = R0 (1 + x ) = R0 (1 + s )
strain gauge
load cell
strain gauge
(visit this link for an animated demo on the functioning of strain gauge pressure sensors)
(http://www.rdpe.com/us/hiw-sgpt.htm)
iL
Exercise:
(BPW21)
(inverting)
M2.10. The Schmitt trigger (Hysteresis)
M2.a: 32/38
Exercise:
Show that T = (R1/R2)VCC
BIS 2024-2025
M2.11. Square wave oscillator
Some sensors produce a change in its capacitance. That, for instance, would be the case of
most humidity sensors. Therefore, a square oscillator represents a good option to get
measurements from these sensors as the output signal is ready to be acquired by digital
systems, without need for an ADC; the digital system only needs to measure frequency.
BIS 2024-2025 M2.a: 34/38
Exercise:
Calculate frequency (assume
this * is exactly 2.5 V)