9. Complex systems#

9.1. Oscillator#

An oscillator generates a signal. Oscillators play a crucial role in enhancing signal quality, particularly in sensor and signal applications. Sensor outputs are often analog, which can make data readouts with a microcontroller difficult. By incorporating an oscillator, the readout by a microcontroller can be made possible.

An oscillator is a circuit designed to generate a repetitive waveform. There are two primary types:

  1. Harmonic Oscillator

    • Produces a (clean) sine wave.

    • Utilizes an amplifier and a frequency-determining network; which could be a sensor.

    • When parameters are balanced, the circuit generates a stable sine wave.

  2. Relaxation Oscillator

    • Operates by continuously charging and discharging a capacitor.

    • Various implementations exist, typically charging/discharging between two thresholds (linear or non-linear, e.g., exponential).

    • The oscillation waveform is a (asymmetric) triangle.

Since you already encountered the basic form of a harmonic oscillator, a LC circuit, earlier in this book, we will focus here on the relaxation oscillator.

9.1.1. Relaxation Oscillator - An Oscillator with an Integrator and a Comparator#

When placing the Integrator and comparator in a loop, the \(+U_{supply}\) or \(-U_{supply}\) output of the comparator can be integrated. As soon as the output of the integrator hits the comparator threshold, the sign of the comparator’s output inverts. The resistor in the line between the comparator’s output and integrator’s input is to limit the current, directly influencing the frequency of the oscillation.

../_images/16ImplementSimple.png

Fig. 9.1 Relaxation Oscillator, the frequency of the oscillation is determined by the resistors and capacitors. This oscillator can be altered to transform an intensity (from a light sensor) into an oscillating signal, which is easy to read into a computer
Courtesy of Maciej Topyła, former Teaching Assistant
#

We will use an OPAMP-based integrator to charge and discharge a capacitor (which is part of the integrator circuit). The cycle operates as follows:

  • The capacitor charges until it reaches one threshold of the comparator.

  • At this point, the comparator switches state, reversing the direction of the charging current.

  • The capacitor discharges until it reaches the other threshold.

  • The thresholds are determined by the feedback network of the comparator.

The comparator is configured such that a positive signal at the comparator’s output results in a negative slope at the integrator’s output.

../_images/16BackgroundOscillatorCharge.png

Fig. 9.2 Relaxation Oscillator charge cycle
Courtesy of Maciej Topyła, former Teaching Assistant
#

../_images/16BackgroundOscillatorDischarge.png

Fig. 9.3 Relaxation Oscillator discharge cycle
Courtesy of Maciej Topyła, former Teaching Assistant
#

Key characteristics of the circuit

  1. The voltage across the capacitor (output of the integrator) continuously cycles between two thresholds.

  2. The comparator output also oscillates between two levels determined by the power supply rails (not necessarily matching the integrator’s thresholds).

  3. The (dis)charging speed of the capacitor depends on the integrator’s input signal (current through ‘Rc’) and the capacitor’s properties.

The charging and discharging goes equally fast in the above simple oscillator. If different charging and discharging times are required, then a diode ‘D1’ is placed in series with ‘Rc’ in the feedback line. Then an alternative source is required, since the diode conducts in one of the two (dis)charge phases.

../_images/16ImplementFixedRelaxationOscillator.png

Fig. 9.4 The charging and discharging is decoupled. Charging happens via the external source, while discharging occurs via the diode. The effect is that the charging and discharging times are decoupled, they can differ from each other.
Courtesy of Maciej Topyła, former Teaching Assistant
#

If then the external source is replaced by a photodiode, which current depends on the received light intensity, the photodiode + oscillator can be used as light sensor. This photodiode is used to generate the charging current as a function of light intensity. Note: Swapping the polarity of the photodiode and diode D1 results in a 180-degree phase shift in the oscillation but does not affect the circuit’s functionality.

Summary:

  • Photodiode converts light to a photocurrent.

  • Integrator shapes (integrates) the signal from the photodiode (and through \(D_1\)).

  • Comparator acts as a decision-maker, switching based on the integrator’s output.

  • Diode D1 ensures that the capacitor is charged only by the photocurrent.

  • Resistor Rc determines the capacitor’s discharging time.

../_images/16BackgroundOscillator.png

Fig. 9.5 The oscillator as light sensor with a photodiode
Courtesy of Maciej Topyła, former Teaching Assistant
#

9.2. Colorimeter#

