Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

TAs: Deniz Aktas, Emine Bardakci

Experiment #3 Filters and Amplifiers

 Objective:

This lab introduces students to electrical filters and amplifiers by using automated systems board with NI ELVIS III. Then, students can build filtering and amplifier systems on the protoboard, figure out input-output relations of such systems with active electronic elements.

1. Theory Overview

Filter circuits play an important role in many electronics designs. They are primarily used to pass desired signals while blocking unwanted signals, based on their frequency characteristics. Filters behave differently with signals of different frequencies and can affect the different components of our signal. For example, if our measurement is made up of a 10mV 1kHz signal wave combined with a 5mV 60Hz noise component, a filter could attenuate only one of those components and leave the other.

A filter can be designed to implement the behavior that we want, and we will see later how these designs can be enacted.

The first property of a filter that we will discuss:

  1. The cutoff frequency: the frequency at which the filter begins having a noticeable attenuation effect.

Ideal Filters

In an ideal filter, frequencies past the desired cutoff frequency would be completely attenuated and desired frequencies wouldn’t have any attenuation. You can see an example of this in the image below. 

image-20240905-180350.png

Figure 1. An ideal filter

High Pass Filter

A high pass filter passes signals of a higher frequency than the cutoff and attenuates signals lower than the cutoff frequency. Some of the most common uses of a high pass filter include: 

  1. Blocking DC from circuits sensitive to non-zero voltages

  2. Blocking DC from circuits sensitive to radio frequencies

 

To calculate the cutoff frequency of a high pass filter for an RC circuit, the following formula should be applied:

image-20240905-180358.png

This is an example of a high pass filter within a circuit: 

image-20240905-180404.png

Figure 2. High Pass Filter Circuit Diagram

Low Pass Filter

A low pass filter passes signals of a lower frequency than the cutoff and attenuates signals with a higher frequency. It is important to note that low pass filters are complementary to high pass filters. Low pass filters come in many forms such as: 

  1. Anti-alias filters

  2. Digital filters

  3. Acoustic barriers

To calculate the cutoff frequency of a low pass divider, the following formula should be used: 

image-20240905-180410.png

An example of a low-pass RC filter is below:

image-20240905-180415.png

Figure 3. Low Pass Filter Circuit Diagram

Introduction: Amplifiers

Whether it is your mobile phone, computer speakers or you fit bit, amplifiers can be found in almost every electronic device. When it comes to capturing a signal emitted from a sensor, amplifiers are especially important.

Changes in a physical phenomenon sometimes occur at such a minute level. While sensors are able to detect those changes, their corresponding emitted signal has a very low amplitude (see figure below).

.

image-20240905-180559.png

Figure 4. The above is a signal emitted from a strain gage fitted onto a bridge. The signal amplitude changes on the order of millivolts.

Such amplitude changes can not be captured accurately. Computer limitations can easily downgrade this signal by the time it is acquired. Below is the same signal above but after it was converted into a digital signal and read into the computer (see the figure below).

image-20240905-180611.png

Figure 5. The above is the signal from the strain gage after it was digitally converted and read into a computer.

Amplifiers increase the power of the signal directly from its sensor, and certain configuration can minimize common-mode noise. Once a signal is amplified and its characteristics preserved, small changes in the signal are magnified to a scale large enough to be captured by an ADC (Analog to Digital Converter) into a computer for analysis.

In the following, you will experiment with various amplifiers. Your Automated Measurements Board is equipped with multiple types of amplifiers. Let’s experiment with them one by one. But before that, let’s take a look at Op Amps (Operational Amplifiers).

Operational Amplifiers

Operational Amplifiers are the building blocks for not only amplifiers but also for many other electronic applications.

When provided a voltage power supply, Op Amps take a differential input voltage, magnify its value by multiplying it by a certain value and returns it through an output. The value by which the voltage is amplified is called the open-loop gain.

image-20240905-180619.png

Figure 6. These are the symbols used to signify Op Amps in circuit diagrams.

V+ is the non-inverting input, V- is the inverting input, VS+, and VS- are the positive and negative power supplies, and Vout is the output.

Inverting Amplifier

The Open Loop Gain of an Op-Amp can be very high. The problem with very high gain is that, in practice, the amplifier is both unstable and hard to control. This is because small input signals in the order of micro Volts causes the output voltage to saturate and yield a voltage equal to either the positive or negative voltage swings (Voltage Power Supplies) of the Op Amp. An inverting amplifier provides a solution to this problem.

Here we see an inverting amplifier circuit.

image-20240905-180628.png

Figure 7. An inverting amplifier with gain of -2.

