This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
university:courses:electronics:electronics-lab-heartbeat [27 Apr 2017 12:37] – Antoniu Miclaus | university:courses:electronics:electronics-lab-heartbeat [30 Jan 2023 09:19] (current) – [Preamplifier] Antoniu Miclaus | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Activity: | + | ======Activity: |
- | =====Objective:===== | + | =====Objective===== |
- | The objective of this Lab activity is to collect | + | The objective of this Lab activity is to learn how to use a chain of amplifiers for gain and filtering, in a practical example, that aims to recover |
- | =====Background: | + | Going through this lab activity, the students will learn how to drive a IR LED and a Phototransistor, |
- | A pulse oximeter measures blood oxygenation and can monitor | + | Combining the previously mentioned electronic devices, the result of the activity will demonstrate how a real world application |
+ | |||
+ | =====Background===== | ||
+ | |||
+ | A type of Heartbeat Measurement Device consists of an electronic circuit that monitors | ||
+ | |||
+ | The voltage variations | ||
+ | |||
+ | In order to have a relevant output, the input signal | ||
+ | *Preamplifier - the output signal from the heartbeat measurement setup is decoupled through the series capacitor and amplified | ||
+ | *Low-Pass Filter - RC filter that cuts the high frequencies (noise). | ||
+ | *[[university: | ||
+ | *[[university: | ||
+ | |||
+ | =====Materials===== | ||
- | =====Materials: | ||
ADALM2000 Active Learning Module\\ | ADALM2000 Active Learning Module\\ | ||
Solder-less breadboard\\ | Solder-less breadboard\\ | ||
Line 15: | Line 28: | ||
1 - OP484 precision rail-to-rail I/O op amp\\ | 1 - OP484 precision rail-to-rail I/O op amp\\ | ||
1 - 100Ω resistor\\ | 1 - 100Ω resistor\\ | ||
- | 1 - 500Ω resistor\\ | + | 1 - 470Ω resistor\\ |
1 - 1KΩ resistor\\ | 1 - 1KΩ resistor\\ | ||
- | 2 - 10KΩ resistor\\ | + | 1 - 10KΩ resistor\\ |
- | 3 - 100KΩ resistor\\ | + | 2 - 47KΩ resistor\\ |
- | 1 - 100nF capacitor\\ | + | 2 - 1uF capacitor\\ |
- | 1 - 22uF capacitor\\ | + | |
1 - 47uF capacitor\\ | 1 - 47uF capacitor\\ | ||
- | 1 - Infrared LED ( QED-123 ) | + | 1 - Infrared LED ( QED-123 )\\ |
1 - Infrared Transistor ( QSD-123) | 1 - Infrared Transistor ( QSD-123) | ||
- | =====Directions:===== | + | =====Directions===== |
- | On your solder-less breadboard construct the pulse measurement circuit (designed in ADIsim) as shown in Figure 1. | + | |
- | {{ : | + | On your solder-less breadboard construct the heartbeat measurement |
- | <WRAP centeralign> | + | {{ : |
- | The circuit amplifies the input small signal from the the phototransistor(Q1) with respect to ground. Some filtering techniques are added in order to solve the noise issues. There are several stages implemented with op amps before obtaining the final output(Vout): | + | <WRAP centeralign> Figure |
- | *Virtual ground with op amp (X1) - The op amp is used as current source and fed with half of the power supply voltage (Vp), obtained through the voltage divider (R2,R6). The output is used as virtual ground (Vp -> ' | + | |
- | *Preamplifier(X2) - The input signals from the pulse oximeter are fed into a chain of 3 opamp stages. The first is a preamplifier. The pulse oximeter output is decoupled through the series capacitor to place it near Vp/2, and amplified using a 10kΩ negative feedback resistor(R4). | + | |
- | *Low-Pass Filter with Buffer(X3) - The 10kΩ resistor(R1) and the 22nF capacitor(C2) describe a RC filter that manages to cut the high frequencies (noise). The opamp serves as a unity gain current source / voltage follower that has high input impedance when measuring the output of the low-pass filter and reproduces its voltage with a low impedance output. | + | |
- | *Final Amplifier with Low-Pass Filter(X4) - Amplifies the signal with a gain ~1000 determined by the ratio of the 100KΩ resistor(R5) and the 100Ω resistor(R3). Low-Pass filtering components are provided by the 100nF capacitor(C3) across the negative feedback resistor. | + | |
- | =====Hardware Setup: | + | |
- | Use the variable positive power supply from the ADALM2000 module set to +5 V to power your circuit. Use scope channel | + | |
- | The circuit implemented on the breadboard should look similar to the one in Figure 2. The blue LED represents | + | The LTspice simulation uses OP284s, included |
- | {{ : | + | ====IR LED==== |
- | <WRAP centeralign> Figure 2 Breadboard Pulse Measurement Circuit | + | In order to have a proper current that will not damage the IR LED, a resistor needs to be added in series to limit the current. Varying the value between in the operating range will change the intensity of the emmited signal of the IR LED. The following formula expresses the value of the forward current (I<sub>F</sub>) through the LED, based on the positive voltage supply +5V (V< |
- | =====Procedure: | + | <WRAP centeralign>< |
- | Put the top of your finger between the IR LED(D1) and the Phototransistor(Q1). The emitter and the receiver should be alligned and pointing one to another.\\ | + | ====Phototransistor==== |
- | Observe the voltage waveform seen at the the output of the 3rd stage op amp (X4). An example of output waveform is presented in Figure 3. | + | |
- | {{: | + | |
- | <WRAP centeralign> | + | |
- | In the Oscilloscope feature | + | To acquire information from the phototransistor (Q< |
+ | |||
+ | ====Preamplifier==== | ||
+ | |||
+ | The input signal from the heartbeat measurement setup is fed into a Differentiator Amplifier Circuit(([[http:// | ||
+ | <WRAP centeralign>< | ||
+ | Besides filtering, this stage serves also as an amplifier taking as input the current (I< | ||
+ | <WRAP centeralign>< | ||
+ | |||
+ | ====Active Low-Pass Filter=== | ||
+ | |||
+ | Active Filters contain active components such as operational amplifiers, within their circuit design. They draw their power from an external power source and use it to boost or amplify | ||
+ | |||
+ | This first-order low pass active filter (A< | ||
+ | |||
+ | The filter has the aim to cut the high frequencies that correspond to the noise signal. | ||
<WRAP centeralign>< | <WRAP centeralign>< | ||
- | **Return to Lab Activity [[university:courses: | + | will result that frequencies that are higher than 3Hz should be cut. The RC Low-Pass Filter is designed for the mentioned frequency value using the formula: |
+ | <WRAP centeralign>< | ||
+ | The amplifier is configured as a voltage-follower (Buffer) giving it a DC gain of one, A< | ||
+ | The advantage of this configuration is that the op-amps high input impedance prevents excessive loading on the filters output while its low output impedance prevents the filters cut-off frequency point from being affected by changes in the impedance of the load. | ||
+ | While this configuration provides good stability to the filter, its main disadvantage is that it has no voltage gain above one. However, although the voltage gain is unity the power gain is very high as its output impedance is much lower than its input impedance. | ||
+ | |||
+ | ====Final Amplifier with Low-Pass Filter=== | ||
+ | |||
+ | The configuration of the final stage represents a AC Op-amp Integrator with DC Gain Control(([[http:// | ||
+ | |||
+ | <WRAP centeralign>< | ||
+ | <WRAP centeralign>< | ||
+ | |||
+ | =====Simulation===== | ||
+ | |||
+ | Considering the circuit designed in LTspice, two types of simulation are made: | ||
+ | *Transient - Connect at the input of the circuit a waveform generation source. Configure the source to generate a sine with amplitude of 500uV, frequency 2Hz and 500mV offset. Observe the output signal amplitude in order to determine graphically the total gain of the circuit(Figure 2). | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | *AC Sweep - Connect at the input of the circuit a AC Source. Configure the source to have a magnitude of 500uV. Observe the output signal in a chosen frequency domain (100mHz - 1kHz) in order to determine graphically in which frequency range the output signal has the biggest amplification (Figure 3). | ||
+ | |||
+ | {{: | ||
+ | <WRAP centeralign> | ||
+ | |||
+ | =====Hardware Setup===== | ||
+ | |||
+ | Use the variable positive and negative power supply from the ADALM2000 module set to 5 V to power your circuit. Use scope channel 1 to monitor the voltage at the collector node of V< | ||
+ | |||
+ | The circuit implemented on the breadboard should look similar to the one in Figure 4. The blue LED represents the IR LED, and the grey one represents the Phototransistor. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | =====Procedure===== | ||
+ | |||
+ | Put the top of your finger between the IR LED(D1) and the Phototransistor(Q1). The emitter and the receiver should be alligned and pointing one to another.\\ | ||
+ | Observe the voltage waveform seen at the the output of the 3rd stage op amp (A< | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | In the Oscilloscope feature of the Scopy tool activate the measure feature in order to read the frequency of the obtained signal. To convert the frequency into beats per minute(bpm) use the formula from laboratory directions. | ||
+ | |||
+ | =====Questions===== | ||
+ | |||
+ | 1. Using the values and formulas provided in the laboratory directions compute the following parameters: | ||
+ | *Forward current through the IR LED. (use datasheet of the QED-123) | ||
+ | *Cut-off frequency of the high-pass filter. | ||
+ | *Cut-off frequency of the second stage low-pass filter. | ||
+ | *Cut-off frequency of the third stage low-pass filter. | ||
+ | *Gain of the third stage amplifier | ||
+ | |||
+ | 2. Using the oscilloscope, | ||
+ | |||
+ | 3. What role has the buffer in the second stage? | ||
+ | |||
+ | 4. What parameters change if R< | ||
+ | |||
+ | 5. What parameters change if R< | ||
+ | |||
+ | 6. On the Heartbeat Output Waveform the signal is not centered on 0V, even though the DC component should have been removed. Why is this happening? What should be added at the output of the circuit to reduce the offset? | ||
+ | |||
+ | \\ | ||
+ | <WRAP round download> | ||
+ | ** Lab Resources: | ||
+ | * LTSpice files: [[downgit> | ||
+ | * Fritzing files: [[downgit> | ||
+ | </ | ||
+ | |||
+ | **Return to Lab Activity [[university: |