A colorimeter is a device that measures the absorbance of different wavelengths of light in a solution. When multiple wavelengths are involved, such a device is called a spectrophotometer. The simplest form of a colorimeter is a (multicolor) LED, which illuminates a cuvette with some liquid or solution, and a photodiode.

../_images/Colorimeter.svg

Fig. 9.6 The colorimeter consists of a light source, a sample (like a tube or cuvette) and a light sensor#

The amount of light that passes through a weakly absorbing medium depends on the concentration of the absorber \(C\), the absorption strength of the absorber at the wavelength(s) of light used given by the molar extinction coefficient \(ε\), and the path length \(d\) through the medium. The concentration of the absorber often allows us to monitor the progress of a chemical reaction. This concentration \(C\) can be determined from the Beer‐Lambert law, which is written here in a slightly modified form. Note: \(I\) represents the intensity in this colorimeter section:

(9.1)#\[ I_C=I_B e^{-Cεd} \]

Here, \(I_C\) is the intensity of light passing through a solution of concentration \(C\) and \(I_B\) is the intensity of light passing through the liquid when \(C\) = 0 (water). The product \(εd\) can be determined implicitly via calibration, by measuring the absorbance \(Abs\) versus known concentration \(C\):

(9.2)#\[ εd=\frac{1}{C} ln(\frac{I_B}{I_C} )=\frac{1}{C} Abs \]

If you measure the absorbance versus the concentration you can determine this product \(εd\).

../_images/BeerLambert.svg

Fig. 9.7 By measuring the light intensity through a medium and through water, the absorbance can be derived. This absorbance depends on the concentration, path length, and medium-specific extinction coefficient#

The current generated by the photodiode can be read out with a current-to-voltage OPAMP circuit. Another OPAMP can be used, together with a transistor, to stabilize the current through the LED (as light source). An even more simple option would be to use a voltage source and resistor to control the LED current, however, the forward voltage drop over the LED is temperature sensitive and therefore not stable.

The colorimeter can be used for measuring light-dependent reactions, including yeast growth, photo-synthesis, color-dependent pH detection.

9.2.1. Colorimeter LED control#

../_images/LED_opamp_control_loop.svg

Fig. 9.8 Schematic to control a stable LED current, with an OPAMP and transistor#

The transistor’s collector is connected to the LED. The control signal (voltage) is connected to the voltage divider, at the OPAMP’s input. The OPAMP will adjust its output in such a way that the potential on the inverting and non-inverting input will be the same. The voltage on the inverting input is determined by the current flowing through the 20Ω resistor. The voltage on the non-inverting input is a fraction of the control voltage.

In Fig. 9.8 the input voltage is divided by a factor of 5 (3kΩ / (3kΩ + 12kΩ)). A 1 Volt input will give a voltage of 200mV on the OPAMP input(s). A voltage drop of 200mV over the 20Ω resistor gives a current of (200mV / 20Ω)= 10mA. Thus the conversion ratio is 10mA/V. The benefit of using an OPAMP is that the circuit’s transfer function becomes independent of the amplification factor of the transistor.

9.3. Voltammetry#

Voltammetry is a form of chemical sensing, where a chemical signal is converted to the electrical domain and measured. The conversion is done via a redox reaction, where two electrodes are inserted into a chemical substance, and on one of the electrodes oxidation is taking place (losing electrons), and on the other electrode reduction (gaining electrons) occurs.

For example:

  • reduction: \( Cl_2 (gas) + 2e^- \rightarrow 2 Cl^- \)

  • oxidation: \( Cu (solid) \rightarrow Cu_2^+ +2e^- \)

Studying the connection between redox chemistry and electricity is called electrochemistry. The potential difference between two electrodes can be measured, giving information about the chemical properties. At the electrode-solution interface an electric double layer is formed, which can be modelled as a capacitor.

../_images/sensor_connection.jpg

Fig. 9.9 The sensor has three electrodes, work, counter, and reference. The sensors can be ordered from Palmsens#

In the three-electrode potentiostat, (numref}fig:general_voltammetry_setup two electrodes are used to conduct the current, while the third electrode is dedicated solely to measure potential. Since the potential-measuring electrode carries no current, the voltage drop between the work and reference electrode in the liquid is zero volts, as per Ohm’s law: \( U = I \cdot R = 0 \cdot R = 0 \, \text{V}. \)

../_images/Convention.png

Fig. 9.10 The schematic of the sensor with source and meters.
Courtesy of Maciej Topyła, former Teaching Assistant
#

