The experimental objective of this lab is to build two electrical circuits and to test them using NI-ELVISmx instruments in order to identify each as a low-pass, or high-pass, or band-pass filter. The -3dB point for each filter will also be identified. A simple radio that does not require a battery to operate will also be built as an example of a band-pass filter.
It is important for electrical engineers to be able to selectively filter certain frequencies. An electronic filter works by allowing only designated frequencies to pass through. By tuning a radio to a particular station, it is isolating a certain frequency. The filter selects the station chosen by the listener from the hundreds of different stations that are broadcasting. How does the filter accomplish this?
To understand how filters work, it is important to understand the elements that make electrical filtering possible. Signals that occur naturally are composed of many frequencies.
For example, the human voice is composed of frequencies ranging from 0–4kHz. A signal consists of a primary frequency, called a base frequency, plus additional multiples of that frequency with different loudness called harmonics. Different devices will have different harmonics. This is why when a trumpet and clarinet both play the same musical note they sound different — their harmonics are different. We hear the base frequency plus the harmonics of these instruments. Rock guitars have their distinctive sound by adding harmonics to the note they play.
Radio waves have a base frequency, and the audible information is contained in adjacent frequencies called sidebands.
Voltage, or electromotive force, and frequency are the building blocks of an electrical signal. Voltage is a force that propels electrons through a medium. Current is the amount of electric charge flowing past a specified circuit point per unit time. Frequency is the rate at which the signal repeats itself. The gain of a circuit is the ratio of its output power compared to its input. For devices that do not produce energy, such as the filters in this lab, the gain cannot be positive. Devices such as transistors and other amplifiers are needed to achieve positive gain.
A filter is a circuit that shapes and controls the bandwidth of a signal; bandwidth is the range of frequencies that the filter allows to pass. For example, when the bass of an audio amplifier is turned up, that operates a filter that passes the low frequencies more than the high frequencies. Also, when a radio is tuned, it is using a filter that allows the base frequency plus the sidebands of the desired station to pass, but not other stations.
The filters that will be built in this lab are composed of resistors and capacitors. A resistor resists the flow of electrons by converting some of the electric energy to heat. The voltage across a resistor obeys Ohm's Law: V = IR, where I is the current and R is the resistance. Varying the frequency of the voltage will not affect the voltage across the resistor.
A resistor is designed to impede the flow of electricity and dissipate electrical energy in the form of heat. Resistors work by having the electricity flow through a poor conductor such as carbon. The unit of resistance is the Ohm, named after George Ohm, and is represented by the capital Greek letter Omega (Ω).
Capacitors are metal plates that are separated from each other, allowing electric charge to accumulate on the plates. These plates store energy rather than dissipate it, like a resistor. For DC voltage, provided by a device like a battery, the plates will gather charge, and once the plates are charged, will no longer pass current, so the capacitor looks like an open circuit, where nothing is connected. For high frequencies, the charge can quickly gather and dissipate off of the plates, allowing current to flow through the capacitor freely, making the capacitor behave like a short circuit. The unit of capacitance is the Farad, named after Michael Faraday, and is represented by the capital letter F. The relationship between the voltage across a capacitor and varying frequencies is shown in Figure 1.
Inductors, also known as coils or chokes, are coils of wire that allow the current through a wire to form a magnetic field. Like capacitors, inductors store energy, but in the magnetic field instead of on plates, and its behavior is the opposite of a capacitor. For DC voltage, the current will make a stable magnetic field and the current will flow freely, making the inductor look like a short circuit. At high frequencies, the magnetic field does not have time to form before the current reverses and the field collapses, causing the inductor to resist the current flow, looking like an open circuit. The unit of inductance is the Henry, named after Joseph Henry, and is represented by the capital letter H. The relationship between the voltage across an inductor and varying frequencies is shown in Figure 2.
The elements of filters, such as resistors, capacitors, and inductors, are connected by conductors (wires) that carry electrons between these devices. The voltage is the same throughout the entire conductor, so the voltage across the two ends of the conductor is zero.
How the components are connected is shown using a schematic diagram. Each component is represented by a symbol, and the connections between components are represented by lines. The symbols are designed to represent the physical characteristics of the components. A resistor is represented by a zigzag line showing how the electricity's path is impaired. A capacitor is shown as two parallel lines, representing its plates. An inductor is shown as a series of looping lines, representing the coils of wire. The schematic diagram symbols for these components are shown in Figure 3.
Different combinations of resistors and capacitors allow engineers to build different kinds of filters to perform specific tasks. Resistors, inductors, and capacitors can be arranged in three different ways. In a series circuit, the element's conductors are connected end to end. The current in a series circuit remains the same in all the electrical elements. In a series circuit, as shown in Figure 4, the sum of the voltages across each element is equal to the voltage of the power source (VIN = VA + VB + VC).
In a parallel circuit, as shown in Figure 5, the element's conductors are connected at opposing ends. The current that is supplied by the voltage source equals the current that flows though elements D and E. The voltage across the elements that are parallel is the same (VIN = VD = VE).
Series and parallel circuits can be combined, as shown in Figure 6:
The voltage across the top and bottom connectors is the same, so (VIN = VF = VG = (VH + VJ)).
To produce a graphical representation of the characteristic behavior of a circuit being analyzed, it is necessary to graph the gain of the circuit versus the frequency of the electrical signal. Gain is a measure of the power produced by the circuit, measured in decibels, and is calculated using the following formula:
A 3dB drop of signal power is the point at which the signal power is half of its original value. The frequency corresponding to this -3dB point is also called the cutoff frequency of the filter. Note that since the filters built in this lab only contain passive components, the output voltage cannot be greater than the input voltage so the gain will never be a positive number because the logarithm of a number less than or equal to one is taken.
In the preceding formula, for the gain to be -3dB, VOUT must be VIN divided by = 1.414, or more easily written as VOUT = VIN / 1.414. The -3dB point of a circuit is the frequency that causes the output voltage to be 0.707 times the input voltage.
Types of Filters
Once the electrical filters are built according to the specifications in this manual, the filter type must be identified. In this lab, there are three possibilities.
Sometimes, it is beneficial to remove the high frequency components from a signal because this is where unwanted noise frequently exists. To do this, a low-pass filter is used. It passes the low frequencies while blocking the higher ones. The low-pass filter shown in Figure 7 has a gain that drops to -3dB at 1590 Hz, which is its -3dB point and corresponding cut-off frequency. The filter has a bandwidth of 1590Hz and it only allows frequencies from 0Hz to 1590Hz to pass through. Figure 7 shows the characteristic behavior of a low-pass filter. A trend line showing the response of the filter is also shown. Note that for low frequencies, the gain is 0dB, meaning that the output equals the input. The filter suppresses high frequencies, as shown by the trend line on the right.
A high-pass filter passes the high frequencies, but blocks the low ones, the opposite response of a low-pass filter. The -3dB point for this filter is 160 Hz. This is determined using the same method used for the low-pass filter. Figure 8 shows the characteristic behavior of a high-pass filter as well as the trend line and its cutoff frequency. This filter has a bandwidth of 160 Hz to infinity and that the filter only allows frequencies greater than 160 Hz to pass through.
A band-pass filter only allows a certain range of frequencies to pass through and blocks all other frequencies. The frequency of the highest response point is called the resonant frequency, and for an ideal filter will be 0dB. This type of filter has two -3dB points, one above the resonant frequency and one below it, and so two cutoff frequencies. The difference in these two cutoff frequencies is called the bandwidth of the band-pass filter. Figure 9 shows the characteristic behavior of a band-pass filter.
The band-pass filter shown in Figure 9 has a resonant frequency of approximately 500Hz and -3dB points with cutoff frequencies of approximately 400Hz and 600Hz. The bandwidth of this filter is approximately 600Hz-400Hz, or 200Hz.
The opposite of a band-pass filter, which rejects a specific range of frequencies and passes the others, is called called a notch filter. Notch filters are frequently used to remove interference from a desired signal, but will not be used in this lab.
The filters here are ideal filters and show total power transfer of 0dB at their maximum response. Real filters frequently show some losses and may have a maximum response less than 0dB. The -3dB point is still defined according to the formula shown above.
A breadboard will be used in this lab. Breadboards have horizontal and vertical connectors. The front of the breadboard is shown in Figure 10a. The back of the breadboard, with its protective cover removed showing the internal connections is shown in Figure 10b.
To identify the resistors, look at the colored bands. Hold the resistor horizontally with the three bands that are close together to the left, as shown in Figure 11. The first two colors determine the first two digits of the resistance, and the third band determines how many zeroes to add. Each colored band represents a particular number.
|Color||First Band||Second Band||Third Band|
The fourth band indicates a tolerance of the resistor, which means how close its actual resistance will be to the value indicated by the bands:
As an example, a 470kΩ resistor with a 5% tolerance would have color bands of yellow, violet, yellow, and gold.
For capacitors, the value is stamped on the capacitor, especially if the capacitor is large. Most capacitors have very small values. For small capacitors, the most common ranges are microfarads (shown as μF), nanofarads (shown as nF), and picofarads (shown as pF). The following conversion table may help you understand how these ranges relate to each other:
Sometimes the value is coded. The following rules are commonly used in marking values on capacitors:
- If there are only two digits on the capacitor, the value is in picofarads (nF)
- For three digits, the first two digits of the number are the overall value of the capacitor, and the third is a power of 10, with the overall value being in picofarads. For example, a capacitor with a value of 103 would be 10*103 picofarards, or 0.01 nanofarads. To make this a little easier, the following table might be helpful:
- Finally, capacitors might use a series of colored bands, like resistors, with exactly the same meaning, except the units are in picofarads instead of ohms.
Also, where there are digits on the capacitor, there might be a letter following the digits. This indicates the tolerance of the capacitor according to the following table:
The following figures show two capacitors. Use the preceding tables to verify their values.
For inductors, the value is stamped on the inductor.
Materials and Equipment
- Two 100kΩ resistors
- 1MΩ resistor
- 0.001μF capacitor
- 0.01μF capacitor
- NI-ELVIS II+ with prototyping board
- Coaxial cables with alligator clips on one end
- 1N34 diode
- High impedance headphone
- 10pF capacitor
- 1mH inductor
- Plug in the NI-ELVIS II+ and connect the USB cable to the Lab PC.
- Select FGEN (the function generator) in the Instrument Launcher window.
- Select Scope (the oscilloscope) in the Instrument Launcher window.
- Connect one coaxial cable to FGEN and another one to CH 0 on the NI-ELVIS II+ (located at the upper left corner of the device).
- Clip the red and black alligator clips together.
- Click run in the Function Generator and Oscilloscope windows.
- Make sure the oscilloscope on the lab PC looks similar to Figure 15. If the wave appears as if it is horizontally compressed, change the Timebase setting until the waveform looks similar to that in Figure 15.
- Record the Vp-p reading. This is the VIN. When finished calibrating the function generator and the oscilloscope, the Vp-p reading on the lab PC will be approximately 2.000V. Use this figure for all computations. Also, calculate 0.707*VIN and write it down. This is the -3dB point voltage for finding the cutoff frequency.
- Now build Circuit 1. Stop the function generator. DO NOT close the program! Doing so will result in losing the settings that were configured. Use the schematic diagram in Figure 16 to build the circuit.
- Insert one end of a 100kΩ resistor into the breadboard at B3 and the other end at G3.
- Insert one end of a 0.001μF capacitor into the breadboard at H3 and the other end at H10.
- Attach the red alligator clip from the CH 0 cable to the top lead of the capacitor (i.e., the one connected with the resistor). Connect the black alligator clip to the bottom lead of the capacitor (i.e., the one not connected to the resistor).
- Affix the red alligator clip from the FGEN cable to left end of the resistor (i.e., the one not connected to the capacitor). Connect the black alligator clip to the bottom lead of the capacitor (i.e., the one not connected to the resistor and that also has an alligator clip connected to it from the CH 0 cable).
- Run the function generator. Change the frequency on the function generator in this pattern (10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000Hz) and record the Vp-p reading at each frequency for a total of 10 measurements. Observe the voltages above and below the -3dB point voltage. Now find the -3dB point exactly by starting with the frequency just below the -3dB point, and then increasing the frequency until the voltage corresponding to the -3dB point is found. Note the frequency and write it down. This is the cutoff frequency. If the frequency reading on the oscilloscope is a question mark, or the Vp-p reading fluctuates significantly, adjust the Scale Volts/Div and/or the Time/Div setting until the frequency reading gives a number.
- Stop the function generator and disconnect all the wires, capacitors, and resistors from the breadboard. Use the schematic diagram in Figure 17 to build Circuit 2.
- Connect the red alligator clip from the CH 0 cable to the top lead of the resistor (i.e., the one connected with the capacitor). Connect the black alligator clip to the bottom lead of the resistor (i.e., the one not connected to the capacitor).
- Attach the red alligator clip from the FGEN cable to left end of the capacitor (i.e., the one not connected to the resistor). Connect the black alligator clip to the bottom lead of the resistor (i.e., the one not connected to the capacitor and that also has an alligator clip connected to it from the CH 0 cable). If the circuit is wired successfully, the oscilloscope will have a horizontal line across the center of the screen.
- Run the function generator. Change the frequency on the function generator in this pattern (10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000Hz) and record the Vp-p reading at each frequency for a total of 10 measurements. Observe the voltages above and below the -3dB point voltage. Now find the -3dB point exactly by starting with the frequency just below the -3dB point, and then increasing the frequency until the voltage corresponding to the -3dB point is found. Note the frequency and write it down. This is the cutoff frequency.
- Stop the function generator and disconnect the all the wires, capacitors, and resistors from the breadboard.
- There are several items on the circuit diagram below that may be unfamiliar. The item in the top left corner that looks like a rake is an antenna and will be connected after the circuit is completed. Similarly, the item in the bottom left corner that has three horizontal lines is an earth ground, which will also be connected later. Finally the component in the top middle that looks like an arrow going into a line is called a diode. A diode will be a component in Circuit 3.
- Circuit 3 is called a crystal set radio. It is an actual working radio that does not require a battery. It got its name because originally a galena crystal was used instead of the 1N34 diode shown in the circuit diagram. The band-pass filter is the inductor and capacitor shown on the left side of the circuit diagram. Since this design emphasizes quick assembly using a breadboard, the radio can only get one or two stations, but it still works. More refined designs can the found on the World Wide Web via a search on the term crystal set. A more detailed description of how the radio works is outside the scope of this lab, but a brief version is given in the Appendix.
- Note: To avoid confusion, only use the left half of the breadboard (i.e., the columns marked A through J).
- Insert one end of the 1N34 (or 1N34A) diode into the breadboard at J55 and the other end into the breadboard at J60.
- Insert one end of the 10pF capacitor into the breadboard at H60.
- Insert the other end of the capacitor into any of the pins on the column to the left of column A.
- Insert the 1mH inductor into the breadboard vertically in the same row as the diode and capacitor.
- Insert the second lead of the inductor vertically in any pin in the same column as the other end of the capacitor.
- Note: There should be three wires in one row of the breadboard. The antenna will be connected here later, so remember this column. Similarly, the other ends of the inductor and capacitor should be in the same row. The ground wire and one of the headphone wires will be connected later, so remember this row.
- Insert one end of the 100kΩ resistor in the same row as the other end of the diode.
- Insert the other end of the resistor into the same column as the ends of the inductor and capacitor.
- Connect one wire from the headphone to the same row as one end of the diode and resistor.
- Connect the other headphone wire to the column that has the ends of the inductor, capacitor, and resistor.
- Connect the antenna located at the front of the lab into the same column as the inductor and the diode.
- Listen for music. In the lab report and presentation, indicate quality and loudness of the music heard from the crystal set.
- After completing the radio, disconnect it from the antenna and ground, and return to the lab to put away the equipment and clean up the work area.
|Frequency (Hz)||VIN (Volts)||VOUT (Volts)||Gain=20log(VOUT/VIN) (dB)|
- Create two tables in Microsoft Excel (one each for the low-and high-pass filter) to record the data. Remember the VIN is a constant. Each table should look like Figure 20.
- Instruct Microsoft Excel to calculate the gain using this equation:
- Plot two Gain (Y) vs. Frequency (X) graphs using the Scatter (X, Y) template. Make one graph for each circuit.
- Find the template on the Insert tab, under the Charts collection, with the Scatter icon. Click on the arrow below or next to the icon and select the top left icon in the pulldown gallery. Get the desired axes by double-clicking on the axis. Additional chart elements such as labels and titles can be added by clicking on the chart, which will add a Design tab to the ribbon. In the Chart Styles collection, click the icon that looks like the desired graph. Right-click on the items to be changed.
- Change the x-axis to logarithmic scale.
- Right-click on the x-axis and click on the Format Axis item. Depending on the version, either a dialog window or a sidebar will appear. Look for an item labeled Logarithmic scale. Click the check box next to this item, and click Close.
- Identify each of the circuits as a low- or high-pass filter. Find the -3dB point and the cutoff frequency.
The lab work is now complete. Please clean up the workstation. Return all unused materials to a TA. Refer to the Assignment section for the instructions needed to prepare the lab report.
Individual Lab Report
Follow the lab report guidelines laid out in the page called Specifications for Writing Your Lab Reports in the Technical Communication section of this manual. The following discussion points should be addressed in the appropriate section of the lab report:
- What is an oscilloscope? Some research may be required to answer this question.
- Discuss the different types of electrical elements. (i.e. resistor, capacitor, inductor)
- Observe the graphs generated from each circuit. What type of filter does each circuit produce?
- Does each circuit produce the expected result? If not, explain why.
- Locate the -3dB point on each graph and cutoff frequency to determine the bandwidth of each filter.
- What is the -3dB point used for?
- Name the three different types of filters and applications for each.
- Discuss any problems encountered; was the experiment a success or a failure? If a failure, why?
- Describe the operation/circuitry of the crystal set.
Team PowerPoint Presentation
Follow the presentation guidelines laid out in the page called EG1003 Lab Presentation Format in the Introduction to Technical Presentations section of this manual.When preparing the presentation, consider the following points:
- How do the results obtained validate the function of the filters created?
- What are some applications of electronic filters?
- Why is the -3dB point important? What is its significance? How is it determined?
Appendix: How a Crystal Set Works
Note: This material has information about how a crystal set works. This section is not required reading.
Some of the earliest radios made were crystal sets. They have a number of advantages:
- They do not require a power source such a battery, so they can be used any time. This makes them very valuable during things like blackouts and recovery from disasters such as hurricanes.
- They have so few components they can be built quickly, usually out of whatever parts are lying around
- They are rugged because of their simplicity, so they can be used while you're traveling
- Unlike regular radios, they do not emit a signal themselves, making them excellent stealth radios. This is important to people like soldiers, where they can listen to the radio without giving away their position.
The radio has several major components:
- An antenna, which should be as long as possible — the longer the antenna, the more stations heard.
- An earth ground. As the name implies, this connects the radio to the earth, allowing signals it receives to return to ground to complete the circuit for the voltage the signal makes.
- A band-pass filter consisting of an inductor and a capacitor. Usually the values of one or both these components can be changed, or varied. For the inductor, if it can be varied, it is by turning a rod going through the middle of the inductor. For the capacitor, if it can be varied, the capacitor plates are visible, and can be rotated. Changing these values allows the allowable frequency to be changed, tuning the radio.
- A diode is shown in the middle of the circuit diagram. The signal from the band-pass filter would look like a sine function (similar to the low- and high-pass filters), but instead of its amplitude being constant, it would change substantially. A typical signal is shown below in Figure 21.
- The variation in the waveform is the desired audio signal (sound) to be heard. This is called amplitude modulation, or AM for short.
- A diode is a device that passes electrical current in one direction. A galena crystal can be used as a diode, which is how the crystal set got its name. However, there are many other materials that can be used as a diode as well. During World War II, many soldiers used a rusty razor blade as a diode. After the invention of semiconductors, diodes are now made of silicon or germanium. For a crystal set, germanium is a better choice. In electronics in the United States, diodes have names that start with 1N, followed by a number and possibly a letter. The number is a serial number assigned by agreement among the electronics manufacturers. A letter, if present, indicates an improved version of the product. Therefore, the diode used here is 1N34, but the improved 1N34A could be used as well. Transistors always start with the designation of 2N, with other semiconductors have designations of 3N, 4N, and so on.
- The diode is used as a detector, which detects the sound from the radio wave. It does this by removing the negative part of the sine wave, leaving only positive voltages. The headphones act as a low pass filter, seeing only the height of the sine wave rather than the voltage variations of the sine wave itself. This amplitude is the audible audio signal.
- The headphone makes the signal audible. Sometimes a resistor is put in parallel with the headphone to boost the signal.
The negative thing about crystal sets is that they are essentially a craft item. Sometimes they do not work for any apparent reason. Sometimes they work in ways that are not totally understood.