Lab06-1 - Introductory Session
Challenge description
MEXLE is a portable “lab-in-a-box” system designed to enable the independent assembly and analysis of complex electrical circuits, such as filter circuits or op-amp circuits. The system is specifically intended for students in the early semesters of their studies and aims to support independent learning and experimentation, regardless of time and location. As part of the MEXLE project, the use of the platform will be investigated and evaluated based on students' experiences.
Today's laboratory session is intended to provide hands-on experience with the MEXLE board and the associated app. The following tasks are designed to introduce you to the MEXLE board, the app, and the handheld oscilloscope currently used with the system. Several experiments based on topics from previous laboratory sessions are included, so that familiar experiments can be performed on the new platform.
<WRAP #nugg-get-start-mexle-board>
Getting Started with the MEXLE-Board
Background Information
MEXLE is a Multimodal Experimental and Learning platform, designed to support self-directed and hands-on learning in electrical engineering.
The MEXLE-board is designed as a “lab-in-a-box” system that comes with a corresponding app. Electrical circuits can be built and tested on the board, while the app provides the experimental tasks together with the required background information.
At the moment, the system requires an external signal generator and an external oscilloscope. In a future version, the board itself will generate the required signals, with all signal settings controlled via the app. The oscilloscope function will also be integrated into the app, making an external oscilloscope no longer necessary.
MEXLE-board - Overview
MEXLE electronic components
Handling of the MEXLE components
RC network
RC circuits are commonly used to implement timers and delay circuits. In such applications, a capacitor is charged and discharged through a resistor. Since the capacitor voltage does not change instantaneously but rises and falls over time, the component values can be used to determine how long it takes to reach a specific voltage level.This principle is used, for example, in power-on delay circuits and timer-based flashing circuits. In the following experiment, the charging and discharging behavior of a capacitor will be investigated.
Capacitors must be charged via an electrical source.
A capacitor charges the faster the smaller the series resistor $R$ is. During charging, the voltage $u_{\rm C}$ results from a differential equation as:
$$ u_{\rm C}({\rm t})=U\cdot ({\rm 1}-e^{-\frac{t}{\tau}}), {\rm with~~} \tau = R\cdot C $$
The constant $\tau$ is called the time constant. After this time, the capacitor is charged to approx. ${\rm 63}~{\rm\%}$. The fundamental equation for the relation between current and voltage at a capacitor is:
$$ i_{\rm C}({\rm t})=C\cdot \frac{{\rm d}u_{\rm C}}{{\rm dt}} $$
From the two equations, the current through the capacitor is: $$ i_{\rm C}({\rm t})=\frac{U}{R}\cdot e^{-\frac{t}{\tau}} $$
The graphical representation of voltage and current during the charging of a capacitor over time is shown in figure 1.
Fig. 1: This is my little caption
Because of the exponential function, charging is theoretically only complete after an infinitely long time. The capacitor voltage equals ${\rm 63}~{\rm\%~} U$ after ${\rm 1}\cdot \tau$, ${\rm 86}~{\rm\%~} U$ after ${\rm 2}\cdot \tau$, ${\rm 95}~{\rm\%~} U$ after ${\rm 3}\cdot \tau$, ${\rm 98}~{\rm\%~} U$ after ${\rm 4}\cdot \tau$, and ${\rm 99}~{\rm\%~} U$ after ${\rm 5}\cdot \tau$. It is assumed that the capacitor is fully charged after a time span $T = {\rm 5}\cdot \tau$ and the voltage across the capacitor has reached $U$.
If the charged capacitor $C$ is discharged through a resistor $R$, the solution of the differential equation for the voltage is:
$$ u_{\rm C}({\rm t})=U\cdot e^{-\frac{t}{\tau}} $$
For the current accordingly:
$$ i_{\rm C}({\rm t})=- \frac{U}{R}\cdot e^{-\frac{t}{\tau}} $$
Experimental Tasks
To plot the charging and discharging curves of a capacitor, the following circuit is used:
- Configure the function generator of the handheld oscilloscope to provide a unipolar square-wave signal for the RC circuit shown. Use the following settings:
* Amplitude: 3 V
* Frequency: 1 000 Hz
* Duty Cycle: 50%
- Place the power supply module in the upper-right corner of the board and the ground module on the bottom of the MEXLE-Board. After that, assemble the circuit shown on the board. Connect the alligator clips of the signal generator to the RC circuit to provide the input voltage $u_\mathrm{F}(t)$, and supply the MEXLE board with power via the Micro-USB connector. Then connect Channel 1 of the handheld oscilloscope to the input voltage $u_\mathrm{F}(t)$and Channel 2 to the capacitor voltage $u_\mathrm{C}(t)$. Move the CH1 and CH2 reference markers to the oscilloscope reference line. By pressing MOVE, you can switch between adjusting CH1 und CH2. Sketch the waveforms displayed on the oscilloscope.
- Calculate the time constant $\tau$ of the circuit.
- Determine the time constant τ experimentally by measuring how long it takes for the capacitor voltage to rise from 0 to 63% of the maximum voltage during charging. To do so, press MENU and go to Cursor Measurement. For this task, you need to use both the X1–X2 and Y1–Y2 cursors. Return to the oscilloscope screen and press SELECT repeatedly until “X1 Y1” or “X2 Y2” is displayed at the top of the screen. Use all four arrow keys to position the selected cursor line. Press MOVE to switch between X1 Y1 and X2 Y2, and place each cursor as required. Compare your results with the time constants calculated theoretically. (Please leave the circuit assembled after completing the tasks, as it will be used again in the next experiment.)
RC-Circuit as Lowpass Filter
Background Information
RC circuits can be used as low-pass filters. A low-pass filter allows low-frequency signals to pass while attenuating high-frequency signals. One practical application is audio systems, where low-frequency bass signals are directed to a woofer, while higher frequencies are suppressed. The frequency-dependent behavior of the filter is determined by the resistor and capacitor values. In the following experiment, the behavior of an RC circuit as a low-pass filter will be investigated.
The circuit shown can be interpreted as a frequency-dependent voltage divider. With increasing frequency, the capacitive reactance of capacitor $C_{\rm 1}$ decreases, which leads to a reduction in the amplitude of the output voltage $u_{\rm 2}$. The ratio of the output voltage to the input voltage as a function of frequency is called the transfer function:
$$F(j\omega) = \frac {U_{\rm 2}}{U_{\rm 1}}$$
Applying the voltage divider rule yields the following expression for the transfer function:
$$F(j\omega) = \frac {U_{\rm 2}}{U_{\rm 1}} = \frac{\frac{1}{j\omega C_{\rm 1}}}{R_{\rm 1}+\frac{1}{j\omega C_{\rm 1}}} = \frac{1}{1+j\omega C_{\rm 1}R_{\rm 1}}$$
The transfer function depends on the angular frequency ($\omega = 2\pi \cdot f$) and can be expressed in terms of magnitude and phase.
The magnitude $|\frac{U_{\rm 2}}{U_{\rm 1}}| = \frac{1}{\sqrt {1+(\omega R_{\rm 1}C_{\rm 1})^2}}$ is referred to as the amplitude response.
The phase angle $\varphi$ between the input voltage $u_{\rm 1}$ and the output voltage $u_{\rm 2}$ is called the phase response. The following relation applies:
$\varphi_{\rm U_{\rm 2}}=−\arctan\omega R_{\rm 1}C_{\rm 1}$
The cutoff angular frequency $\omega_{\rm G}$ is defined as the frequency at which the following conditions apply to the amplitude ratio $\frac{U_{\rm 2}}{U_{\rm 1}}$ and the phase angle $\varphi$:
$\frac{U_{\rm 2}}{U_{\rm 1}}=\frac{1}{\sqrt2}, ~~~ \varphi=−45°$
Experimental Tasks
To analyze the behaviour of the RC lowpass filter, the following circuit is used:
- For the following tasks, use the circuit built during the previous experiment. Remove all measurement leads and disconnect the alligator clips of the signal generator. Now extend the circuit by adding the level shifting circuit at the input.
Explanation: The signal generator of the handheld oscilloscope provides a unipolar AC signal with \(V_{\mathrm{pp}} = 3\,\mathrm{V}\). The level shifting circuit converts this signal into a bipolar AC signal with \(\hat{u} = 3\,\mathrm{V}\).
- Configure the function generator of the handheld oscilloscope to provide a sinusoidal signal. Use the following settings:
- Amplitude: 3 V
- Frequency: 2 000 Hz
- Duty Cycle: 50%
- Connect the alligator clips of the signal generator to the RC circuit to provide the input voltage $u_\mathrm{F}(t)$, and supply the MEXLE board with power via the Micro-USB connector. Then connect Channel 1 of the handheld oscilloscope to the input voltage $u_\mathrm{F}(t)$and Channel 2 to the capacitor voltage $u_\mathrm{C}(t)$. Sketch the waveforms displayed on the oscilloscope.
- Measure the amplitude response and the time delay in milliseconds, then calculate the corresponding phase shift angle. Explain how the amplitude response and phase shift change as the frequency increases.
Inverting Amplifier with OpAmp
Background Information
Operational amplifiers are widely used in audio equipment. For example, audio mixers allow individual audio channels to be amplified or attenuated in order to adjust the overall sound. One common operational-amplifier configuration used for signal processing is the inverting amplifier. By selecting appropriate resistor values, the amplification factor can be adjusted to achieve the desired signal level. In an inverting amplifier, the gain is determined by the ratio of the feedback resistor to the input resistor.
- The input voltage Ue is at the inverting input of the operational amplifier.
- The feedback is done by a voltage divider of R1 and R2.
- The voltage gain is \(A_{\mathrm{V}} = -\frac{R_2}{R_1}\)
Experimental Tasks
To analyze the behaviour of the inverting amplifier, the following circuit is used:
Supply voltages (from power supply unit):
UCC = + 3V, UEE = - 3V
Values of the components used:
R1 = 20kΩ, R2 = 10 kΩ
- Calculate the voltage gain of the inverting amplifier.
- Build the circuit on the MEXLE board.
Please note: the level shifting circuit is required, since bipolar signals are needed for the experimental tasks.
Once inserted into the board, the operational amplifier is automatically connected to the power supply! Using the jumper on the OpAmp module, either a bipolar voltage supply of \(+3\,\mathrm{V} / -3\,\mathrm{V}\) or an unipolar voltage supply of \(+3\,\mathrm{V} / 0\,\mathrm{V}\) can be selected. For this experiment, please set the jumper to the left to provide a bipolar voltage.
- Configure the function generator of the handheld oscilloscope to provide a sawtooth wave signal. Use the following settings:
- Amplitude: 3 V
- Frequency: 2 000 Hz
- Duty Cycle: 50%
- Connect the alligator clips of the signal generator to the level shifting circuit and supply the MEXLE board with power via the Micro-USB connector. Then, connect Channel 1 to the input voltage of the inverting amplifier cirucuit and Channel 2 to the output voltage of the inverting amplifier circuit. Sketch the waveforms of the input and output voltage displayed on the oscilloscope.
- Move the lower jumper on the OpAmp module to the right to select a unipolar supply voltage. Describe and explain the output voltage waveform displayed on the oscilloscope screen.
- Calculate the new voltage gain, in case R1 and R2 are swapped.
- Swap the resistors on the MEXLE-board. Describe and explain the output voltage waveform displayed on the oscilloscope screen.