In this system:

  • The Counter Electrode (CE) and the Working Electrode (WE) carry the current.

  • The current is measured using an Ampere-meter (Am).

  • The potential \(U_{cell}\) of the Working Electrode (WE) is measured relative to the Reference Electrode (Ref) using a voltmeter (Vm).

  • A variable voltage source \(U_{\text{var}}\) powers the entire setup.

The potential of the working electrode (\(U_{cell}\)) is the parameter controlled in this setup. The voltage source \(U_{\text{var}}\) is adjusted to achieve the desired \(U_{cell}\). Typically, \(U_{cell}\) is not held constant but is swept across a range of voltages defined by the sample under study.

Historically, potentiostats required manual operation, with users adjusting \(U_{var}\) while monitoring the voltmeter and recording current measurements. Modern potentiostats, however, are computer-controlled, with a feedback loop (with an OPAMP) that automatically fine-tunes \(U_{var}\) to maintain the desired \(U_{cell}\).

9.3.1. Sensor circuit#

One of the possible implementations of a voltammetry setup with OPAMPs to stably control the \(U_{cell}\) and measure \(I_{cell}\) is shown below.

../_images/CompPotConverterOffset.png

Fig. 9.11 voltammetry setup based on a easurement cell with two OPAMPs
Courtesy of Maciej Topyła, former Teaching Assistant
#

In this circuit \(U_{cell}\) depends on \(U_{sweep}\) and \(U_{offset}\). \(U_{sweep}\), as the name suggests, is often a varying signal, while \(U_{offset}\) is a DC value which can also be 0V. OPAMP1 is in order to generate a stable input voltage, while OPAMP2 is a current-to-voltage converter.

Thanks to \(U_{offset}\), both negative and positive \(U_{cell}\) can be set using voltage sources that output only positive voltages:

\[ U_{cell} = U_{offset} - U_{sweep} \]

During the sweep, the current \(I_{cell}\) can take on positive or negative values, regardless of the value of \(U_{cell}\), because it depends on the chemical reaction taking place in the cell and the conditions of the measurement. In the OPAMP2 circuit: The conversion is described by the equation:

\[ U_{a} = I_{cell} \cdot R_f + U_{offset} \]

9.3.2. Sweep signals#

A linear voltage sweep can be seen as a triangular wave (a linearly increasing and decreasing ramp), but for computer controlled sweeps this means a stair case signal, like depicted below; the steps depend on the DAC resolution. In order to measure a full voltammogram a voltage sweep is needed, and the result is plotted as an \(U_{cell}\) - \(I_{cell}\) plot. For paracetamol, but also other chemical substances, a clear peak at a distinct \(U_{cell}\) is measured. Such measurements allow to detect which substances are present, and in which concentration. It is for example used for illicit drug detection.

../_images/Cyclic_voltammetry%2C_the_case_of_one-electron_transfer_to_a_free-diffusing_molecule.svg

Fig. 9.12 Overview of the sweep voltage and the resulting U-I characteristic for paracetamol (APAP)
Created by Lewisiscrazy, under CC BY-SA 4.0, original file:https://en.wikipedia.org/wiki/File:Cyclic_voltammetry,_the_case_of_one-electron_transfer_to_a_free-diffusing_molecule.svg
#

However, one can use more advanced sweep signals, like differential pulse (DPV) and square wave voltammetry (SWV). These complex waveforms lower the influence of faradaic currents at the electrode surfaces. The electrochemical reaction will give a larger response for larger changes of input voltage, but requires postprocessing of the data: take the difference from high and low part of the pulse.

For the square wave pulse voltammetry the \(U_{amplitude}\) is much larger than the \(U_{step}\). The variation in voltage is symmetrical, with + and - \(U_{amplitude}\). Also in time the signal is symmetric, half of the time there is a higher pulse, half of the time a lower pulse, with respect to \(U_{cell}\).

For the differential pulse the \(U_{pulse}\) is asymmetric, both in time (\( t_{pulse} \neq t_{delay}\)) as in voltage step (only positive, on top of \(U_{step}\)).

../_images/CV-SWV-DPV_v2.jpg

Fig. 9.13 Three different \(U_{sweep}\) options: a) cyclic voltammetry (CV), b) squarewave voltammetry (SWV) and c) differential pulse voltammetry (DPV). The resulting output signal is more distinct, at the cost of more demanding signal generation and postprocessing. Courtesy of Maciej Topyła, former Teaching Assistant#

9.4. Synchronous detection#