By connecting a suitable resistor across the amplifier from the output terminal back to the inverting input terminal, we can reduce and control the overall gain of the amplifier. This is referred to as Negative Feedback and it produces a stable form of inverting amplifiers and helps us compute the gain accurately. The term inverting refers to the fact that this amplifier changes a positive voltage to a negative one and the voltage and vice versa. The gain is referred to as the Inverting Closed-Loop Gain.

The inverting closed-loop amplifier gain is given by the formula:

image-20240905-180637.png

You will be guided through a series of questions to compute both the low and high gains using the formula. Then, compute the same gains using the stimulus and output voltage indicators on the LabVIEW VI control panel. Finally, you will verify the results obtained using both methods.

The following is a schematic of the inverting amplifier circuit in your Automated Measurements Board.

image-20240905-180643.png

Figure 8. NI Measurement Top Board Unity Gain circuit schematic. The 928Ω-resistor protects the output from short-circuiting.

The switch in the amplifier is software controlled. Closing and opening the switch yields two different possible gains.

2. Pre-Lab Quiz

  • Quiz Date: xxxxxx

  • XXXXXXXXXXXXXXXXXXXXXXXXX

3. Experimental Procedure

Before programming with the NI ELVIS III, you must first create an NI ELVIS III project. With an NI ELVIS III project, you can group together all the files relevant to your application and run VIs on the NI ELVIS III.

Safety

Be aware of powering the NI board and be aware of not creating any short circuit on the board (connecting ground and power levels (+5V, 3.3V) is not recommended, and may create some damage on the electronic components, be careful about that.)

Hardware/Software Equipment Check

Prior to starting the lab, make sure the equipment is working by conducting the following steps:

Step 1:   Make sure that the NI setup is open from the ON/OFF switch as it found at the back of the device.

Step 2:   Make sure that you press the open button on the device.

3. Data Collection

Part 1 Low Pass Filter

In this experiment, you will use your NI Automated Measurements Board and LabVIEW to conduct measurements on a basic low pass filter. You will measure the stimulus voltage and compare it to the filtered voltage, for different frequencies of input.

The low pass filter has a cut-off frequency of 3.3 KHz.

  • Make sure your:

    • NI ELVIS III is powered on.

    • Connected to your computer.

    • The NI Measurement Board is powered on.

Open the /Filter/Time Domain folder in the “Measurement And Instrumentation Software”.

  • Launch the LabVIEW Project named Filter Time Domain.lvproj.

  • Make sure all other projects are closed.

  • From the project window, configure the NI ELVIS III IP address to reflect the IP address of the actual NI ELVIS III your computer is connected to.

    • You can find the IP address of your NI ELVIS III by clicking and holding the button on the left-hand side until the IP address is displayed on the LED screen.

    • To configure the NI ELVIS III from your project window,

      • right-click NI ELVIS III (0.0.0.0) [Unconfigured IP Address]

      • click General in the window prompt you get.

        image-20240905-180851.png

      • In the IP address section enter the IP address of the NI ELVIS III connected to your computer.

        image-20240905-180900.png

    • Save your project. 

  • Open the RT Main (Manual).vi.

·       Connect socket 20 (the input to the filter) to the Bank A analog input channel AI0 and also to Bank A analog output channel AO0.

·       Connect socket 21 (the output of the filter) to Bank B channel AI0.

·       Connect the Filter socket to the Analog Ground socket.

·       In the VI, set the Filter Type to Low Pass.

·       When you’ve made your connections, run the VI.

image-20240905-180907.png

Part 2 High Pass Filters

Let’s repeat the previous experiment using High Pass Filters.

The onboard high pass filters have a cut-off frequency of 80 Hz.

·       Connect socket 26 (the input to the filter) to the Bank A analog input channel AI0 and also to Bank A analog output channel AO0.

·       Connect socket 27 (the output of the filter) to Bank B channel AI0.

·       Connect the Filter socket to the Analog Ground socket.

·       In the VI, set the Filter Type to High Pass.

·       When you’ve made your connections, run the VI.

image-20240905-180918.png

 Part 3

Inverting Amplifier

Experiment with the inverting amplifier found on the application board.