With synchronous detection you can measure sensor signals in environments where lots of noise and other interfering signals are present. In colorimetry for example, you illuminate a sample with a LED, and you would want to measure the transmitted signal only. Then you need to limit the contributions of background lighting, unwanted scattering and other unwanted signals are measured, which can be even larger than the required signal. By modulating the excitation signal (e.g. turning the LED on and off at a specific frequency) and measuring the resulting signal in a clever way, you can get rid of all the other -unwanted- contributing signals.

../_images/SyncDet_overview.png

Fig. 9.14 Simplified synchronous detection system: Light is recorded by the sensor, that signal is amplified and mixed with the original signal in order to produce an output signal which is less sensitive to signals with frequencies different from the input signal, like noise. Courtesy of Marco Pelk#

In order to understand mixing, first a brief recap about orthogonality of higher harmonics, and Fourier series.

9.4.1. Orthogonal functions#

A sine and a cosine are orthogonal, as their inner product is zero. A sinusoidal function is orthogonal with its harmonics, as the integral (overlap) between two harmonic functions over a full period is zero:

\[ \int_{-T/2}^{T/2} \cos(n\omega_0 t)\,\cos(m\omega_0 t)\,dt = 0 \qquad \text{for } n \ne m \]

Here T is one full period of the fundamental frequency \(f_0 = \frac{\omega_0}{2\pi}\) (the lowest frequency which is not 0).

9.4.2. Fourier series#

You can express any periodic signal as an infinite sum of (co)sinus as follows:

\[ f(t) = a_0 + \sum_{n=1}^{\infty} \left[a_n \cos(n\omega_0 t) + b_n \sin(n\omega_0 t) \right] \]

This is called the Fourier series expansion for function f(t), where an and bn are waveform-specific coefficients. Calculation is relatively easy, as the orthogonal properties of harmonics allow to calculate each coefficient separately. In the following table \(a_n\) and \(b_n\) are given for common waveforms.

Waveform

DC (\(a_0\))

Cosine (\(a_n\))

Sine (\(b_n\))

Cosine

\(0\)

\(a_1=A\), \(a_n=0\) for \(n\ge2\)

all \(0\)

Square wave (symmetrical w.r.t. x and y)

\(0\)

\(\frac{4A}{n\pi}(-1)^{(n-1)/2}\) for odd \(n\); \(0\) for even \(n\)

all \(0\)

Half-wave rectified cosine

\(\frac{A}{\pi}\)

\(a_1=\frac{A}{2}\); \(a_n=0\) for odd \(n\ge3\); \(a_n=\frac{2A}{\pi(1-n^2)}(-1)^{n/2}\) for even \(n\)

all \(0\)

Full-wave rectified cosine

\(\frac{2A}{\pi}\)

\(a_n=0\) for odd \(n\); \(a_n=\frac{4A}{\pi(1-n^2)}(-1)^{n/2}\) for even \(n\)

all \(0\)

9.4.3. Frequency mixing#

If two sinusoidal signals are multiplied together, you get signals at different frequencies: the difference and the sum of the original frequencies:

\[ \cos(\omega_1 t)\cos(\omega_2 t) = \frac{1}{2} \left[\cos\bigl((\omega_1-\omega_2)t\bigr) +\cos\bigl((\omega_1+\omega_2)t\bigr) \right] \]

Fig. 9.15 shows the output spectrum for a cosine signal of 1 V amplitude and frequency (ω1) which is multiplied by an identical cosine signal (ω2= ω1).

../_images/SyncDet_1000x1000.svg

Fig. 9.15 Spectrum of a signal of 1 kHz multiplied by a reference of 1 kHz.
Courtesy of Marco Pelk
#

The output is 1/2+1/2 cos⁡(2ωt). The first term is a constant (DC value) and the second is a signal at double the frequency. After the lowpass filter, only the DC value will be left. In Fig. 9.16 multiplication of two identical cosines is shown.

../_images/SyncDet_cosine_squared.svg

Fig. 9.16 Multiplication of identical cosines (inputs left & middle, output at the right).
Courtesy of Marco Pelk
#

9.4.4. Using the switching function#

The input signal can also be multiplied by the switching function shown in the following picture. This switching function is a square wave, which is +1 for the sine signal above zero, and -1 for the sine signal below zero. Like a comparator, it is a square wave with the same frequency as an input sine wave.

../_images/SyncDet_cosine_x_square.svg

Fig. 9.17 Multiplication of left) sine, middle) a switching, square wave, right) the multiplied output.
Courtesy of Marco Pelk
#