Launch Instructions:

  • Make sure your:

    • NI ELVIS III is powered on.

    • Connected to your computer.

    • The NI Measurement Board is powered on.

  • Open the /Amplifier/Gain folder in the “Measurement And Instrumentation Software

  • Launch the LabVIEW Project named Amplifier Gain.lvproj.

  • Make sure all other projects are closed.

  • From the project window, configure the NI ELVIS III IP address to reflect the IP address of the actual NI ELVIS III your computer is connected to.

    • You can find the IP address of your NI ELVIS III by clicking and holding the button on the left-hand side until the IP address is displayed on the LED screen.

    • To configure the NI ELVIS III from your project window,

      • right-click NI ELVIS III (0.0.0.0) [Unconfigured IP Address]

      • click General in the window prompt you get.
        image-20240905-180939.png image-20240905-180943.png

      • In the IP address section enter the IP address of the NI ELVIS III connected to your computer.

    • Save your project. 

    • Open the RT Main.vi.

    • Connect both the output channel A/AO0 and A/AI0 to the input socket of the inverting amplifier (socket 13) on your measurement board.
      Note: The stimulus signal generated from channel A/AO0 is fed through the input of the amplifier. The same signal is read from the amplifier input using into channel A/AI0.
      This serves the dual purpose of generating the signal we want to pass through the amplifier on the board and reading that signal back into the NI ELVIS III to programmatically display it.

    • Connect B/AI0 to the output socket of the inverting amplifier (socket 14).

    • Connect AMP to analog ground.

 

image-20240905-180949.png

image-20240905-181006.png

Run the main VI and from the amplifier configuration dropdown list, choose inverting amplifier gain x2 (low gain).

Part 4

  1. Non-Inverting Amplifier

    Launch Instructions:

    • Connect both the output channel A/AO0 and A/AI0 to the input socket of the non-inverting amplifier (socket 15) on your measurement board. Note: The stimulus signal generated from channel A/AO0 is fed through the input of the amplifier. The same signal is read from the amplifier input using into channel A/AI0. This serves the dual purpose of generating the signal we want to pass through the amplifier on the board and reading that signal back into the NI ELVIS III to programmatically display it.

    • Connect B/AI0 to the output socket of the non-inverting amplifier (socket 16).

    • Connect AMP to analog ground.

    image-20240905-181028.png

    Run the main VI and from the amplifier configuration dropdown list, choose non-inverting amplifier x2 (low gain).

    image-20240905-181037.png

5. Post-Lab Report

  • Due Date: xxxxxx

The report for Procedure 1 is expected to include:

·       All the screenshots of Block Diagram and Front Panel

Part 1

1

Set the Sine Wave Frequency to 10 Hz. What is the amplitude of the Response signal?

Is the signal lower or higher than the cut-off, and is it getting passed or blocked? Put the screenshot.

 

2

Set the Sine Wave Frequency to 2.5 kHz. What is the amplitude of the Response signal? Put the screenshot.

 

3

Set the Sine Wave Frequency to 3.3 kHz. What is the amplitude of the Response signal? Put the screenshot.

 

4

Set the Sine Wave Frequency to 6 kHz. What is the amplitude of the Response signal? Put the screenshot.

Is the signal lower or higher than the cut-off, and is it getting passed or blocked?

 

Part 2

1

Set the Sine Wave Frequency to 10kHz. What is the amplitude of the Response signal? Put the screenshot.

Is the signal lower or higher than the cut-off, and is it getting passed or blocked?

 

2

Set the Sine Wave Frequency to 300Hz. What is the amplitude of the Response signal? Put the screenshot.

 

3

Set the Sine Wave Frequency to 80Hz. What is the amplitude of the Response signal? Put the screenshot.

 

4

Set the Sine Wave Frequency to 10Hz. What is the amplitude of the Response signal? Put the screenshot.

Is the signal lower or higher than the cut-off, and is it getting passed or blocked?

 

Part 3

1

Set the Stimulus Amplitude to 1V. Confirm from the Stimulus Voltage indicator that the value is 1V. What is the response Voltage? Put the screenshot.

 

2

What is the gain using the value you recorded in the previous question?

 

3

Choose inverting amplifier gain x10 (high gain) from the Amplifier Configuration dropdown list.

Set the Stimulus Amplitude to 1V. Confirm from the Stimulus Voltage indicator that the value is 1V. What is the response Voltage? Put the screenshot.

What is the gain using the value you recorded in the previous question?

 

4

Record the differences between the two gain values you obtained using the formulas and the two gain values you computed through the VI, low gain and high gain.

Based on the circuit schematic shown for the amplifier on the application board, explain in your own words why the gain changes.

 

Part 4

1

Set the stimulus amplitude to 1V. Confirm from the Stimulus voltage indicator that the value is 1V. What is the response Voltage? Put the screenshot.

 

2

Using the value you recorded in the previous question, what is the gain?

 

3

From the amplifier configuration dropdown list, choose non-inverting amplifier x10 (high gain)

Set the stimulus amplitude to 1V. Confirm from the Stimulus voltage indicator that the value is 1V. What is the response Voltage? Put the screenshot.

What is the gain using the value you recorded in the previous question?

 

4

Record the differences between the two gain values you obtained using the formulas and the two gain values you computed through the VI, low and high gain.

 

Additional Resources:

xxxxxxxxxxxxxxxxxxxxx

Responsible TAs:

  • No labels