Now the multiplied signal is a fully rectified cosine wave. Compared to multiplying with an identical sine, the advantage of multiplication with a switching function is a higher DC output value (2\(\pi\) instead of 0.5, a higher output value means better detection). Since multiplication with a square wave effectively means flipping the sign, such circuit is easier to build than an analog multiplier, all you need are comparators or electronic switches.

9.4.5. Interfering signals#

Now lets see what happens if any unwanted signals are received. In a lot of applications the mains frequency of 50 Hz (or 60 Hz) will interfere with the wanted signal. In the case of a colorimetry application, this mains frequency will be present due to lighting in the room or from an imperfect power supply. The following plot shows the output if this 50 Hz signal is also mixed in.

../_images/SyncDet_%281000%2B50%29x1000.svg

Fig. 9.18 Mixing of an interfering 50 Hz mains signal on top of the 1 kHz signal, with the 1 kHz reference. You get the multiplication of 1 kHz with 1 kHz, but also the multiplication of 1 kHz and 50 Hz.
Courtesy of Marco Pelk
#

As can be seen, as long as the lowpass filter at the end has a cutoff that is low enough, like 500 Hz, the wanted (DC) signal is not influenced. Only interfering signals close to the modulation frequency will be downconverted close to DC. For example, for an interfering frequency of 1.070 kHz, the difference frequency of 70 Hz is present at the output:

../_images/SyncDet_1000x1070.svg

Fig. 9.19 Mixing of an interfering (input) signal of 1070 Hz, and a modulation (reference) of 1 kHz. The Interfering frequency is close to the modulation frequency.
Courtesy of Marco Pelk
#

If such interfering frequency is known, the input signal frequency should be chosen further away of this interference. One possible way to filter out this close-to-DC signal is by sampling the output of the lowpass filter with an ADC + microcontroller and use a high order digital filter. Just measuring the DC output signal is easier, digital filtering will require tradeoff between the signal quality and measurement/processing time.

9.4.6. Synchronous demodulator#

Demodulation means retrieving the original signal from the modulated (time-varying) signal. One important part of synchronous demodulation is a multiplier as described before, which can be done by:

  • A special analog multiplier circuits that output the product of two input voltages.

  • A mixer circuit based on diodes and/or transistors. These are frequently used in radio receivers (convert a high input frequency to a low output frequency) and transmitters (convert a low input frequency to higher output frequencies).

At lower frequencies, OPAMP circuits or analog switch circuits can be used to get an accurate multiplication with e.g. the square wave signal. Even multiplication in the digital domain can be done using a microcontroller after sampling the signal. The following circuit describes a synchronous rectifier that can be used to alternately multiply the signal with +1 and -1. It uses an OPAMP differential amplifier where the two inputs are connected together and one of the resistors is replaced by a switch. This switch can be any electronic switch; in this implementation a mosfet is used. If the mosfet is turned on, it represents a very low resistance (close enough to 0) and if it is turned off, it behaves like a very high resistance (practically infinite).

../_images/SyncDet_ampgain%2B1-1.svg

Fig. 9.20 Amplifier that has a gain of +1 (top) or -1 (bottom) depending on a single resistor value (infinite or 0). Courtesy of Marco Pelk#

Now the next picture shows the synchronous rectifier in action. The electronic switch is controlled in such a way that it is synchronous with the input signal.

../_images/SyncDet_inaction.svg

Fig. 9.21 Synchronous rectifier in action. Courtesy of Marco Pelk#

9.4.7. Lowpass filter#

The sum and difference frequencies are created after the demodulator. The difference frequency is at DC and is the signal of interest. All the rest (sum frequency and interfering signals) need to be filtered out. This can be done with a lowpass filter, a simple passive RC filter or a higher order filter (passive or active) with steeper slope.

../_images/SyncDet_ButterWorthLPfilter.svg

Fig. 9.22 Sallen-Key second-order Butterworth lowpass filter. Note the steepness of the slope compare to a simple RC filter. Courtesy of Marco Pelk#

Note that many more filter topologies are possible, even digital filters can be used if the signal is sampled using a microcontroller. If done digitally, care should be taken that the signal should have some analog filtering in order to avoid aliasing. In general, the higher the sampling frequency, the easier it is to realize this anti-aliasing filter. (see also section xxx, refer to later aliasing section)

9.4.8. System example#

An example circuit is shown in Fig. 9.23. The purpose of this circuit is to modulate a LED by switching it on and off at 1 kHz and measure the light intensity using a photodiode. This can be used in a colorimetry setup to measure the transmission of light in a colorimetry setup.

The current source on the left is representing the current generated by a photodiode that is receiving the modulated LED light, which can be in the order of a few microamps. A transimpedance amplifier or current-to-voltage converter is used right after the photodiode; the voltage is then AC coupled and amplified before reaching the synchronous rectifier. The last part shows the filtered signal which can be measured with a voltmeter or acquired by an ADC + microcontroller.

../_images/SyncDet_detailed_system.png

Fig. 9.23 The different parts of synchronous detection, an elegant way of recovering a low-frequency (DC) from a modulated signal by multiplying it with a reference signal and then low-pass filtering the result. Courtesy of Marco Pelk#

Can you imagine how the output would change when either the switching signal is not synchronized, or when the phase is different?

9.5. Ideas for future additional complex systems#

This book is a living document. Within the COMBINE project, students have the opportunity to contribute. Here would be an explicit opportunity.

9.5.1. Combined filters with OPAMP#

9.6. Exercises#

Exercise 9.1 (Relaxation Oscillator)

Given is the circuit, relaxation oscillator, below. The circuit can be adapted to convert the current from a photodiode to a frequency signal, like Fig. 9.5, but here it is given in its basic form.

../_images/relax_oscil_question.svg

Fig. 9.24 Relaxation oscillator consisting of a integrator and comparator, linked with a feedback resistor Rc#

a) Both the integrator and the comparator are based on OPAMPs. Which statement is true?
Multiple choice:

  1. Both OPAMPs are used in linear mode.

  2. Both OPAMPs are used in a non-linear mode.

  3. The comparator’s OPAMP is used in linear mode, the integrator’s OPAMP in non-linear mode.

  4. The comparator’s OPAMP is used in non-linear mode, the integrator’s OPAMP in linear mode.

b) Link the right picture from the waveforms below to U1, U2, U4.

../_images/relax_oscil_signals.svg

Fig. 9.25 Possible signals in the system, ranging from a flat line, to square and triangular signals.#

c) Why did we not ask you for the signal at U3?

Exercise 9.2 (Relaxation Oscillator with photodiode)

The LED can be used to illuminate the solution in the reaction chamber. The amount of light on the photo-detector is an indirect measure of the amount of DNA in the solution. To readout the light-intensity the photodiode is coupled to an oscillator circuit. The schematic diagram is shown below.

../_images/relax_oscil_question2.svg

Fig. 9.26 Relaxation oscillator consistent of a integrator and comparator, linked with a feedback resistor Rc. A photodiode is connected to the input of the integrator.#

a) The comparator (OA2, Ra and Rb) is made in such a way that the switching levels are symmetrical around ground.
The levels are at -1.5V and +1.5V.
The output voltage of the OPAMP can swing between -12V and +12V. Give the ratio of the resistors Ra and Rb

b) Make a sketch of the hysteresis curve of the comparator circuit.

c) The circuit around OA1 is an integrator. What is the name of the point where Rc, C, the photodiode and the inverting input of the OPAMP come together

d) Describe the way this circuit works, how does the photo-diode current influence the frequency? Make a sketch of currents I1 and I2


Exercise 9.3 (Relaxation Oscillator with photodiode + coupling capacitor)

After some experimentation it was found that the previous oscillator didn’t work as expected. The ambient light was a disturbing factor. A technician suggested to use modulated light. This means that the LED is always on, but will have a slight (sinusoidal) change in intensity. This AC signal can then be amplified and filtered such that the constant ambient light has less influence. An amplifier as shown below is constructed.

../_images/relax_oscil_question3.svg

Fig. 9.28 Relaxation oscillator with photodiode and coupling capacitor. R1 = 10MΩ, R2 = 3kΩ, R3 = 450kΩ#

a) Calculate the gain of the amplifier 2, built around OPAMP OA2 . Give your answer in dB

b) The modulation signal of the LED can be varied between 10kHz and 50kHz. Which criterion should be used for the selection of OA2 such that the modulation signal of the LED can be amplified? Give the value of this criterion

c) The photodiode generates a photo-current of 120nA due to the ambient light. The bias current of the OPAMP OA1 is 25nA, direction as indicated in the figure below. The offset voltage at the input is 10mV (the inverting input is the positive side of the offset voltage). Calculate the DC-potential at U2

../_images/opamp_bias_current.svg

Fig. 9.29 The bias currents of an OPAMP#