biomedical instrumentation lab
class note/bioinst_lab_classnote_lab01_.docx
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
Class Notes for Instruction
LAB #1: USE OF INSTRUMENTS .........................................................................................................1 1 1.1. IMPORTANT NOTES ...........................................................................................................................1 1 1.2. *GOAL(S) OF THIS LAB .....................................................................................................................1 3 1.2.1. Students to Do and Learn.........................................................................................................1 3 1.2.2. TA(s) to Do...............................................................................................................................1 3 1.3. INFORMATION ...................................................................................................................................1 4 1.3.1. The Lab.....................................................................................................................................1 4 1.3.1.1. Location and Space........................................................................................................................... 1 4 1.3.1.2. Emergency Contacts ......................................................................................................................... 1 7 1.3.2. Equipment to Use .....................................................................................................................1 8 1.3.2.1. Summary........................................................................................................................................... 1 8 1.3.2.2. Computer .......................................................................................................................................... 1 9 1.3.2.3. Oscilloscopes.................................................................................................................................. 1 10 1.3.2.4. Function Generators........................................................................................................................ 1 12 1.3.2.5. Power Supply.................................................................................................................................. 1 13 1.3.2.6. Multimeters..................................................................................................................................... 1 13 1.3.2.7. NI USB-6009.................................................................................................................................. 1 14 1.3.2.8. HP GPIB to USB ............................................................................................................................ 1 14 1.3.2.9. Jump Wires..................................................................................................................................... 1 15 1.3.2.10. Screw Driver................................................................................................................................. 1 15 1.3.3. Components to Use.................................................................................................................1 16 1.3.3.1. Breadboards.................................................................................................................................... 1 16 1.3.3.2. Op Amps......................................................................................................................................... 1 19 1.3.3.3. Potentiometers ................................................................................................................................ 1 19 1.3.3.4. Resistors.......................................................................................................................................... 1 20 1.3.3.5. Capacitors ....................................................................................................................................... 1 21 1.3.3.6. Cables ............................................................................................................................................. 1 22 1.3.3.7. Component Organizer..................................................................................................................... 1 23 1.3.4. Software to Use ......................................................................................................................1 23 1.3.4.1. Computer Desktop.......................................................................................................................... 1 23 1.3.4.2. IntuiLink......................................................................................................................................... 1 25 1.3.4.3. *Measurement and Automation...................................................................................................... 1 27 1.3.4.4. MultiSim......................................................................................................................................... 1 29 1.3.4.5. LabView ......................................................................................................................................... 1 30 1.3.4.6. MS Photo Editor ............................................................................................................................. 1 31 1.3.4.7. winSCP Software............................................................................................................................ 1 32 1.3.4.8. IRLAB Imaging.............................................................................................................................. 1 38 1.3.4.9. MS Word ........................................................................................................................................ 1 38 1.3.4.10. MS Excel ...................................................................................................................................... 1 39 1.4. USE OF OSCILLOSCOPES..................................................................................................................1 40 1.4.1. DSO6012A Oscilloscope (for Stations #1 to #6 Only) ...........................................................1 40 1.4.1.1. Connect Cables and Power on......................................................................................................... 1 41 1.4.1.2. Use Auto Scale................................................................................................................................ 1 43 1.4.1.3. Change Amplitude and Time Scale................................................................................................. 1 43 1.4.1.4. Measure Frequency......................................................................................................................... 1 44 1.4.1.5. **Record Period and Frequency..................................................................................................... 1 48 1.4.1.6. Measure Amplitude......................................................................................................................... 1 49 1.4.1.7. **Record Amplitude....................................................................................................................... 1 51 1.4.1.8. **Capture the Square Wave and Save ............................................................................................ 1 51 1.4.1.9. Work with Roll Mode..................................................................................................................... 1 51 1.4.2. DSO1002A Oscilloscope (for Stations #7 to #8 Only) ...........................................................1 53 1.4.2.1. Connect Cables and Power on......................................................................................................... 1 54 1.4.2.2. Use Auto Scale................................................................................................................................ 1 56 1.4.2.3. Change Amplitude and Time Scale................................................................................................. 1 57 1.4.2.4. Measure Frequency......................................................................................................................... 1 58 1.4.2.5. **Record Period and Frequency..................................................................................................... 1 64 1.4.2.6. Measure Amplitude......................................................................................................................... 1 64 1.4.2.7. **Record Amplitude....................................................................................................................... 1 70 1.4.2.8. **Capture the Square Wave and Save ............................................................................................ 1 70 1.4.2.9. Work with Roll Mode..................................................................................................................... 1 71 1.4.3. 54621A Oscilloscope (Station #9 Only) .................................................................................1 73 1.4.3.1. Larger View of the Oscilloscope..................................................................................................... 1 74 1.4.3.2. Connect Cables and Power on......................................................................................................... 1 75 1.4.3.3. Use Auto Scale................................................................................................................................ 1 76 1.4.3.4. Change Amplitude and Time Scale................................................................................................. 1 77 1.4.3.5. Measure Frequency......................................................................................................................... 1 78 1.4.3.6. **Record Period and Frequency..................................................................................................... 1 82 1.4.3.7. Measure Amplitude......................................................................................................................... 1 82 1.4.3.8. **Record Amplitude....................................................................................................................... 1 86 1.4.3.9. **Capture the Square Wave and Save ............................................................................................ 1 86 1.4.3.10. Work with Roll Mode................................................................................................................... 1 87 1.5. USE OF FUNCTION GENERATOR ......................................................................................................1 88 1.5.1. Square Wave (100 Hz, 1 Vpp) ................................................................................................1 88 1.5.1.1. Attach Cables.................................................................................................................................. 1 88 1.5.1.2. Power on......................................................................................................................................... 1 89 1.5.1.3. Set “High Z” Mode......................................................................................................................... 1 89 1.5.1.4. Select Waveform............................................................................................................................. 1 91 1.5.1.5. Change Frequency .......................................................................................................................... 1 91 1.5.1.6. Change Amplitude.......................................................................................................................... 1 93 1.5.1.7. Measure with Oscilloscope............................................................................................................. 1 95 1.5.1.8. **Compare Results......................................................................................................................... 1 96 1.5.2. **Sine Wave (1 KHz, 2 Vpp)..................................................................................................1 96 1.5.3. Pseudo ECG Signal (Simulated) (1 Hz, 1 Vpp)......................................................................1 97 1.5.3.1. Produce Pseudo ECG Signal........................................................................................................... 1 97 1.5.3.2. **Capture the Waveform on Screen ............................................................................................. 1 101 1.5.4. **Pseudo ECG Signal (Simulated) (2 Hz, 60 mVpp) ...........................................................1 101 1.5.5. Turn Off Oscilloscope...........................................................................................................1 102 1.6. USE OF POWER SUPPLY.................................................................................................................1 102 1.6.1. Turn on the Power................................................................................................................1 102 1.6.2. Select Voltage.......................................................................................................................1 103 1.6.3. Set Voltage and Current Limit..............................................................................................1 104 1.7. USE OF MULTIMETER....................................................................................................................1 110 1.7.1. Measure DC Voltage............................................................................................................1 110 1.7.1.1. **Measure +15V........................................................................................................................... 1 110 1.7.1.2. **Measure +/-12V........................................................................................................................ 1 115 1.7.2. Measure DC Current with the Multimeter............................................................................1 116 1.7.2.1. Complete Circuit........................................................................................................................... 1 116 1.7.2.2. **Measure DC Current................................................................................................................. 1 128 1.7.3. Measure AC Voltage ............................................................................................................1 129 1.7.3.1. Produce Sine Wave (60 Hz, 1 Vpp).............................................................................................. 1 129 1.7.3.2. AC Voltage................................................................................................................................... 1 129 1.7.3.3. **Measure RMS Voltage.............................................................................................................. 1 132 1.7.4. Turn off the Power Supply....................................................................................................1 132 1.7.5. Turn off the Function Generator..........................................................................................1 134 1.7.6. Measure Resistance with the Multimeter..............................................................................1 136 1.7.6.1. **Fixed Resistors.......................................................................................................................... 1 136 1.7.6.2. **Potentiometer............................................................................................................................ 1 137 1.7.7. Turn off the Multimeter ........................................................................................................1 138 1.8. **USE OF BREADBOARD ...............................................................................................................1 138 1.9. *SAVE FILES WITH WINSCP..........................................................................................................1 139 1.10. TURN OFF AND DISCONNECT EQUIPMENT ...................................................................................1 140
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
i
i
iii
Lab #1: Use of Instruments
1.1. Important Notes
· Note 1 (Course Expectations): o The course expectations are in the syllabus. If you do not get one for some reasons, please check with your classmates to get a copy. Report templates will also be sent to students for preparing and writing the reports.
· Note 2 (Convention of Illustration Photos in Classnotes): Please notice that the convention in all classnotes of this course is that the displays on the instruments are the results after a button has been pushed or a selection has been made. Therefore, to find out what selection was made on a screen menu, a photo that precedes it should be checked. For example, if a menu item “Cardiac” is selected from a function generator, the screen of the function generator shows the result of the selection that may contain a new menu that may not have the option “Cardiac” anymore.
· Note 3 (Interferences from Your Electronics): Your electronics such as cell phone chargers may not be plugged into any of the lab power outlets to avoid interferences of your electronics with the circuits you are building or testing. This will not only affect you (you may take a lot of time just to find out that the reason why your circuits do not work is due to your electronic devices plugged into the power outlets) but also affect other students nearby.
· Note 4 (Margin of the Classnotes): The wide right margin (1.5 inches) of the classnotes is purposely left blank for students to add notes when the classnotes are printed out.
· Note 5 (Properly Naming Your Saved Files): For all the labs in this semester, you will find the item numbers such as “D1.001”, “D1.002”, and so on, where “D1” means that the items belong to the lab protocol of the Lab #1 classnote, and “.001” means the first item. The items will contribute to part of grade of your reports (please see the templates of the reports for details). Wherever applicable, please use the lower case of these item number as the names of the files to be saved. For example, use “d1.001.jpg” for a JPEG image file related to Item “D1.001”. This allows you to organize and find your results in the computer when you write your reports. It may also help TAs to check your results.
· Note 6 (Transfer Files to Your Personal Computer Accounts): You must transfer all of your saved files to your engineering account using WinSCP software and then delete the transferred files from the computer desktop. Two things to consider: (i) If your engineering account is out of space, you could email the files to your email accounts so that you do not have to look everywhere for files that you need or have the problems of your files being deleted or overwritten by others who use the same computers. In addition, periodical computer maintenances will wipe out everything by reformatting the hard disks. (ii) If the files are too big to email, as a last resort, you could save your files to other devices such as a USB thumb drive. (Notice that some USB drives will infect the computers with viruses and thus use them with care. In addition, frequent uses of USB drives may cause connection problems for the USB sockets of the computers due to wear and tear.)
· Caution on Using Oscilloscopes: o Please do not use the “Utility” button on the oscilloscope to adjust “I/O” setting from USB to GPIB. If you do so, your Intuilink software will no longer able to capture waveforms from the oscilloscope. o Please do not change the trigger “Mode/Coupling” to anything other than “Auto”. If you make such change, you would not be able to see scan lines on the oscilloscope when you push the button “Auto” on the oscilloscope and you may experience error message of “No Data”. o In short, there are numerous adjustments on oscilloscopes and thus if you try to make adjustments without knowing what you are doing, you may not be able to recover the oscilloscopes to their original settings and thus may affect experiments of yours and others. Please check on the web for the manuals of the oscilloscopes that you are using to know the meaning of the adjustments before you try to do “creative” adjustments!
1.2. *Goal(s) of This Lab
1.2.1. Students to Do and Learn
· The goal of this lab is for students to be familiar with major instruments, devices, and software in the Lab.
· Save your computer captured oscilloscope files as .png files with IntuiLink.
· Transfer all of your saved files to your engineering account using WinSCP software and then delete the transferred files from the lab computer.
1.2.2. TA(s) to Do
· TA(s) (Task #1): Do Lab First: TAs should complete the same lab before students start their labs so that TAs can anticipate the questions from the students and can help students better.
· TA(s) (Task #2): Guidance at Beginning of Lab: TAs should give a brief guide to students at the beginning of each lab to address lab specific issues such as identifying cables and their leads, and others.
· TA(s) (Task #3): Clean Up Files: TAs should make sure students have copied their saved files and then deleted the copied files from the computers before they leave the lab. Any files saved by students but have not been deleted after students leave should be deleted by TAs if students could not delete them for some reason. This is important to avoid confusing different groups of students and clustering the computers.
· TA(s) (Task #4): Check Student Files: TAs should check all the plots and figures saved to files by students. If there are some problems with the files, students may need to make corrections.
1.3. Information
1.3.1. The Lab
1.3.2.3. Oscilloscopes
· There are three types of oscilloscopes in the lab. The type of oscilloscope for Station #1 to #6 is shown below (Agilent DSO6012A (60MHz)):
· The type of oscilloscope for Station #7 to #8 is shown below (Agilent DSO1002A (60MHz)):
· The type of oscilloscope for Station #9 is shown below (Agilent DSO54621A (60MHz)):
1.3.2.4. Function Generators
· There are two types of function generators in the lab. The function generators for Station #1 to #7 are shown below (Agilent 33220A (20MHz)):
· The function generators for Station #8 to #9 are shown below (Agilent 33210A (10MHz)):
1.3.2.5. Power Supply
• The power supplies for all stations are shown below (Agilent E3631A) – check to make sure the two black posts and one green post are connected together as a ground post (see green wire below for ground):
1.3.2.6. Multimeters
• There are two types of desk-top multimeters in the lab. The multimeters for Station #1 to #8 are shown below (Agilent 33401A) (the multimeter for Station #9 is Agilent 33405A and is not shown):
1.3.2.7. NI USB-6009
• The device you will use to digitize the signal from the circuits you will make is from a company called National Instruments (NI) as shown below (NI USB-6009):
1.3.2.8. HP GPIB to USB
• There are two types of HP GPIB to USB converters (Agilent 82357A for Stations #1 to #8 on the left and National Instruments GPIB-USB-HS for Station #9 on the right) for oscilloscopes:
1.3.2.9. Jump Wires
• The box with organized jump wires is for you to construct electrical circuits:
1.3.2.10. Screw Driver
• The screw driver tool is used for you to remove integrated circuit chip (such as the operational amplifier OP37G) and other devices and jump wires from prototyping breadboard:
1.3.3. Components to Use
1.3.3.1. Breadboards
· The prototyping breadboard is for you to build circuits.
· Notice that this particular board contains three vertical banks. Each bank is divided into the left and right sections. There is no electrical connection between the sections. There are multiple rows of a set of five holes in each section. The five holes in each row are electrically connected, but there are no electrical connections between rows. A horizontal strip on the top of the board contains two rows of holes. Each row is electrically connected but there is no electrical connection between the two rows. You may also notice that there are four strips in the vertical direction placed evenly from left to right and they are interleaved with the banks. The vertical strips are a rotation of 90 degrees from the horizontal strip described above.
· There are also breadboards of four vertical banks in the lab. But those are for making bigger circuits that need a larger board area. (The smaller boards will provide adequate spaces for our labs.)
· As a convention, the Green post is connected to ground. The red post is connected to +15V of the power supply and the yellow post is connected to the -15V in our experiments.
· Breadboard with three vertical banks of prototyping areas:
· Breadboard that shows all hidden electrical connections underneath the holes (blue lines):
· Breadboard with four vertical banks of prototyping areas:
1.3.3.2. Op Amps
• An example of operational amplifier or Op Amps (OP37G from Analog Devices). Pin #1 (indicated by the red circle) is the lower-left most position (when the semicircle groove is on your left side and you are looking from the top side of the device as shown):
1.3.3.3. Potentiometers
• An example of potentiometer (shown on the picture is one that can vary from 0 to 10K Ohms) is shown below. The resistances between the center pin relative to the 1st (has a larger distance between the pins) and 2nd (has a smaller distance between the pins) outer pins are variable while the resistance between the two outer pins is fixed to 10K Ohms in this example. (“103” means 10 with 3 zeros followed, i.e., 10,000 Ohms that means
10K Ohms. In our labs, we will use 20K Ohm potentiometers.)
1.3.3.4. Resistors
· An example of resistor (10 K Ohms) (brown, black, orange color bands):
· Resistor color codes for values of resistance:
· The resistor color codes that are used to determine the resistance of resistors:
1.3.3.5. Capacitors
• Examples of capacitors (1 micro Farad or 1 mF metallized polyester capacitors):
1.3.3.6. Cables
· The shelves on the back of the room are for you to put your breadboards and hanging cables:
· There are four types of cables. From left to right:
· (1) BNC-to-BNC,
· (2) BNC-to-alligator clips,
· (3) alligator-clip-to-alligator-clip, and
· (4) banana-plug-to-banana-plug:
1.3.3.7. Component Organizer
· The rack drawers are for organizing your components:
· A closer view of the rack drawers:
1.3.4. Software to Use
1.3.4.1. Computer Desktop
· Turn on the monitor by pushing its power button once if it is not already on. Turn on the computer by pushing the button once near the USB sockets (lower part of the computer) if the computer is not already on:
· After login to the “Bioinstrumentation” account (the password will be given during the class), you will get a screen similar to the following (due to upgrades to computers, the screen layout may be a little different):
· There are several programs that you need to use for the lab. These programs can be started from the desktop or the Microsoft Shortcut bar on the upper right side of the screen.
These programs will be shown one-by-one as follows. The names of the programs are below the icons on the desktop. They can also be seen by placing the mouse over the icons of the Microsoft Shortcut bar on the upper-right corner of the screen for a couple of seconds.
1.3.4.2. IntuiLink
· The following program is called “IntuiLink” that is used to transfer and save the waveforms that you see on the screen of the oscilloscopes (double click the icon to start the program and then click the “Get Data” icon in the program):
· An example of waveform (a test signal on oscilloscope) captured by the oscilloscope with IntuiLink (the use of the oscilloscope will be introduced in next sections). The front panel is an exact copy of the oscilloscope screen and the one behind it gives users some parameters of the waveform, such as the starting time and voltage and the ending time and voltage of the waveform). When saving the oscilloscope screen to a file, the top panel should be saved since it contains all the setting parameters of the oscilloscope. Click on File->Save As … >Desktop->Save as type “PNG” to save to computer desk top as a .png file.
· More example of the waveform (the oscilloscope test signal) captured with IntuiLink:
1.3.4.3. *Measurement and Automation
· The “Measurement and Automation” program is used to control the NI USB-6009 signal digitizing device to digitize signals from your circuits to be built later:
· Noise signal captured by the NI USB-6009 device when the inputs of the device are not connected to any signal sources (double click on “Devices and Interfaces” on the left panel, select the device NI USB-6009, open “Test Panels”, select “AI1” or “Dev1/ai1” from the Channel Name if it has not been selected yet, ensure Mode is “On Demand”, select “RSE” from the Input Configuration, and then click the green “Start” button for the test). Please (i) complete the test on the Test Panels and then (ii) close the Test panels and click “Self-Test” to complete a self-test.
1.3.4.4. MultiSim
• The “MultiSim” program from the National Instruments (NI) for circuit schematics and simulations is shown as follows by double-clicking on the icon on the computer desktop:
1.3.4.5. LabView
· The “LabView” program from the National Instruments is to make virtual instruments such as filters:
· Note: The LabView software is updated periodically. (1) Therefore, please start the LabView from the desktop or the Microsoft Short Cut Bar on the upper-right corner of your computer (do not start it from the Windows “Start” menu on the lower left corner). (2) Also, the screen shots of LabView programming steps are for illustration purpose only and they may be slightly different from what you see in the latest version.
1.3.4.6. MS Photo Editor
• The Microsoft Photo Editor program is used to handle and manipulate screen captured images:
1.3.4.7. winSCP Software
· The “winSCP” program allows you to copy files obtained from the lab experiments (saved on the desktop) to your Engineering Accounts in the College of Engineering at The University of Toledo for lab reports. Students are not allowed to leave files on the computers in the lab (the local machines) after each lab. Files on the lab computers may be deleted periodically through reformatting of the hard disk for maintenances. Or, other students may overwrite or delete your files since the lab computers are shared by different students.
· Open the winSCP program:
· Login screen:
· Enter your Engineering User Name:
· Enter Your Engineering Password:
· winSCP panel (files on the left are in this computer and files on the right are at your engineering account – drag files on the left (or from the desktop) to right panel will copy files):
· Change folder to desktop:
· Locate file “waveform1.jpg” or “waveform1.png” (or any filename that you have made) and then drag to copy the file:
· Confirm your copying action:
· Your copied file is now in your engineering account for use in your reports:
· Delete the file(s) from the desktop ot other locations:
1.3.4.8. IRLAB Imaging
• The irlab software (program) is used for image reconstruction in Labs #6 to #9. It will be introduced in detail later in Lab #6. The program can be started either from the desktop or the Microsoft Shortcut bar on the upper right of the screen.
1.3.4.9. MS Word
• The Microsoft Word program for viewing and writing documents or reports:
1.3.4.10. MS Excel
• The Microsoft Excel program for spreadsheets:
1.4. Use of Oscilloscopes
1.4.1. DSO6012A Oscilloscope (for Stations #1 to #6 Only)
· Agilent DSO6012A oscilloscope is used in Stations #1 to #6. Please follow the procedures of oscilloscope in your station.
· Note: Except in this section (“Use of Oscilloscope”), all illustrations in other sections are based on Agilent DSO6012A and thus appropriate modifications to the operations of oscilloscopes should be made if you are not using Agilent DSO6012A.
· Note: If you find that the voltages measured with the oscilloscope is not what you expected, for example, it is 2 times bigger, 5 times bigger, or 10 times bigger, you should check to see if the input settings of the channel you used for the measurement are set incorrectly. The problem can be solved by pushing the enabling button of the channel of concern and then go to the “Probe” option displayed on the menu of the oscilloscope screen. Adjust the input of the channel back to 1:1 ratio (this means that the input voltage displayed will not be multiplied by a number other than 1). Each type of the oscilloscopes may have a slightly difference menu but all oscilloscopes are similar. For safe, you should check at the beginning of each lab to ensure that the ratio of all the channels is set to 1:1 to avoid problems in case senior design students use the oscilloscope while the labs are not in session.
1.4.1.1. Connect Cables and Power on
· Connect the oscilloscope input CH1 (Channel #1) to the test wave source produced by the oscilloscope with a BNC-toalligator-clips cable. (The BNC male and female connectors are connected by pushing the male connector into the female and then turning the male clockwise to lock it. To disconnect, do the opposite, i.e., turning the male connector counterclockwise while pushing it in to unlock it first, then, pulling the male connector out. The male BNC connector is on the cable and the female BNC connector is on the oscilloscope.)
· Make sure to connect the black alligator clip to the ground pin and the red alligator clip to the signal pin as shown to avoid shorting the output of the signal:
· Turn on the oscilloscope:
1.4.1.2. Use Auto Scale
• Push the “Auto Scale” button to set appropriate amplitude and time scale ranges automatically:
1.4.1.3. Change Amplitude and Time Scale
· Adjust amplitude scale per division of the displayed waveform:
· Adjust the time scale per division to increase or decrease the number of cycles of the waveform displayed:
1.4.1.4. Measure Frequency
· Do a Quick Measurement:
· Press the button as shown to bring up the manual:
· Choose “Measure Frequency” from the menu by rotating the “rotation” knob or by pushing the same button a number of times as needed:
· Push the “Cursor” button:
· Select left cursor by pushing the button as shown:
· Adjust left cursor:
· Select right cursor by pushing the button as shown:
· Adjust right cursor to measure the period:
1.4.1.5. **Record Period and Frequency
• D1.001. Record the period and then calculate the frequency of the waveform from the period for your report.
1.4.1.6. Measure Amplitude
· Measure amplitude of the waveform by pushing the button as shown:
· Select the first cursor as shown:
· Adjust the first cursor:
· Select the second cursor as shown:
· Adjust the second cursor to record the peak-to-peak amplitude:
1.4.1.7. **Record Amplitude
• D1.002. Record the peak-to-peak amplitude of the waveform for your report.
1.4.1.8. **Capture the Square Wave and Save
• D1.003. Capture the waveform on the screen and save it into a file with IntuiLink for your report. (The procedure to capture the waveforms displayed on the screen of the oscilloscope is given in Section 1.3.4.2 “IntuiLink”.)
1.4.1.9. Work with Roll Mode
· Select “Roll” mode in the following steps so that low frequency signals such as the electrocardiogram (ECG) can be displayed naturally:
· In the “Roll” mode (waveform is moving to the left):
1.4.2. DSO1002A Oscilloscope (for Stations #7 to #8 Only)
· Agilent DSO1002A oscilloscope is used in Stations #7 to #8. Please follow the procedures of oscilloscope in your station.
· One noticeable difference is that when data on the screens of these oscilloscopes are captured with “IntuiLink” Software described in Section 1.4.2, the front panel keys of these oscilloscopes are locked up. To release the keys, one has to push the button “Force” on the right-hand-side of the front panel and then push the “Run/Stop” button.
· Note: Except in this section (“Use of Oscilloscope”), all illustrations in other sections are based on Agilent DSO6012A and thus appropriate modifications to the operations of oscilloscopes should be made if you are not using Agilent DSO6012A.
· Note: If you find that the voltages measured with the oscilloscope is not what you expected, for example, it is 2 times bigger, 5 times bigger, or 10 times bigger, you should check to see if the input settings of the channel you used for the measurement are set incorrectly. The problem can be solved by pushing the enabling button of the channel of concern and then go to the “Probe” option displayed on the menu of the oscilloscope screen. Adjust the input of the channel back to 1:1 ratio (this means that the input voltage displayed will not be multiplied by a number other than 1). Each type of the oscilloscopes may have a slightly difference menu but all oscilloscopes are similar. For safe, you should check at the beginning of each lab to ensure that the ratio of all the channels is set to 1:1 to avoid problems in case senior design students use the oscilloscope while the labs are not in session.
1.4.2.1. Connect Cables and Power on
· Connect the oscilloscope input CH1 (Channel #1) to the test wave source produced by the oscilloscope with a BNC-toalligator-clips cable. (The BNC male and female connectors are connected by pushing the male connector into the female and then turning the male clockwise to lock it. To disconnect, do the opposite, i.e., turning the male connector counterclockwise while pushing it in to unlock it first, then, pulling the male connector out. The male BNC connector is on the cable and the female BNC connector is on the oscilloscope.)
· Make sure to connect the black alligator clip to the ground pin and the red alligator clip to the signal pin as shown to avoid shorting the output of the signal:
· Turn on the oscilloscope:
1.4.2.2. Use Auto Scale
• Push the “Auto Scale” button to set appropriate amplitude and time scale ranges automatically:
1.4.2.3. Change Amplitude and Time Scale
· Turn off the on-screen menu:
· Adjust amplitude scale per division of the displayed waveform:
· Adjust the time scale per division to increase or decrease the number of cycles of the waveform displayed:
1.4.2.4. Measure Frequency
· Select Measurement:
· Select “Time” submenu:
· Select “Period” by turning the knob:
· Press the knob to confirm the selection:
· Select “Frequency” by turning the knob and then press the knob to confirm the selection. The period and frequency will be displayed.
· Push the “Cursor” button:
· Select “OFF” from submenu:
· Select “Manual” from the submenu:
· Push the knob to confirm the selection:
· Select left cursor:
· Adjust left cursor:
· Turn off the left cursor adjustment:
· Select right cursor:
· Adjust right cursor to measure the period:
1.4.2.5. **Record Period and Frequency
• D1.001. Record the period and then calculate the frequency of the waveform from the period for your report.
1.4.2.6. Measure Amplitude
· Push the “Cursor” button a number of times until “Auto” is displayed:
· Press the “Measurement” again and then select “Voltage” submenu:
· Turn the knob to select the “Vpp” peak-to-peak value:
· Press the knob to confirm the selection:
· Turn the menu off:
· The peak-to-peak amplitude, Vpp, will be displayed.
· Push the “Cursor” button a number of times until “OFF” is displayed:
· Select “OFF” from submenu:
· Select “Manual” from the submenu:
· Push the knob to confirm the selection:
· Press the button below as shown until “Amplitude” is displayed:
· Select the first cursor:
· Adjust the first cursor:
· Turn off the first cursor adjustment:
· Select the second cursor:
· Adjust the second cursor to record the peak-to-peak amplitude:
1.4.2.7. **Record Amplitude
• D1.002. Record the peak-to-peak amplitude of the waveform for your report.
1.4.2.8. **Capture the Square Wave and Save
· D1.003. Capture the waveform on the screen and save it into a file with IntuiLink for your report. (The procedure to capture the waveforms displayed on the screen of the oscilloscope is given in Section 1.3.4.2 “IntuiLink”.)
· After using IntuiLink via a computer, DSO1002A oscilloscope may not return to equipment operating mode and thus may not respond to any key input. To release the keys, one has to push the button “Force” on the right-hand-side of the front panel and then push the “Run/Stop” button.
1.4.2.9. Work with Roll Mode
· Select “Roll” mode in the following steps so that low frequency signals such as the electrocardiogram (ECG) can be displayed naturally:
· Turn the knob to “Roll” in the submenu:
· Push the knob to confirm the selection:
· In the “Roll” mode (the waveform below was not displayed since the sampling rate is only 1KHz that is the same as the signal frequency for this particular oscilloscrope, i.e., the sampling rate is too low for the signal):
· Turn the menu off:
1.4.3. 54621A Oscilloscope (Station #9 Only)
· Agilent 54621A oscilloscope is used in Station #9. Please follow the procedures of oscilloscope in your station.
· Note: Except in this section (“Use of Oscilloscope”), all illustrations in other sections are based on Agilent DSO6012A and thus appropriate modifications to the operations of oscilloscopes should be made if you are not using Agilent DSO6012A.
· Note: If you find that the voltages measured with the oscilloscope is not what you expected, for example, it is 2 times bigger, 5 times bigger, or 10 times bigger, you should check to see if the input settings of the channel you used for the measurement are set incorrectly. The problem can be solved by pushing the enabling button of the channel of concern and then go to the “Probe” option displayed on the menu of the oscilloscope screen. Adjust the input of the channel back to 1:1 ratio (this means that the input voltage displayed will not be multiplied by a number other than 1). Each type of the oscilloscopes may have a slightly difference menu but all oscilloscopes are similar. For safe, you should check at the beginning of each lab to ensure that the ratio of all the channels is set to 1:1 to avoid problems in case senior design students use the oscilloscope while the labs are not in session.
1.4.3.1. Larger View of the Oscilloscope
• A larger view of the 54621A digital oscilloscope:
1.4.3.2. Connect Cables and Power on
· Connect the oscilloscope input CH1 (Channel #1) to the test wave source produced by the oscilloscope with a BNC-toalligator-clips cable. (The BNC male and female connectors are connected by pushing the male connector into the female and then turning the male clockwise to lock it. To disconnect, do the opposite, i.e., turning the male connector counterclockwise while pushing it in to unlock it first, then, pulling the male connector out. The male BNC connector is on the cable and the female BNC connector is on the oscilloscope.)
· Make sure to connect the black alligator clip to the ground pin and the red alligator clip to the signal pin as shown to avoid shorting the output of the signal:
· Turn on the oscilloscope:
1.4.3.3. Use Auto Scale
• Push the “Auto Scale” button to set appropriate amplitude and time scale ranges automatically:
1.4.3.4. Change Amplitude and Time Scale
· Adjust amplitude scale per division of the displayed waveform:
· Adjust the time scale per division to increase or decrease the number of cycles of the waveform displayed:
1.4.3.5. Measure Frequency
· Do a Quick Measurement:
· Press the button as shown to bring up the manual:
· Choose “Measure Frequency” from the menu by rotating the “rotation” knob or by pushing the same button a number of times as needed:
· Push the “Cursor” button:
· Select left cursor by pushing the button as shown:
· Adjust left cursor:
· Select right cursor by pushing the button as shown:
· Adjust right cursor to measure the period:
1.4.3.6. **Record Period and Frequency
• D1.001. Record the period and then calculate the frequency of the waveform from the period for your report.
1.4.3.7. Measure Amplitude
· Push the “Quick Measurement” button again:
· Measure amplitude of the waveform by pushing the button as shown:
· Select “Measure Peak-to-Peak” from the menu:
· Push the “Cursor” button again:
· Select “Y” from the menu:
· Select the first cursor:
· Adjust the first cursor:
· Select the second cursor:
· Adjust the second cursor to record the peak-to-peak amplitude:
1.4.3.8. **Record Amplitude
• D1.002. Record the peak-to-peak amplitude of the waveform for your report.
1.4.3.9. **Capture the Square Wave and Save
• D1.003. Capture the waveform on the screen and save it into a file with IntuiLink for your report. (The procedure to capture the waveforms displayed on the screen of the oscilloscope is given in Section 1.3.4.2 “IntuiLink”.)
1.4.3.10. Work with Roll Mode
• Select “Roll” mode in the following steps so that low frequency signals such as the electrocardiogram (ECG) can be displayed naturally:
1.5. Use of Function Generator
· Note: The Microsoft Photo Editor program is used to capture images on computer screen.
· Important: Please notice that in our labs, the direct current (DC) offset of the function generator must be set to zero if this has not already been done. If this is neglected and your function generator has a DC offset that is not zero, the measurements and results of this and future labs will not be correct and it may take a lot of time to troubleshoot to find out this problem. (Notice that when you turn on the function generator, the option “Offset” will be shown on the display.) For safe, you should check at the beginning of each lab to ensure that the offset is set to 0 to avoid problems in case senior design students use the equipment while the labs are not in session.
1.5.1. Square Wave (100 Hz, 1 Vpp)
1.5.1.1. Attach Cables
· Connect the function generator to oscilloscope with a 50 Ohm BNC-to-BNC cable (the one provided in the lab is a 50 Ohm cable):
· Make the connection:
1.5.1.2. Power on
• Turn on the function generator and the output waveform depends on the selection of the previous user:
1.5.1.3. Set “High Z” Mode
· Push the “Utility” button:
· Select the “Output Setup” from the menu:
· Select the “High Z” mode to let the output to have a higher impedance since our load has a high impedance (this will ensure a correct reading of the amplitude of the signal):
· Click “Done” from the menu to end the selection:
1.5.1.4. Select Waveform
• Select the square wave mode and Set “Offset” to “0VDC” if it is not set already.
1.5.1.5. Change Frequency
· Change the frequency of the wave:
· Make a change to the frequency (change to 100 Hz):
· Select “Hz” unit for the frequency of the square wave:
1.5.1.6. Change Amplitude
· Select “Amplitude” from the menu:
· Change the amplitude of the square wave to 1:
· Select the unit of the voltage to Vpp:
· Enable the output of the function generator if it is not already enabled:
1.5.1.7. Measure with Oscilloscope
· Push “Auto Scale” on the oscilloscope to let it to determine an appropriate amplitude and time scales for the square wave signal from the function generator:
· Push the “Quick Measure” button:
· The frequency and amplitude values are shown on the lower part of the screen as indicated by the fingers below:
1.5.1.8. **Compare Results
• D1.004. Compare the frequency and peak-to-peak amplitude of the waveform between what you set on the function generator and what you measured with the oscilloscope for your report.
1.5.2. **Sine Wave (1 KHz, 2 Vpp)
· Produce a sine wave having 1 KHz frequency and 2 Vpp voltage (the subscript “pp” means peak-to-peak amplitude of the wave) instead of a square wave with the function generator, and then display it with the oscilloscope. Check the frequency and amplitude on the oscilloscope.
· D1.005. Compare the frequency and peak-to-peak amplitude of the waveform between what you set on the function generator and what you measured with the oscilloscope for your report.
1.5.3. Pseudo ECG Signal (Simulated) (1 Hz, 1 Vpp)
1.5.3.1. Produce Pseudo ECG Signal
· Produce the simulated (Pseudo) ECG signal built-in in the function generator by pressing “Arb” button:
· Select the “Select Waveform” from the menu:
· Select “Built-In” from the menu:
· Select “Cardiac”:
· Select “Frequency” from the menu:
· Type in the frequency (1 Hz):
· Select the unit “Hz” from the menu:
· Select “Amplitude” from the menu:
· Set the amplitude (1Vpp):
· Select the unit “Vpp” of the voltage from the menu:
· Push the “Main/Delayed” or “Menu/Zoom” button on the oscilloscope:
· Select the “Roll” mode from the menu:
1.5.3.2. **Capture the Waveform on Screen
• D1.006. (i) Capture the waveform on the screen and save it into a file with IntuiLink for your report. (ii) Compare the frequency and amplitude set on function generator with those measured.
1.5.4. **Pseudo ECG Signal (Simulated) (2 Hz, 60 mVpp)
· Produce a pseudo-ECG signal with 2 Hz frequency and 60 mVpp voltage, and then use the oscilloscope to display it using the “Roll” mode of the oscilloscope.
· D1.007. (i) Compare the frequency and peak-to-peak amplitude of the waveform between what you set on the function generator and what you measured with the oscilloscope for your report. (ii) If you see a higher noise as compared to 1Hz and 1Vpp pseudo ECG signal, please explain why.
1.5.5. Turn Off Oscilloscope
• Turn off the oscilloscope:
1.6. Use of Power Supply
• Note: After the “Output On/Off” button is pushed to turn on the output, the voltages and current limits cannot be adjusted.
1.6.1. Turn on the Power
• Turn on the power of the power supply (this power supply has three sets of outputs: (1) 6V, (2) 0 to 25V, and (3) 0 to -25V):
1.6.2. Select Voltage
• Select +25V adjustable power:
1.6.3. Set Voltage and Current Limit
· Push “Display Limit” to display the voltage and current limit of this the +25V adjustable power output:
· Adjust the voltage to +15V:
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
1-1
1-1
1-99
· Toggle the “Voltage/Current” button to adjust the current limit:
Push the arrow:
· Continue to push the arrow:
Adjust the current to 0.035A or 35 mA that is to be used in all of our lab experiments to reduce the chance of burning out devices in the circuits and/or burning out the breadboards:
· Select the -25V adjustable power:
Adjust the voltage to -15V:
· Select current limit for adjustment:
Push the arrow:
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
•
1-105
•
1-105
•
1-105
· Continue to push the arrow:
· Adjust the current limit to 0.035A or 35mA that is to be used in all of our lab experiments to reduce the chance of burning out devices in the circuits and/or burning out the breadboards:
1.7. Use of Multimeter
1.7.1. Measure DC Voltage
1.7.1.1. **Measure +15V
· Connect a BNC-to-alligator-clips cable to the multimeter (make sure that the BNC connector on the banana-to-BNC adaptor plug is to the right hand side as shown below so that the polarity of the voltage measured is correct):
· Turn on the multimeter:
· Set the multimeter to measure direct current (DC) voltage:
· Connect the alligator clips to the power supply 25V adjustable power to measure voltages (black color to black and red to red):
· Set the output of the power supply to 15V if it is not already set:
· Enable the output of the power supply:
· Measuring the output voltage of the power supply:
· Disable the output of the power supply. You notice that the voltage displayed on the multimeter is changed:
· D1.008. Compare the voltage set on the power supply with that measured with the multimeter for your report.
1.7.1.2. **Measure +/-12V
· Produce +12 and -12V voltages with the power supply and then use the multimeter to measure the voltages of both the positive and negative outputs. Ensure that the current limit for both +12 and -12V are set to 0.035A.
· D1.009. Compare the voltages set on the power supply with those measured with the multimeter for your report.
1.7.2. Measure DC Current with the Multimeter
1.7.2.1. Complete Circuit
· When measuring a current that flows through a resistor, the multimeter must be in series with the power supply that is also in series with the resistor to avoid damaging the multimeter and to be able to carry out the measurement.
· Disable the output of the power supply if it is not already disabled.
· Disconnect the alligator clips from the output of the power supply:
· Connecting yellow and black alligator-to-alligator cables to the output of the power supply (connecting yellow to red and black to black to the power supply as shown):
· Get a 10K Ohm resistor in series with the output of the power supply:
· Complete the circuit with the multimeter and the output of the power supply:
· Summary: The circuit connections are shown below (the yellow alligator-to-alligator cable is connected to the red post of the power supply at one end and is connected to the resistor at the other end, the black alligator-to-alligator cable is connected to the black alligator clip of the BNC-to-alligator-clips cable at one end and is connected to the black ground post of the power supply at the other end, and the red alligator clip of the BNCto-alligator-clips cable is connected to the other end of the resistor):
· Remove the banana-to-BNC adaptor plug and then plug it into the position for measuring currents (please rotate the banana-toBNC adaptor plug by 180 degrees and then insert it into the lower two holes to ensure that the ground remains the same):
· Connecting black to black and red to red for the banana-toBNC adaptor. I.e., the BNC connector on the banana-to-BNC adaptor plug should now be on the left hand side to ensure a correct polarity of the measurements, see the figure below:
· Press the “Shift” button for current measurement on the multimeter:
· Select the DC current measurement:
· Set the voltage of the power supply to +15V. Enable the output of the power supply and the current value is shown on the display panel of the multimeter (check to make sure that the circuit connections are correct before you enable the power supply and also ensure that the current limit of the power supply is set to 0.035A or 35mA to minimize the chance of damaging devices and equipments):
1.7.2.2. **Measure DC Current
• D1.010. (i) Draw a circuit diagram of the circuit above using the electronic symbols given in Wikipedia
(https://en.wikipedia.org/wiki/Electronic_symbol ) and a small square with “+” and “-” leads to represent the multimeter. (ii) Measure the DC current with the multimeter. (iii) Calculate the current determined by the Ohm’s Law (V=+15V and R=10 KOhm). (iv) Compare what you measured with what you calculated and do analysis for your report.
1.7.3. Measure AC Voltage
1.7.3.1. Produce Sine Wave (60 Hz, 1 Vpp)
• Disable the output of the function generator if it is not already disabled. Produce a sine wave having 60 Hz frequency and 1 Vpp voltage, and set the output of the function generator to “High Z”.
1.7.3.2. AC Voltage
· Make sure that the position of the plug to the multimeter is set back to the position for measuring voltage (upper position), otherwise damage to the multimeter may occur. Press “AC V” button to measure alternating current (AC) voltage:
· Connect the BNC-to-BNC cable from multimeter to the function generator:
· Enable the output of the function generator (notice that the multimeter will measure the root-mean-square (RMS) value of the AC voltage, which is different from the peak-to-peak value of the voltage measured on an oscilloscope - please visit website at
http://www.learningaboutelectronics.com/Articles/What-ispeak-to-peak-voltage.php for an explanation of RMS value of an AC voltage):
1.7.3.3. **Measure RMS Voltage
• D1.011. (i) Measure the AC voltage with the multimeter. (ii) Calculate the RMS voltage with the formula for sine wave in Wikipedia above (V=1Vpp sine wave). (iii) Compare what you measured with what you calculated and do analysis for your report.
1.7.4. Turn off the Power Supply
· Turn off the power supply:
· Remove the cables from the power supply and the multimeter:
1.7.5. Turn off the Function Generator
· Turn off the function generator:
· Remove the cable from the function generator:
1.7.6. Measure Resistance with the Multimeter
1.7.6.1. **Fixed Resistors
· Attach the BNC-to-Alligator-clips cable to the multimeter:
· Set the multimeter for resistance measurement:
· Measure the resistance of a 10K Ohm resistor (brown, black, orange color bands – see Section 1.3.3):
· Replace the 10K Ohm resistor with a 220 Ohm resistor (red, red, brown bands – see Section 1.3.3) and then do the measurement again.
· D1.012. (i) Record what you have measured for both the 10K Ohm and 220 Ohm resistors, and (ii) do analyses on any discrepancies of what you have measured and what you expect for your report. (iii) Are the errors within the tolerance of the type of resistors (carbon film resistors – see Section 1.3.3).
1.7.6.2. **Potentiometer
· Get a 20K Ohm potentiometer. With the help of the multimeter, set the resistances between the center pin and the 1st outer pin (has a larger distance between the pins) to (i) 0k Ohms, (ii) 5k Ohms, (iii) 10k Ohms, (iv) 15k Ohms, and (v) 20k Ohms, respectively, by rotating the screw of the potentiometer (clockwise to increase the value while counterclockwise to decrease the value). For each resistance value measured above, measure the corresponding resistance between the center pin and the 2nd outer pin (has a smaller distance between the pins). (See Section 1.3.3 for details of potentiometers.) Create Table D1.013 below.
· D1.013. (i) Record the results in Table D1.013 below (also calculate the column sum of each column), and (ii) do analyses on what you find for your report.
Table D1.013. Measurement Results.
|
Measurements |
(i) |
(ii) |
(iii) |
(iv) |
(v) |
|
1st Outer Pin |
|
|
|
|
|
|
2nd Outer Pin |
|
|
|
|
|
|
Column Sum |
|
|
|
|
|
|
Resistance between Two Outer Pins |
|
|
|
|
|
1.7.7. Turn off the Multimeter
• Turn off the multimeter. Disconnect the BNC-to-Alligator-clips cable from the banana-to-BNC adaptor plug by turning counterclockwise the BNC connector while pushing it in to unlock first, and then pull out the cable to remove it.
1.8. **Use of Breadboard
• D1.014. The electrical connections of the breadboard is shown in Section 1.3.3. Please use the knowledge to indicate all of the points (labeled by “A”, “B”, “C”, and so on) that are connected electronically for your report.
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
1.9. *Save Files with winSCP
• Use the “winSCP” program to: (i) save your files to your engineering account and then (ii) delete the saved files from your desktop. Deleting from your computer desktop the files that you produced and transferred to your account would avoid confusing the groups that do the same lab using the same computer after you and also would prevent your results be misused by others. (Please follow Section 1.3.4 “Software to Use” above for steps to use winSCP if you forget how to do this.)
1.10. Turn off and Disconnect Equipment
• After completing the lab, turn off (i) power supply, (ii) function generator, (iii) multimeter, (iv) oscilloscope, (v) computer, and (vi) monitor if they have not been turned off already. Disconnect the cables that you have used and put them on the hangers at the back of the room.
1-1
1-1
1-136
class note/bioinst_lab_classnote_lab02_.docx
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
LAB #1: USE OF INSTRUMENTS .........................................................................................................1-1
LAB #2: BASIC CIRCUIT DEVELOPMENT .......................................................................................2-1 2.1. *GOAL(S) OF THIS LAB .....................................................................................................................2-1
2.1.1. Students to Do and Learn.........................................................................................................2-1 2.1.2. TA(s) to Do...............................................................................................................................2-2 2.2. PRINCIPLE OF CIRCUITS.....................................................................................................................2-2
2.2.1. Circuit Diagram and OpAmp...................................................................................................2-2 2.2.2. **Gain of Circuits....................................................................................................................2-3
2.3. SCHEMATICS OF CIRCUITS.................................................................................................................2-4
2.3.1. *Open NI MultiSim and Save Your Work.................................................................................2-4 2.3.2. Placement of an Operational Amplifier....................................................................................2-7 2.3.3. Place a Resistor......................................................................................................................2-11 2.3.4. Place a Potentiometer ............................................................................................................2-14 2.3.5. Place a Ground and a Resistor...............................................................................................2-17 2.3.6. Place Power Supplies.............................................................................................................2-21 2.3.7. Place another Ground............................................................................................................2-24 2.3.8. Manipulate Components Placed.............................................................................................2-26 2.3.9. Modify parameters of Components.........................................................................................2-31 2.3.10. Route the Components..........................................................................................................2-34 2.3.11. Change Labels of Components.............................................................................................2-35 2.3.12. Place In/Out Terminals ........................................................................................................2-39 2.3.13. Completed Schematic ...........................................................................................................2-44 2.3.14. Use of MS Photo Editor........................................................................................................2-45 2.3.15. **Save the Schematic...........................................................................................................2-46
2.4. SIMULATION OF CIRCUITS...............................................................................................................2-46
2.4.1. Place and Connect a Signal Source .......................................................................................2-46 2.4.2. Define Your Simulation Task and Set Parameters..................................................................2-51 2.4.3. Make Simulation Expressions.................................................................................................2-53 2.4.4. **Simulation Result................................................................................................................2-61 2.5. CONSTRUCTION OF CIRCUITS..........................................................................................................2-62
2.5.1. Place Power and Ground Buses.............................................................................................2-63 2.5.2. Place Operational Amplifier ..................................................................................................2-75 2.5.3. Place Other Components and Make Connections..................................................................2-76 2.5.4. A Sample Circuit ....................................................................................................................2-77 2.6. TESTS OF CIRCUITS (100 HZ, 1 VPP, SINE WAVE)...........................................................................2-78
2.6.1. Connect to Power Supply .......................................................................................................2-78 2.6.2. Connect to Function Generator..............................................................................................2-82 2.6.3. Connect to Oscilloscope.........................................................................................................2-86 2.6.4. Setup Function Generator......................................................................................................2-88 2.6.5. Setup Power Supply................................................................................................................2-89
2.6.6. **Setup Oscilloscope to Measure Input and Output Signals..................................................2-89
2.6.7. ** Study Influences of Input Amplitude and Power Supply Voltage.......................................2-90
2.7. DEVELOP AN INVERTING AMPLIFIER AND TEST ..............................................................................2-91
2.7.1. **Schematic............................................................................................................................2-92 2.7.2. **Simulation...........................................................................................................................2-92 2.7.3. **Experiment..........................................................................................................................2-92 2.8. SAVE YOUR WORK .........................................................................................................................2-94
2.8.1. *Save Files with winSCP........................................................................................................2-94 2.8.2. *Save Your Constructed Circuits ...........................................................................................2-95 2.9. TURN OFF AND DISCONNECT EQUIPMENT .......................................................................................2-95
ii
Lab #2: Basic Circuit Development
2.1. *Goal(s) of This Lab
2.1.1. Students to Do and Learn
· The goals of this lab are to:
· (i) construct basic circuits with an operational amplifier
(OpAmp); o (ii) learn how to use software to draw schematics of the circuits;
· (iii) do circuit simulations; and then
· (iv) perform tests of the circuits with instruments learned in previous classes. Also, students will learn how to design and construct a circuit to achieve a specific goal.
· Save your circuit schematics as .jpg files as well as the native MultiSim files so that you could modify your circuits without starting over again with the lab computer in case you need to do so.
· Save your circuit simulation results as .jpg files.
· Save your computer captured oscilloscope files as .png files with IntuiLink.
· Transfer all of your saved files to your engineering account using WinSCP software and then delete the transferred files from the lab computer.
· The circuits will be reused in other experiments later in the class. Therefore, please save your constructed circuits on the shelf at the back of the room with your names pinned on the breadboard with a piece of jump wire.
2.1.2. TA(s) to Do
· TA(s) (Task #1): Do Lab First: TAs should complete the same lab before students start their labs so that TAs can anticipate the questions from the students and can help students better.
· TA(s) (Task #2): Guidance at Beginning of Lab: TAs should give a brief guide to students at the beginning of each lab to address lab specific issues such as identifying cables and their leads, and others.
· TA(s) (Task #3): Clean Up Files: TAs should make sure students have copied their saved files and then deleted the copied files from the computers before they leave the lab. Any files saved by students but have not been deleted after students leave should be deleted by TAs if students could not delete them for some reason. This is important to avoid confusing different groups of students and clustering the computers.
· TA(s) (Task #4): Check Student Files: TAs should check all the plots and figures saved to files by students. If there are some problems with the files, students may need to make corrections.
· TA(s) (Task #5): Check Circuits: TAs should check the neatness of the circuits constructed.
2.2. Principle of Circuits
2.2.1. Circuit Diagram and OpAmp
· Note: Make sure that the value of the potentiometer in the circuit diagram below is set to be larger than about 3k Ohm. Otherwise, the amplifier may oscillate due to an imperfect nature of a practical operational amplifier (OpAmp). If an oscillation occurs, the amplifier will lose its function as an amplifier and its output will be random, noisy, and saturated.
An oscillating amplifier will also affect other parts of the circuits to be built in future labs.
· The following is a non-inverting (output and the input signals have the same polarity) amplifier circuit (using an OpAmp) that you need to draw, simulate, construct, and test:
· The names and positions of pins of the OpAmp (OP37) (looking from the back of the amplifier with its legs pointing away from you) are also given in the drawing (notice that Pins #1 and #8 are not used in the experiment, and Pin #5 has no connection “NC”) (a PDF datasheet can be downloaded from web through a Google search, http://web.mit.edu/6.301/www/OP37b.pdf ).
2.2.2. **Gain of Circuits
· An ideal operational amplifier (OpAmp) has the following two fundamental properties: (i) it has an infinitely large gain and (ii) it has an infinitely large input impedance. This means that the voltage difference between the inputs +IN and -IN is virtually zero given any finite amplitude of the output signal, and the current flowing into the inputs of the amplifier is zero.
· A practical OpAmp usually has a gain of a few millions and an input impedance of tens of mega ohms (1 mega ohm is equal to 106 ohms). Thus, it can be well approximated with an ideal OpAmp.
· With an ideal operational amplifier and the circuit above, we have V Vout = +in Vin R11 = +(1 R11 )×Vin =Gain×Vin , which gives the gain of
R10 R10
|
Gain =Vout = +1 R11 Vin R10 |
the amplifier circuit of . The potentiometer R11
(variable from 0 to 20K Ohms) allows you to change the gain of the amplifier.
· The resistor R9 is added to balance the small input current of practical OpAmp with that flowing through R10. Both R9 and R10 should have the same value (they are 1.5k Ohms in the circuit).
Vin
· D2.001. Please derive the formula, V Vout = +in R11, using the
R10
knowledge of an ideal OpAmp for your report.
2.3. Schematics of Circuits
2.3.1. *Open NI MultiSim and Save Your Work
· To draw schematics, a program called MultiSim from the National Instruments (NI) should be used (the program was introduced in the classnotes of Lab #1).
· After the program is opened, you will see the following screen on your computer. (Please notice that due to updates to the program, the screen that you see may be a little different. In addition, the figures below are for illustration purpose only. They are not in a high resolution to reduce the file size of the classnotes.)
· Save the empty schematic above to your desktop in the file name “d1.001.ms13” (the suffix “.ms13” is added automatically by the program) to avoid losing your schematic while you are working on them. (At the end of this Section, you will learn how to save your schematic also with the Microsoft Photo Editor in .jpg file format so that your software can handle it without needing the lab computer. The Microsoft Photo Editor was introduced in the classnotes of Lab #1.)
2.3.2. Placement of an Operational Amplifier
· First to place the component, “OP37” (to find OP37GP), that is produced by the company called Analog Devices. Click “Place” -> “Component …” -> “Analog” -> “OpAmp” -> type in “Op37GP” -> select “OP37GP” -> “OK”:
· After clicking on “OK”, the first component is placed to where you would like to with a click of your left mouse:
· Adjust the positions of labels of the operational amplifier by dragging it:
2.3.3. Place a Resistor
· Place the second component “1.5K Ohm” resistor. “Place” -> “Component …” -> “Basic” -> “Resistor”:
· Type in “1.5k” to search for the resistor:
· After clicking on “OK”, the second component “1.5K Ohm” resistor is placed to where you would like to with a click of your left mouse:
2.3.4. Place a Potentiometer
· Place the third component “20K Ohm” potentiometer:
· Type in “20k” to search for the potentiometer:
· After clicking on “OK”, the third component “20K Ohm” potentiometer is placed to where you would like to with a click of your left mouse:
2.3.5. Place a Ground and a Resistor
· Place a “Ground” and another 1.5K Ohm resistor:
· The Ground and the 1.5K Ohm resistor are now placed:
2.3.6. Place Power Supplies
· Place a positive power supply:
· The positive power supply is now placed:
· Place a negative power supply:
· The negative power supply is now placed:
2.3.7. Place another Ground
· Place another Ground:
· The other Ground is now placed:
2.3.8. Manipulate Components Placed
· Manipulate the orientation of the power supply component by right clicking with your mouse and then select an appropriate action:
· Manipulate the orientation of the Ground component by right clicking with your mouse and then select an appropriate action:
· Manipulate the orientation of another power supply component by right clicking with your mouse and then select an appropriate action:
· Manipulate the orientation of the potentiometer component by right clicking with your mouse and then select an appropriate action:
· This is the result of the manipulations of components.
2.3.9. Modify parameters of Components
· Modify the value of the positive power supply from the default 12V to 15V by double clicking on the value:
· Modify the value of the negative power supply from the default -12V to -15V:
· Rearrange the components to make them easier to make connections to form the circuit by dragging them:
2.3.10. Route the Components
• Route your components with wires to complete the circuit by drawing lines with your left mouse button:
2.3.11. Change Labels of Components
• Change labels of various components by double clicking on the labels:
2.3.12. Place In/Out Terminals
· Place a terminal component at the input of the circuit:
· Place a terminal component at the output of the circuit:
· Change the label of the input terminal:
· Change the label of the output terminal:
2.3.13. Completed Schematic
• This is the completed schematic of the circuit:
2.3.14. Use of MS Photo Editor
• To capture the entire computer screen into a .jpg file with the Microsoft Photo Editor, you should first press the “Print Screen” key on your keyboard to capture your screen (or press “ALT + Print Screen” for capturing a selected window on your screen) into a computer memory buffer, then, start the Microsoft Photo Editor from the Microsoft Office Shortcut Bar on the upper-right corner of your computer screen or from the computer desktop. Click “Edit” -> “Paste as New Image” to display the image. Then click “File” -> “Save As” to save a .jpg file to the desktop and then transfer it to your engineering account with winSCP software. When saving the .jpg file, please click the button “More >>” near the lower-left corner in the “Save As” popup and then adjust the “the JPEG quality factor” slide bar to 31 if it has not already been set to this value to ensure that you get a compressed file so that the file size of your report will not be too large. To ensure the file remains compressed when importing this compressed file into your MS Word report, you should choose “Insert” instead of “Copy/Paste” operation in your Microsoft Word! Both the Microsoft Photo Editor and winSCP programs were introduced in the classnotes of Lab #1.
2.3.15. **Save the Schematic
• D2.002. (i) Click “File” -> “Save” on MultiSim to save the schematic to the file named “d2.002.ms13”. (This file format can only be recognized by MultiSim and thus it is not usable for use outside of the lab. However, in case you need to modify the circuit, you need this file.) (ii) Then, save your circuit diagram using the screen capture with the Print Screen key (or Alt + Print Screen) on the keyboard and the MS Photo Editor into .jpg format with the file name, d2.002.jpg, for your report. (The .jpg format allows you to handle the file and insert the image into your report without needing to use the lab computers.)
2.4. Simulation of Circuits
• To simulate the circuit, an input signal source is needed with proper settings of its parameters.
2.4.1. Place and Connect a Signal Source
· Place an input signal source “AC Voltage”:
· Place a Ground:
· Place a Junction to connect the signal source:
· The signal source is now added to your circuit:
2.4.2. Define Your Simulation Task and Set Parameters
· Select your simulation task as “AC Analysis” by clicking “Simulate” -> “Analyses” -> “AC analysis …”:
· Set the parameters for your simulation tasks as follows:
2.4.3. Make Simulation Expressions
· Define the input and output relationship through the gain,
Gain =V out (i.e., Gain = V(vout)/V(vin)), as a function of
Vin
frequency by clicking “Output” -> “Add expression …”:
· Adjust the value of the potentiometer (R11) to 100% of its value or 20k Ohm in the circuit diagram. Then, click the “Simulate” button to start the simulation and get result:
2.4.4. **Simulation Result
· This is an example of your simulation result showing both amplitude and phase of the gain of your amplifier as a function of the frequency of the input signal from 0.1 Hz to 1 GHz (1,000,000,000 Hz) in logarithm scale (the vertical axis is in linear scale).
· D2.003. Save your simulation result as a .jpg file with the Microsoft Photo Editor in the procedure described above for your report.
2.5. Construction of Circuits
· Important: Understand Circuit Diagram and Wiring: Please make sure that you understand how the breadboard is pre-wired (there are hidden wires underneath the holes of the breadboard) according to the explanations in Section 1.3 of Lab #1. Please also check the entire circuit (taking into account the hidden wires) with the schematic in Section 2.2 after you have completed the construction of the circuit to make sure that your connections are correct.
· Important: Purposely Blurring of Figures: The figures/photos below for circuit construction are for illustration purpose only and the steps described, if there are any, are to specify where the main components of the circuit should be located to leave room for other circuits to be inserted in future labs and make the circuit neat for easier troubleshooting. The resolution of figures is purposely made low to keep the file size of the classnotes small and allow students to learn how to wire the circuit using the circuit diagram, instead of mechanically following the figures to wire without understanding the circuit. Multiple ways of electrical connections are permissible as long as they result in a correct circuit. You must check the correctness of the circuit before you start to test it.
2.5.1. Place Power and Ground Buses
· Wire the positive 15V power with a red jump wire (insert the wire through a hole in the red post and then tighten it).
· Insert the other end of the jump wire into the breadboard as shown:
· Wire the negative 15V power with a yellow jump wire (insert the wire through a hole in the yellow post and then tighten it):
· Insert the other end of the jump wire into the breadboard as shown:
· Wire the ground with a green jump wire (insert the wire through a hole in the green post and then tighten it) and insert the other end of the wire into the breadboard as shown:
· Insert jump wires into the breadboard to make a positive 15V power bus as shown (make sure the wires are on the right-handside of the vertical two-column strips, which are marked by orange colored lines):
· Insert jump wires into the breadboard to make a negative 15V power bus as shown (make sure the wires are on the left-handside of the vertical two-column strips, which are marked by blue colored lines – this is required due to the hidden connections explained in Section 1.3 of Lab #1):
· Completing the positive 15V bus by connecting it to the red post:
· Completing the negative 15V bus by connecting it to the yellow post:
2.5.2. Place Operational Amplifier
· Place an operational amplifier “OP37” as follows: Please place Pin #1 at the 10th row (see the mark indicated by the left finger). Make sure the two columns of pins of the operational amplifier are across the divider of the bank of the breadboard. Also, please place the operational amplifier on the last bank of the board if your board has three banks. If your board has four banks, place the operational amplifier on the third bank. This is important because it allows you to add other circuits to the spaces on the left in later labs without having to reconstruct the circuit that you have already built.
· The correct placement of OP37 is shown below (Pin #1, indicated with a red circle, is on the upper left corner of the chip on the 10th row):
2.5.3. Place Other Components and Make Connections
· Place other components and wires (R9, R10, R11, +15V, -15V, Vin, Vout, and related connection wires) according to the circuit diagram in Section 2.2 above to complete the circuit.
· When placing the 20K Ohm potentiometer, please pay attention to the pin insertion positions and make sure that the adjustment screw is to your right so that it can be easily reached. Notice that the center pin of the potentiometer is the arrowed arm in the circuit diagram and should be used in the circuit connection. The resistance between the outer pins on the two sides is fixed to about 20k Ohm. In addition, the resistance from the center pin to one side pin plus the resistance from the center pin to the other side pin is also about 20k Ohm as you have measured in Lab #1.
2.5.4. A Sample Circuit
• The following is an example of completed circuit to give you a general idea of where the components are placed. The figure may be purposely blurred so that you have an opportunity to learn how to wire the circuit. Please check your constructed circuit against the schematics in Section 2.2 above to make sure that the connections are correct. Please take into account the hidden connections of the breadboard explained in Section 1.3 of Lab #1.
Input Vin
Wire
Output
Vout Wire
2.6. Tests of Circuits (100 Hz, 1 Vpp, Sine Wave)
2.6.1. Connect to Power Supply
· Attach a blue banana-to-banana plug as shown below:
· Attach a yellow banana-to-banana plug as shown below:
· Attach a red banana-to-banana plug as shown below:
· Connect the circuit to the power supply by plugging the blue banana plug to the black (ground) post on the power supply:
· Plug in the yellow banana plug to the negative 15V post of the power supply:
· Plug in the red banana plug to the positive 15V post of the power supply:
2.6.2. Connect to Function Generator
· Attach a BNC-to-alligator-clips cable to the function generator:
· Make a ground connection on the breadboard with a green jump wire:
· Connect the black alligator clip to the green ground jump wire:
· Attach the red alligator clip to the orange input jump wire of your amplifier circuit (please pay attention to not to connect to the output of the amplifier):
· Attach a BNC-to-BNC cable to another post of the BNC connector on the function generator:
2.6.3. Connect to Oscilloscope
· Connect another end of the BNC-to-BNC cable to Channel #1 (CH 1) of the oscilloscope:
· Connect another BNC-to-alligator-clips cable to Channel #2 (CH 2) of the oscilloscope:
· Clip the black alligator clip to the ground of the circuit:
· Clip the red alligator clip to the output of the circuit:
2.6.4. Setup Function Generator
· Important: Please notice that in our labs, the direct current (DC) offset of the function generator must be set to zero if this has not already been done. If this is neglected and your function generator has a DC offset that is not zero, the measurements and results of this and future labs will not be correct and it may take a lot of time to troubleshoot to find out this problem. (Notice that when you turn on the function generator, the option “Offset” will be shown on the display.) For safe, you should check at the beginning of each lab to ensure that the offset is set to 0 to avoid problems in case senior design students use the equipment while the labs are not in session.
· Produce 100 Hz, 1Vpp sine wave with the function generator. The output of the function generator should be set to the “High Z” mode. (Please follow Section 1.5 “Use of Function Generator” in the classnote of Lab #1 for steps of set up if you forget how to do this.)
2.6.5. Setup Power Supply
· Please make sure that the green (ground) wires on the power supply and bread board are not losing each time you use the power supply for any of your labs. This is important since losing ground will make your circuit not to work and it may be difficult for you to figure out what goes wrong.
· Set the voltages of the power supply to +/- 15V and set the current limit to 35 mA (or 0.035 A) for both positive and negative powers to reduce the risk of burning out the breadboard or circuit components. (Please follow Section 1.6 “Use of Power Supply” in the classnote of Lab #1 for steps of set up if you forget how to do this.)
2.6.6. **Setup Oscilloscope to Measure Input and Output Signals
· First adjust the potentiometer to its maximum value of 20K Ohm (clockwise rotation will increase the value of the potentiometer):
· D2.004. (i) Measure the frequencies and “Peak-to-Peak” amplitudes of the input (Channel #1) and output (Channel #2) waveforms of the circuit with the oscilloscope. (The “Quick Meas” button and then “Select Source” in the menu allow you to display the results of selected channel.) (ii) Compare the measured gain of the amplifier with that calculated theoretically (R10=1.5K Ohm and R11=20K Ohm). (iii) Save the waveforms along with displayed frequencies and amplitudes to the computer desktop with IntuiLink in the .png file format for your report. (Please follow Section 1.4 “Use of Oscilloscope” in the classnote of Lab #1 for steps of set up if you forget how to do this. The steps to save oscilloscope screen with IntuiLink are given in Section 1.3 “Information” of Lab #1.)
· An example of the input (Channel #1) and output (Channel #2) signals of the circuit on the oscilloscope and on the computer screen via IntuiLink are shown below. The waveforms are saved to the computer desktop:
2.6.7. ** Study Influences of Input Amplitude and Power Supply Voltage
· Set the potentiometer to its maximum value (20k Ohm) and the power supply voltages to +/-15V (make sure that the current limit of 0.035A or 35mA is set) if they have not been set.
· D2.005. For your report: (i) Use the circuit that you have just built on the breadboard, change the amplitude of the input sine wave voltage with the function generator to 0.3Vpp, 0.5Vpp, 1.0Vpp, 1.5Vpp, 2.0Vpp, 2.5Vpp, 3.0Vpp, and 3.5Vpp, respectively, and then measure the corresponding output voltages (peak-to-peak values, or Vpp) with the oscilloscope and insert the results into Table D2.005 below. (ii) Plot the relationship between the gain (vertical axis) versus the input voltages (horizontal axis) using the Chart function of the MS Excel Spreadsheet. (iii) Please make conclusion from the chart and the output waveforms for what you have observed.
Table D2.005. Measurement Results When Power Supply Is +/15V.
|
Measurement |
(i) |
(ii) |
(iii) |
(iv) |
(v) |
(vi) |
(vii) |
(viii) |
|
Input |
0.3 Vpp |
0.5 Vpp |
1.0 Vpp |
1.5 Vpp |
2.0 Vpp |
2.5 Vpp |
3.0 Vpp |
3.5 Vpp |
|
Output |
|
|
|
|
|
|
|
|
|
Gain |
|
|
|
|
|
|
|
|
· Set the potentiometer to its maximum value (20k Ohm) and the power supply voltage to +/-12V (make sure that the current limit of 0.035A or 35mA is set) if they have not been set.
· D2.006. Repeat the experiment in D2.005 for your report. Table D2.006 is used for recording your data.
Table D2.006. Measurement Results When Power Supply Is +/12V.
|
Measurement |
(i) |
(ii) |
(iii) |
(iv) |
(v) |
(vi) |
(vii) |
(viii) |
|
Input |
0.3 Vpp |
0.5 Vpp |
1.0 Vpp |
1.5 Vpp |
2.0 Vpp |
2.5 Vpp |
3.0 Vpp |
3.5 Vpp |
|
Output |
|
|
|
|
|
|
|
|
|
Gain |
|
|
|
|
|
|
|
|
2.7. Develop an Inverting Amplifier and Test
· Using the knowledge of the circuit and the principle of the ideal OpAmp in Section 2.2, develop an inverting amplifier (output and the input signals have a different sign) using one OP37, two 1.5K Ohm resistors (similar to R9 and R10), and one 10K Ohm resistor (similar to R11 but is a fixed value resistor instead of potentiometer, your new circuit diagram should reflect this change too) so that the gain of the amplifier is equal to Gain = R11/R10 = -10/1.5 = -6.67, where the “-” sign means the input and the output has an opposite sign or phase.
· Set the voltages of the power supply to +/-15V (make sure that the current limit of 0.035A or 35mA is set) if they have not been set for your experiment.
· Produce a 100 Hz and 1Vpp sine wave with the function generator as the input of your circuit for experiment.
2.7.1. **Schematic
• D2.007. (i) Use MultiSim to draw a new diagram (keep the original diagram intact for later use) of the circuit that you designed (you may copy the previous circuit diagram as a starting point and then modify it to save time). (ii) Save the new circuit diagram with MultiSim (d2.007.ms13 file) and with the MS Photo Editor (d2.007.jpg file) for your report.
2.7.2. **Simulation
• D2.008. (i) Simulate the circuit that you have designed using the same sine wave source and parameters that you have used in Section 2.4 for AC analysis and (ii) save your simulation result as d2.008.jpg file with the Microsoft Photo Editor for your report.
2.7.3. **Experiment
· D2.009. (i) Construct a new circuit (do not disassemble the original circuit since it will be used in future labs) in the space that is in the same bank or column of the bread board (the 1st pin of the OpAmp is aligned with Row 30 of the bread board) under the existing circuit using the method given in Section 2.5. As mentioned before, you need to get one OP37, two 1.5K Ohm resistors, and one 10K Ohm resistor for the new circuit. The position of a completed inverting amplifier on the bread board is shown in the figure below (the wiring of the amplifier should follow the schematic of the circuit that you have designed and the figure is not meant for your wiring). (ii) Measure the frequencies and “Peak-to-Peak” amplitudes of the input (Channel #1) and output (Channel #2) waveforms of the circuit with the oscilloscope. (The “Quick Meas” button and then “Select Source” in the menu allow you to display the results of selected channel.) (iii) Compared the measured gain of the amplifier with that calculated theoretically (Gain = 6.67). (iv) Save the waveforms along with displayed frequencies and amplitudes to the computer desktop with IntuiLink in .png file format for your report. (Please follow Section 1.4 “Use of Oscilloscope” in the classnote of Lab #1 for steps of set up if you forget how to do this. The steps to save oscilloscope screen with IntuiLink are given in Section 1.3
“Information” of Lab #1.)
· The following figure shows where the inverting amplifier is located on the bread board (the wiring of the circuit of the inverting amplifier should follow the schematic of the circuit that you have designed, instead of that in the figure where the wiring is purposely blurred so that you can figure out how to design the circuit):
Location of
inverting
amplifier
2.8. Save Your Work
2.8.1. *Save Files with winSCP
• Use the “winSCP” program to: (i) save your files to your engineering account (notice that the native MultiSim program files that you have developed can be used as a starting point in the following labs and thus please make them accessible from the lab via WinSCP) and then (ii) delete the saved files from your desktop. Deleting from your computer desktop the files that you produced and transferred to your account would avoid confusing the groups that do the same lab using the same computer after you and also would prevent your results be misused by others. (Please follow Section 1.3.4 “Software to Use” in the classnote of Lab #1 for steps to use winSCP if you forget how to do this.)
2.8.2. *Save Your Constructed Circuits
• Save the bread board that contains your completed circuits for uses in future labs by putting it on the shelves at the back of the room after you have completed this lab. Please pin a piece of paper with your name(s) on the bread board if you have not already done so.
2.9. Turn off and Disconnect Equipment
• After completing the lab, turn off (i) power supply, (ii) function generator, (iii) multimeter, (iv) oscilloscope, (v) computer, and (vi) monitor if they have not been turned off already. Disconnect the cables that you have used and put them on the hangers at the back of the room.
2-2
2-97
class note/bioinst_lab_classnote_lab03.docx
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
LAB #1: USE OF INSTRUMENTS .........................................................................................................1-1
LAB #2: BASIC CIRCUITS DEVELOPMENT.....................................................................................1-1
LAB #3: LABVIEW PROGRAMMING .................................................................................................1 1 3.1. *GOAL(S) OF THIS LAB .....................................................................................................................1 1 3.1.1. Students to Do and Learn.........................................................................................................1 1 3.1.2. TA(s) to Do...............................................................................................................................1 1 3.2. INTRODUCTION .................................................................................................................................1 2 3.2.1. LabView Program ....................................................................................................................1 2 3.2.2. System Flowchart .....................................................................................................................1 4 3.2.2.1. Flowchart.......................................................................................................................................... 1 4 3.2.2.2. Example of LabView Program.......................................................................................................... 1 4 3.2.2.3. Explanation of the Flowchart............................................................................................................ 1 5 3.2.2.4. Principle of Heart-Rate Detection..................................................................................................... 1 6 3.2.3. Signal Digitization Device........................................................................................................1 7 3.3. LABVIEW PROGRAMMING...............................................................................................................1 10 3.3.1. Data Acquisition and Filters ..................................................................................................1 10 3.3.1.1. *Start LabView and Save Program................................................................................................. 1 10 3.3.1.2. The Canvas and While Loop........................................................................................................... 1 13 3.3.1.3. Add Data Acquisition Device ......................................................................................................... 1 17 3.3.1.4. Configure Data Acquisition Device................................................................................................ 1 21 3.3.1.5. Add and Setup a Display Device .................................................................................................... 1 31 3.3.1.6. Add Band-Stop Filter...................................................................................................................... 1 38 3.3.1.7. Add Second Display Panel and Configure It................................................................................... 1 50 3.3.1.8. Add Low-Pass Filter....................................................................................................................... 1 53 3.3.1.9. Add Third Display and Configure It............................................................................................... 1 57 3.3.2. Heart Rate Detection..............................................................................................................1 59 3.3.2.1. Add Waveform Min/Max Device ................................................................................................... 1 59 3.3.2.2. Add “Get Waveform Components” Icon ........................................................................................ 1 64 3.3.2.3. Add Waveform Peak Detector........................................................................................................ 1 67 3.3.2.4. Add Numeric Operations................................................................................................................ 1 71 3.3.2.5. Add Two Index Arrays ................................................................................................................... 1 77 3.3.2.6. Add More Numerical Operations.................................................................................................... 1 81 3.3.2.7. **Complete the LabView Program by Including Filters................................................................. 1 91 3.3.2.8. Arrange Front Panel........................................................................................................................ 1 93 3.4. TEST WITH SINE WAVE SIGNALS (1 HZ AND 100 HZ AT 1 VPP).......................................................1 97 3.4.1. Connect Function Generator to Digitizer Device...................................................................1 97 3.4.2. **Test with Use 1 Hz, 1 Vpp Sine Wave Signal......................................................................1 98 3.4.3. **Test with Use 100 Hz, 1 Vpp Sine Wave Signal................................................................1 100 3.4.4. **The Sampling Process (1 Hz, 1 Vpp, Sine Wave) .............................................................1 101 3.5. **TEST WITH PSEUDO ECG SIGNAL (1 HZ, 1 VPP) .......................................................................1 102 3.6. ADD AN LED WARNING LIGHT.....................................................................................................1 103 3.6.1. **Design Program ...............................................................................................................1 103 3.6.2. **Test with Pseudo ECG Signals (1 Hz and 2 Hz at 1 Vpp) ................................................1 104 3.7. *SAVE FILES WITH WINSCP..........................................................................................................1 104 3.8. TURN OFF AND DISCONNECT EQUIPMENT .....................................................................................1 105
ii
Lab #3: LabView Programming
3.1. *Goal(s) of This Lab
3.1.1. Students to Do and Learn
· The goal of this lab is to learn the LabView programming (visual programming) to produce virtual systems that can accomplish complicated test and measurement tasks.
· Sve your native LabView .vi files for you to process signals in your future labs.
· Save the screen-captured results of sine wave and pseudo ECG signals of LabView in .jpg format with Microsoft Photo Editor.
· Study sampling process and design LabView heart rate warning system.
3.1.2. TA(s) to Do
· TA(s) (Task #1): Do Lab First: TAs should complete the same lab before students start their labs so that TAs can anticipate the questions from the students and can help students better.
· TA(s) (Task #2): Guidance at Beginning of Lab: TAs should give a brief guide to students at the beginning of each lab to address lab specific issues such as identifying cables and their leads, and others.
· TA(s) (Task #3): Clean Up Files: TAs should make sure students have copied their saved files and then deleted the copied files from the computers before they leave the lab. Any files saved by students but have not been deleted after students leave should be deleted by TAs if students could not delete them for some reason. This is important to avoid confusing different groups of students and clustering the computers.
· TA(s) (Task #4): Check Student Files: TAs should check all the plots and figures saved to files by students. If there are some problems with the files, students may need to make corrections.
3.2. Introduction
3.2.1. LabView Program
· Note #1: The LabView software program is updated periodically. Therefore, (i) please start the LabView software from the computer desktop or the Microsoft Short Cut Bar on the upper-right corner of your computer screen (do not start it from the Windows “Start” menu on the lower left corner, where there is a copy of old program); (ii) the screen shots of LabView programming steps are for illustration purpose only and they may be slightly different from what you see in the latest version of LabView software.
· Note #2: Some of useful LabView keyboard and mouse shortcuts are as follows:
· (1) Ctr+E: Open Block Diagram if it has not already been opened.
· (2) Right Click on Front Panel: Opens Controls.
· (3) Right Click on Block Diagram: Opens Function Palette to add VIs.
· (4) Ctr+T: Tiles Front Panel and Block Diagram so that you can view both without one blocking the other.
· (5) Ctr+H: Opens the help context window.
· (6) Ctr+B: Removes Broken wires in the Block Diagram.
· (7) Shift+Right Click of the Mouse to opens a help submenu: In the submenu there are (i) a hand (used to rename certain items), (ii) a cursor arrow (allows the user to move LabView controls/indicators), (iii) an A (the letter A represents editing text, which allows you to enter free texts), and (iv) a wire spool (this allows the user to draw "wires" to connect controls and other items) on the next line.
· (8) For LabView 2014, do the following to find the waveform graph: Right Click on Front Panel -> Express -> Graph Indicators -> Graph. To return to previous menu, click LGraphIndicators on upper-left corner on the Controls menu.
· Note #3: A PDF tutorial of LabView contains the basics of LabView. It was sent to students with this classnote and it should be read before the corresponding class and lab. It should also be used to expand your virtual system. More information about the LabView can be found from the National Instruments website at (“Getting Started with LabVIEW”):
http://digital.ni.com/manuals.nsf/websearch/EC6EF8DE9CB98
742862576F7006B0E1E
· The LabView software is produced by a company called National Instruments (NI) and will also be used in other labs later in the course. The LabView software has been briefly introduced in Section 1.3.4 “Software to Use” in Lab #1.
· The LabView programming is through icons, each of which is a program that accomplishes a specific task and thus it simplifies the conventional programming tasks such as MatLab, Fortran, or C. The icons are interconnected to make a system or instrument. The parameters of each icon can be set for a specific application for flexibility. Each icon sometimes is called a virtual instrument (VI).
· In our labs, the LabView software is used to make a system that can detect the heart rate.
3.2.2. System Flowchart
3.2.2.1. Flowchart
• A flowchart of the LabView program that we will develop is given below:
3.2.2.2. Example of LabView Program
• An example of a completed LabView program according to the flowchart above is given below. The meanings of some of the processing steps are given in the light yellow commenting boxes.
3.2.2.3. Explanation of the Flowchart
• The flowchart is explained as follows:
· A. Real-Rime Digitized ECG Data Stream: Get real-time digitized ECG data stream or other signals from the NI USB-6009 device.
· B. Bandstop Filter: This is a filter to remove the 60 Hz noise that may be strong due to the 60 Hz frequency used in the power line. The lower cut-off frequency is 58 Hz and higher cut-off frequency is 62 Hz. The filter order selected is 5. A filter of a higher order will produce a steeper transition between the pass band and stop band of its frequency response but 5 is adequate here; Depending on the table you are sitting, this noise may or may not be obvious. If the noise is low, this filter would have little effect in terms of removing the noise.
· C. Lowpass Filter: This filter will remove unwanted highfrequency noise components. The cut-off frequency is set to 100 Hz (the actual ECG signal has frequency components less than 100 Hz). The filter order selected is also 5. A filter of a higher order will produce a steeper transition between the pass band and stop band of its frequency response but 5 is adequate here; If the ECG signal is produced by a function generator, there will be little noise that has frequencies higher than 100 Hz and thus the filter would have little effect too. For ECG signal from the human body, the effect of the filter will be noticeable.
· D. Determine Max Value: To count heart rate from the ECG signals, it is necessary to determine the maximum value of the signals in the digital samples of the computer memory for use in subsequent process in setting a threshold.
· E. Set Threshold to 80% of Maximum: Set the threshold to 80% of maximum for peak detection.
· F. Peak Detection: The peak detection is used to detect all of the peaks in the data currently held in the memory of the device.
|
HeartRate (beats/min) = 60/Peak_Interval |
· G. Determine Heart Rate in Beats per Minute: Use the formula: to calculate heart rate (beats per minutes or BPM). The Peak Interval is the time duration between two consecutive peaks measured in seconds.
· H. Display Heart Rate: Display the heart rate value in an indicator on the Front Panel.
3.2.2.4. Principle of Heart-Rate Detection
• To calculate the heart rate BPM (beats per minute), the filtered signal passes through the “Waveform Min Max” icon to find the maximum value of the data stored in the memory at any given time. Then, the signal is passed on to the “Waveform Peak Detection” icon to compare it with a threshold that is set at 0.8 of the maximum value of the data. If a data is larger or equal to the threshold, a peak is found. The position (or index value) of the peak (marked as “0”) is stored in an “Index Array”. When a second peak (marked as “1”) is found, the position of that peak is stored in the second “Index Array”. After subtracting the values between the second and the first Index Arrays, the number of samples between the two peaks is calculated. Multiplying the number of samples with the interval between two consecutive samples “dt” obtained with the “Get Waveform Components” icon, one gets the time interval between the two peaks. Dividing 60 by the time interval, one obtains the heart rate in BPM.
3.2.3. Signal Digitization Device
· To use LabView program as an instrument for processing real world signals such as the human ECG signals, it is necessary to digitize the signal and store the digitized signal in a computer. NI USB-6009 is such a device that is produced by National Instruments (NI) and is used for signal digitization in our labs.
· NI USB-6009 contains a multi-channel 14-bit (in differential mode) or 13-bit (in single-ended mode that we will use) analogto-digital (A/D) converter. Its maximum sampling rate is 48 kilo-samples per second. It also has 12 digital input/output pins and can be used as a 32-bit counter. Two analog output channels at 12-bits with 150-Hz update rate are also available. It has a full-speed (12 Mbits/s) USB connection to the computer.
· The NI USB-6009 device is on the top of the computer (the input signal should not be lower than -10V or higher than 10V to avoid the signals being clipped or saturated at these limits and thus distorted):
· Signal input wires have been attached to the device with a green wire for ground (GND) and a yellow wire for an analog signal (AI1) input:
· Views of the device in advertisements:
· Pin assignment of the NI USB-6009 device is given below. We will use Pins #4 (GND) and #5 (AI1) for our experiments:
3.3. LabView Programming
• Use LabView programming to construct a system that can measure the heart rate from an electrocardiogram (ECG) signal.
3.3.1. Data Acquisition and Filters
3.3.1.1. *Start LabView and Save Program
· Note: As mentioned before, due to software updates, the figures below may look different from what you will see on your computer screen.
· (i) Open the LabView program by double clicking it on the computer desktop and then: “Create Project” -> “Blank VI”. (ii) If the Block Diagram panel is not opened, use “Ctr+E” to bring it up. (iii) If the Control Panel is not shown, right click your mouse on the Front Panel to bring it to the front:
· Save the blank LabView program above to your computer desktop in the file name “d3.001.vi” with “Save As …” from either Front Panel or Block Diagram (the suffix “.vi” is added automatically by the program) to avoid losing your LabView program while you are working on it:
3.3.1.2. The Canvas and While Loop
· The Block Diagram is a LabView work space (canvas) to develop your LabView program and it looks like below:
· Right click of your mouse on the canvas, collapse “Express” and other menus if they are not collapsed, click on the downward double arrows to bring in more menus, and then select the “Programming” menu that is highlighted with an underline below:
· Select “Structures” submenu and then the “While Loop” function:
· Draw a box as the “While Loop” on the canvas (Block Diagram) for LabView programming:
3.3.1.3. Add Data Acquisition Device
· Collapsing the “Structures” submenu and the “Programming” menu:
· Expanding the “Measurement I/O” menu and select “NIDAQmx – Data Acquisition” submenu:
· Select “DAQ Assistant” icon:
· Place the “DAQ Assistant” icon (virtual instrument or VI) within the “While Loop” box with your left mouse button (a configuration window will pop-up automatically):
3.3.1.4. Configure Data Acquisition Device
· Start to configure the “DAQ Assistant” icon:
· Click on “Acquire Signals”:
· Click on “Analog Input”:
· Select “Voltage”:
· Select “ai1” as your input on the device Dev1 (USB-6009):
· Click “Finish” to continue:
· Use default “Signal Input Range” (+/-10 V) and default sampling rate “Rate (Hz)” (the default is 1 kHz sampling rate, which means that 1000 digital samples will be acquired and saved to computer memory by the computer in each second):
· Select “RSE” (single-ended applications) in “Terminal Configuration”:
· Change “Sample to Read” from “1k” to “3k” samples (“k” here again means “1000” and thus 3k means 3000 samples will be read and saved to computer memory for your displayed waveforms). Given the sampling rate is set to 1k, which means there will be 1000 samples in one second, 3000 samples will show waveforms that will last for 3 seconds. When the memory is full, earlier data are pushed out while new data are acquired to keep the maximum number of data at 3000:
· Click “OK”:
· The parameters are now set for the “DAQ Assistant” icon:
3.3.1.5. Add and Setup a Display Device
· To display signals acquired by the data acquisition device, it is necessary to add a display device (similar to an oscilloscope that you have used) into the LabView program.
· To add the display device, bring the Front Panel of the virtual instrument to front through the dropdown menu “Windows” on top of the canvas or click on the Front Panel itself and then right click with your mouse to bring up the “Controls” menu if it is not there already:
· Click on “Express” on the “Controls” menus to expand it:
· • Select “Graph” from the “Graph Indicators” group and then place it on the front panel with the left button of your mouse:
· Switch to the Block Diagram window (canvas) from the “Windows” drop menu or click on the Block Diagram itself, you will see the “Waveform Graph” icon inside the “while loop” box:
· Make a connection between the data output of “DAQ
Assistant” to the input of the “Graph”:
· Right click on the “Loop Condition” on the lower right corner of the loop box:
· Select “Create Control”:
· This added a stop function to stop the loop of the program when needed:
· Save your intermediate program to avoid losing your work so far by “Ctr+S” or “File” -> “Save”:
· Configure your display device on the front panel by dragging it to appropriate position and change the label to “Original Signal” by double clicking on it:
3.3.1.6. Add Band-Stop Filter
· Collapse the “Measurement I/O” menu and select “Signal Processing” menu:
· Select the “Waveform Conditioning” submenu and then select “Filter” icon that is a filter prototype in the library of icons:
· Place the “Filter” prototype icon on canvas (a filter configuration menu will popup automatically):
· Specify the values of filter parameters (the waveforms displayed are examples only):
· Select filter type as “Band-stop”:
· The following band-stop filter that we are going to build is used to remove 60 Hz frequency component in the signals acquired. 60 Hz is the standard frequency of the power line in United States and thus it could cause interferences to the circuits you are going to build in future labs. To build the filter, we need to specify the lower- and higher cutoff frequencies of the filter since filters that remove only exactly one frequency is not realizable.
· Change the lower cutoff frequency from default 100 Hz to 58 Hz.
· Change the higher cutoff frequency from default 400 Hz to 62 Hz (this means that the filter will remove signals that have frequencies between 58 to 62 Hz, and pass signals that are out of this frequency ranges):
· Keep the default filter topology as “Butterworth”
(“Butterworth” is the name of one type of filter):
· Change the order of the filter from 3 to 5 so that the filter will cutoff less signals in frequencies other than those between 58 to 62 Hz.
· A higher-order filter has a steeper transition between the pass and stop frequency bands in its frequency response but may cause some distortions to the signals due to ripples in the passband and would complicate circuits when the filter is realized using hardware, although an ideal filter should have an infinitely high order. Select order of 5 is a good compromise for our purpose.
· Click “OK” after the parameters are set:
· Connect the input of your filter to the output of the signal source “DAQ Assistant” icon:
3.3.1.7. Add Second Display Panel and Configure It
· Switch to the front panel first and then add the second display panel to show filtered result of this band-stop filter. Use the same method to place the display panel as you have done before:
· The new graph also appears in your canvas. Change the label of the 2nd display panel to “Siganl After Band-Stop”:
· Connect the output of the band-stop filter to the second display graph that you have just produced and adjust the position of the graph icon by dragging it with your left mouse button:
· Change the name of the filter from “Filter” to “Band-Stop” filter:
3.3.1.8. Add Low-Pass Filter
· Add a low-pass filter to remove high frequency components of signals that may contain only noises when your signals have only low-frequency components (frequency components of ECG signals are less than 100 Hz).
· Select the “Filter” icon from the “Waveform Conditioning” submenu in the “Signal Processing” menu as before:
· Setup parameters of this filter by changing the filter order from 3 to 5 to have a steeper transition from pass to stop band of its frequency response.
· A higher-order filter has a steeper transition between the pass and stop frequency bands in its frequency response but may cause some distortions to the signals due to ripples in the passband and would complicate circuits when the filter is realized using hardware, although an ideal filter should have an infinitely high order. Select order of 5 is a good compromise for our purpose.
· Keep other parameters as default values, i.e., “Filtering Type” is “Lowpass”, “Cutoff Frequency (Hz)” is “100”, and “Topology” is “Butterworth”:
· Connect the low-pass filter to the output of the band-pass filter and change the name of the filter to “Low-Pass”:
3.3.1.9. Add Third Display and Configure It
· Switch to the front panel with the dropdown menu “Windows” and then add the third display to show the filtering result of both of the band-pass and low-pass filters. Use the same method to get the display panels as you have done before:
· Change the position of the graph on your front panel and change the label of the third display to “Signal After LowPass”:
· Reposition the display panel and then connect the it to the output of the low-pass filter:
3.3.2. Heart Rate Detection
• After get the signal and filter out the 60 Hz power-line interference and high-frequency noises, the cleaned signal can be used to get heart rate with the following detection programs according to the system flowchart in Section 3.2 above.
3.3.2.1. Add Waveform Min/Max Device
· Collapse the “Waveform Conditioning” submenu in the “Signal Processing” menu:
· Expand the “Programming” menu:
· Expand the “Waveform” submenu and then the “Analog Waveform” group. Select the “Waveform Min Max” icon to detect the minima or maxima of the signals:
· Place the “Waveform Min Max” icon into your canvas in the loop box:
· Connect the “data” output of data acquisition device icon to the “Waveform In” input of the “Waveform Min Max” icon:
3.3.2.2. Add “Get Waveform Components” Icon
· Select the “Get Waveform Components” icon from the “Analog Waveform” group in the “Waveform” submenu under the “Programming” menu (this will allow you to get the time interval between two adjacent samples, i.e., dt or delta t, where t means time):
· Place the “Get Waveform Components” icon into the canvas:
· Left click on “Y” on the “Get Waveform Components” icon to bring up a menu and then select “dt” (time interval) as the parameter:
· Connect “Waveform Out” output from “Waveform Min Max” icon to the “Waveform” input of the “Get Waveform Components” icon:
3.3.2.3. Add Waveform Peak Detector
· Select the “Waveform Monitoring” from the “Waveform Measurements” group under the “Analog Waveform” group in the “Waveform” submenu under the “Programming” menu:
· Then, select the “Waveform Peak Detection” icon:
· Place the “Waveform Peak Detection” icon into the canvas:
· Connect the “Waveform Out” output of “Waveform Min Max” icon to the “Signal In” input of the “Waveform Peak Detection” icon:
3.3.2.4. Add Numeric Operations
· Click on “Programming” to select the “Programming” menu and then select “Numeric” submenu:
· Select “Multiply” operation icon from the submenu:
· Place the “Multiply” icon at an appropriate position on the canvas:
· Place the mouse on the “Waveform Min Max” icon and move around to show all available inputs/outputs of the icon:
· Connect the “Y Max” output of the “Waveform Min Max” icon to the “X” input of the “Multiply” icon:
· Show available inputs/outputs of the “Multiply” icon by placing the mouse on it:
· Create a constant value at the “Y” input of the “Multiply” icon by right clicking on the “Y” input and then go to “Create” -> “Constant”. Then, set the constant to 0.8 by double clicking on the constant to select it and change the value:
· Connect the “X*Y” output of the “Multiply” icon to the “Threshold” input of the “Waveform Peak Detection” icon:
3.3.2.5. Add Two Index Arrays
· Collapse the “Numeric” submenu and then open the “Array” submenu:
· Select the “Index Array” icon from the submenu:
· Place two “Index Array” icons on the canvas:
· Connect the “Locations” output of the “Waveform Peak Detection” icon to the “Array” inputs of the two “Index Array” icons:
· Create constant values at the “Index” inputs of the top and bottom “Index Array” icons by right clicking on the “Index” inputs and then go to “Create” -> “Constant” for each of the “Index Array” icons. Then set the constants to 1 and 0 for the top and the bottom “Index Array” icons respectively:
3.3.2.6. Add More Numerical Operations
· Collapse the “Array” submenu and then select the “Numeric” submenu from the “Programming” menu:
· Select “Subtract” icon from the submenu:
· Place the “Subtract” icon on the canvas:
· Connect the “Element” outputs of the two “Index Array” icons on the top and bottom to the “X” and “Y” inputs of the “Subtract” icon respectively:
· Select the “Multiply” icon from the “Numeric” submenu under the “Programming” menu:
· Place the “Multiply” icon on the canvas and then connect the “X-Y” output of the “Subtract” icon to the “Y” input of the “Multiply” icon:
· Connect the “dt” output of the “Get Waveform Components” icon to the “X” input of the “Multiply” icon:
· Select the “Divide” icon from the “Numeric” submenu under the “Programming” menu:
· Place the “Divide” icon on the canvas and then connect the “X*Y” output of the “Multiply” icon to the “Y” input of the “Divide” icon:
· Create a constant value at the “X” input of the “Divide” icon by right clicking on the “X” input and then go to “Create” -> “Constant”. Then, set the constant to 60 by double clicking on the constant to select it and change the value:
· Right click on the “X/Y” output of the “Divide” icon and then select “Indicator” through “Create”:
· Change the name of the “Indicator” to “BPM” that is short for “Beats per Minutes” to show the heart rate:
· Connect the “Stop (T)” input of the “DAQ Assistant” icon to the “Loop Condition” output at the bottom right corner:
3.3.2.7. **Complete the LabView Program by Including Filters
· Remove an existing connection by right clicking on the wire to be removed and then select “Delete Wire Branch”:
· Reconnect the “Waveform In” input of the “Waveform Min
Max” icon to the “Filtered Signal” output of the low-pass filter, change labels, adding comments, and rearrange VIs and connections:
· D3.001. (i) Save the completed LabView program above to your desktop in the file name “d3.001.vi” with “Save” from either Front Panel or Block Diagram so that your program can be modified later in the lab computer without starting over again. (ii) Also save the LabView program using the screen capture with the Print Screen key (or Alt + Print Screen) on the keyboard and the MS Photo Editor into .jpg format with the file name d3.001.jpg for your report. (The Microsoft Photo Editor was introduced in the classnote of Lab #1 and the method to use it to save computer screen images is in Section
2.3 of the classnote of Lab #2.)
3.3.2.8. Arrange Front Panel
· Switch to the front panel and then configure your display graphs and the “BPM” (beats per minute) indicator:
· Relocate the “BPM” indicator to the bottom of the graphs:
· Change the font size of the “BPM” indicator box and “Stop” box to a bigger one such as 24 using the font dropdown menu of the Front Panel:
· Change the numerical representation of the indicator number from double long (DBL) format to a 32-bit integer (I32) by right clicking on the indicator and then go to “Representation” > “I32”:
3.4. Test with Sine Wave Signals (1 Hz and 100 Hz at
1 Vpp)
3.4.1. Connect Function Generator to Digitizer Device
· Attach a BNC-to-Alligator-Clips cable to the function generator:
· Hook the alligator clips to the input of the NI USB-6009 digitizing device (make sure the black is connected to green and red is to yellow):
· Turn on your function generator:
3.4.2. **Test with Use 1 Hz, 1 Vpp Sine Wave Signal
· Produce 1 Hz and 1Vpp sine wave with the function generator. The output of the function generator should be set to the “High Z” mode. Make sure the DC Offset is set to zero. (Please follow Section 1.5 “Use of Function Generator” in the classnote of Lab
#1 for steps of set up if you forget how to do this.)
· Enable the output of the function generator so that the sine wave appears at the output of the function generator:
· Click the thick arrow near the top of the Front Panel on your left to run the LabView program that you have made. The 1 Hz sine wave is acquired and displayed when the program is running (since you have set 3000 samples at 1000 samples per second when you configure the data acquisition device, it means that the waveform display window represents a total of 3 seconds in the horizontal direction, i.e., display exactly three periods for 1 Hz or a 1 cycle per second signal):
· D3.002. Save your result on the Front Panel as a .jpg file with the Microsoft Photo Editor in the procedure described in previous labs for your report.
3.4.3. **Test with Use 100 Hz, 1 Vpp Sine Wave Signal
· Produce 100 Hz, 1Vpp sine wave with the function generator. The output of the function generator should be set to the “High Z” mode. Make sure the DC Offset is set to zero. (Notice that the frequency is changed from 1 Hz above.) (Please follow Section 1.5 “Use of Function Generator” in the classnote of Lab
#1 for steps of set up if you forget how to do this.)
· The 100Hz sine wave is acquired and displayed when the program is running:
· Click “Stop” to stop running the LabView program (it may take a few seconds to fully stop the program):
· D3.003. (i) Save your result as a .jpg file with the Microsoft Photo Editor in the procedure described in previous labs for your report. (ii) If you see the amplitude of the third display is reduced, please comment on the possible reason.
3.4.4. **The Sampling Process (1 Hz, 1 Vpp, Sine Wave)
· D3.004. (i) Set the function generator to produce a sine wave of 1 Hz frequency and 1Vpp amplitude. (ii) Change the number of “Sample to Read” in the configuration of “DAQ Assistant” to “1k” and “5k” respectively and then compare the differences of the results with the original 3k “Sample to Read” setting above. (iii) Save your result in the Front Panel as .jpg files with the Microsoft Photo Editor in the procedure described in previous labs and do analyses for your report. (iv) What differences in displays do you see? (v) What are possible reasons that the heart rate display is so high?
· D3.005. (i) Change the “Sample to Read” back to 3k. (ii) Change the sampling rate “Rate (Hz)” in the configuration of “DAQ Assistant” to “0.5k” and “3k” respectively and then compare the differences of the results in the Front Panel with the original 1k “Rate (Hz)” setting. (iii) Save your results as a .jpg files with the Microsoft Photo Editor in the procedure described in previous labs and do analyses for your report.
3.5. **Test with Pseudo ECG Signal (1 Hz, 1 Vpp)
· Change the number of “Sample to Read” and the sampling rate “Rate (Hz)” in the configuration of “DAQ Assistant” back to 3k and 1k respectively.
· Produce 1 Hz and 1Vpp pseudo ECG signal with the function generator. The output of the function generator should be set to the “High Z” mode. Make sure the DC Offset is set to zero. (Please follow Section 1.5 “Use of Function Generator” in the classnote of Lab #1 for steps of set up if you forget how to do this.)
· Run the LabView program by clicking on the thick arrow near the top-left of your front panel. The pseudo ECG signal and the heart rate of 60 bpm should be displayed on the front panel of your virtual instrument if you have a correct program and have set up the function generator correctly (notice that the pseudo ECG signal has a 1 Hz frequency and thus three period signals should be displayed) (also notice that since the pseudo ECG signal from the function generator is clean without the 60 Hz interference signal from the power line and without the highfrequency noise, there is little effect of the filters on the pseudo ECG signal, as evident from the waveforms in the three monitors, however, this will change when you process real ECG signals from your body in the next two labs):
· Stop your program by click on the lower-left “STOP” button.
· D3.006. (i) Save your result as a .jpg file with the Microsoft Photo Editor in the procedure described in previous labs for your report. (ii) If you see the amplitude of the third display is reduced, please comment on the possible reason.
3.6. Add an LED Warning Light
3.6.1. **Design Program
• D3.007. (i) Add a warning feature for a high heart rate to your LabView program developed above, where the color of an LED indicator is changed from green to red when the heart rate exceeds 100 beats per minute (BPM) (see the file
“bioinst_lab_classnote_lab03_labview_tutorial.pdf” for design ideas) (make the LED light big enough so that the warning can be clearly seen). (ii) Save your LabView program as d3.007.vi with LabView software and d3.007.jpg with the Microsoft Photo Editor in the procedure described in previous labs for your report. These file will be used in future labs.
3.6.2. **Test with Pseudo ECG Signals (1 Hz and 2 Hz at 1 Vpp)
• D3.008. (i) Change the frequency of pseudo ECG signal to 2 Hz to see the change of heart rate “BPM” and behavior of the color change of your LED warning light. For a correct design, you should see that the color of LED changes from green to red when you change the frequency from 1 Hz to 2 Hz. (ii) Save your results (both 1 Hz and 2 Hz) on Front Panel as files d3.008_1hz.jpg and d3.008_2hz.jpg respectively with the Microsoft Photo Editor in the procedure described in previous labs for your report.
3.7. *Save Files with winSCP
• Use the “winSCP” program to: (i) save both your screencaptured files and the native LabView program files (notice that the native LabView program files that you have developed will be used to process the real ECG signals from your body in the following labs and thus please make them accessible from the lab via WinSCP) to your engineering account and then (ii) delete the saved files from your desktop. Deleting from your computer desktop the files that you produced and transferred to your account would avoid confusing the groups that do the same lab using the same computer after you and also would prevent your results be misused by others. (Please follow Section 1.3.4 “Software to Use” in the classnote of Lab #1 for steps to use winSCP if you forget how to do this.)
3.8. Turn off and Disconnect Equipment
• After completing the lab, turn off (i) power supply, (ii) function generator, (iii) multimeter, (iv) oscilloscope, (v) computer, and (vi) monitor if they have not been turned off already. Disconnect the cables that you have used and put them on the hangers at the back of the room.
1-2
1-109
class note/bioinst_lab_classnote_lab04_.docx
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
LAB #1: USE OF INSTRUMENTS .........................................................................................................1-1
LAB #2: BASIC CIRCUITS DEVELOPMENT.....................................................................................2-1
LAB #3: LABVIEW PROGRAMMING .................................................................................................3-1
LAB #4: ECG AMPLIFIER – PART I....................................................................................................4-1 4.1. *GOAL(S) OF THIS LAB .....................................................................................................................4-1
4.1.1. Students to Do and Learn.........................................................................................................4-1 4.1.2. TA(s) to Do...............................................................................................................................4-1 4.2. PRINCIPLE OF CIRCUITS.....................................................................................................................4-2
4.2.1. Circuit Diagram.......................................................................................................................4-2 4.2.2. Gain of Circuits........................................................................................................................4-3 4.2.3. High-Pass Filters (First Order) ...............................................................................................4-5 4.3. **SCHEMATICS OF CIRCUITS.............................................................................................................4-6 4.4. **SIMULATION OF CIRCUITS.............................................................................................................4-7 4.5. STUDY CIRCUIT WITH ONE OF INPUTS GROUNDED............................................................................4-9
4.5.1. **Calculation of Gain..............................................................................................................4-9 4.5.2. **Simulation...........................................................................................................................4-10
4.6. STUDY INFLUENCES OF CAPACITORS BY SIMULATION ....................................................................4-11
4.6.1. **Remove C1..........................................................................................................................4-11 4.6.2. **Remove C2..........................................................................................................................4-12 4.6.3. **Remove Both C1 and C2.....................................................................................................4-12 4.6.4. Recover Both C1 and C2........................................................................................................4-13
4.7. **STUDY REJECTION OF COMMON-MODE SIGNALS BY SIMULATION .............................................4-13
4.8. CONSTRUCTION OF CIRCUITS..........................................................................................................4-14
4.8.1. Disassemble Inverting Amplifier of Lab #2............................................................................4-15 4.8.2. Place Operational Amplifiers.................................................................................................4-17 4.8.3. Place Wires and Other Components ......................................................................................4-20 4.8.4. Attach Signal Wires................................................................................................................4-21 4.8.5. A Sample Circuit ....................................................................................................................4-23 4.9. TESTS OF CIRCUITS WITH FUNCTION GENERATOR ..........................................................................4-23
4.9.1. Sine Wave (100 Hz, 20 mVpp)................................................................................................4-23 4.9.1.1. Connect to Power Supply................................................................................................................ 4-23 4.9.1.2. Connect to Function Generator and Ground One Input................................................................... 4-25 4.9.1.3. Connect to Oscilloscope.................................................................................................................. 4-28
4.9.1.4. Setup Function Generator ............................................................................................................... 4-30
4.9.1.5. Setup Power Supply........................................................................................................................ 4-31 4.9.1.6. **Setup Oscilloscope and Display Sine Wave Signal..................................................................... 4-31
4.9.2. Pseudo ECG Signal (1 Hz, 20 mVpp).....................................................................................4-32
4.9.2.1. Setup Function Generator ............................................................................................................... 4-32
4.9.2.2. **Setup Oscilloscope and Display Pseudo ECG Signal ................................................................. 4-32 4.9.2.3. **Study the Influence of Capacitors on Pseudo ECG Signal.......................................................... 4-33 4.9.2.4. Restore both Capacitors.................................................................................................................. 4-34
4.9.3. Turn off Function Generator and Disconnect Cables ............................................................4-34 4.10. TEST CIRCUITS ON HUMAN ECG SIGNALS....................................................................................4-34
4.10.1. ECG Electrodes....................................................................................................................4-34 4.10.1.1. Notes............................................................................................................................................. 4-34
4.10.1.2. Labels of Electrodes...................................................................................................................... 4-35
4.10.1.3. Electrodes ..................................................................................................................................... 4-37
4.10.1.4. Placement of Electrodes................................................................................................................ 4-39
4.10.2. Test on ECG Signal..............................................................................................................4-40 4.10.2.1. Recover Differential Setting ......................................................................................................... 4-40 4.10.2.2. Attach Cables to Circuit................................................................................................................ 4-41
4.10.2.3. Connect to Electrodes ................................................................................................................... 4-43
4.10.2.4. Enable Output of Power Supplies ................................................................................................. 4-45 4.10.2.5. **Setup Oscilloscope and Display ECG Signal............................................................................ 4-46 4.11. SAVE YOUR WORK .......................................................................................................................4-46
4.11.1. *Save Files with winSCP......................................................................................................4-46
4.11.2. *Save Your Constructed Circuits .........................................................................................4-47
ii
4.12. TURN OFF AND DISCONNECT EQUIPMENT .....................................................................................4-47
iii
BIOE 4140 Biomedical Instrumentation Jian-yu Lu, Professor, Instructor
Lab #4: ECG Amplifier – Part I
4.1. *Goal(s) of This Lab
4.1.1. Students to Do and Learn
· This is the first part of an electrocardiogram (ECG) system. The goal of this lab is to: (i) draw a circuit diagram of a differential amplifier that consists of three operation amplifiers with MultiSim, (ii) calculate the gain of the circuit, (iii) simulate the circuit with MultiSim in various conditions, (iv) construct the circuit, and then (v) test the circuit on various signals.
· Students should learn: (i) how to calculate gains of the circuit consisting of ideal operation amplifiers, (ii) how to develop a differential amplifier through schematic, simulation, bread board prototyping, and test the circuit.
· The resulting circuits will be used in the second part of the ECG system in the next lab. Please save your constructed circuit on the shelf at the back of the room with your names pinned on the breadboard with a piece of jump wire.
· Save your schematics as both native MultiSim files and .jpg files.
· Save your simulation results as .jpg files.
· Save your computer captured oscilloscope files (test results with both sine wave and the ECG signals from function generator and human body) as .png files.
4.1.2. TA(s) to Do
· TA(s) (Task #1): Do Lab First: TAs should complete the same lab before students start their labs so that TAs can anticipate the questions from the students and can help students better.
· TA(s) (Task #2): Guidance at Beginning of Lab: TAs should give a brief guide to students at the beginning of each lab to address lab specific issues such as identifying cables and their leads, and others.
· TA(s) (Task #3): Clean Up Files: TAs should make sure students have copied their saved files and then deleted the copied files from the computers before they leave the lab. Any files saved by students but have not been deleted after students leave should be deleted by TAs if students could not delete them for some reason. This is important to avoid confusing different groups of students and clustering the computers.
· TA(s) (Task #4): Check Student Files: TAs should check all of the results (schematics, simulations, circuit construction, and tests with both sine wave and ECG signals) saved to files by students. If there are some problems with the files, students may need to make corrections.
· TA(s) (Task #5): Check Circuits: TAs should check the neatness of the circuit constructed.
4.2. Principle of Circuits
4.2.1. Circuit Diagram
· The schematic of the first part of the ECG circuit to be built is given below. This is a differential amplifier and the differential inputs (Vin_1 and Vin_2 ) allow a cancellation of common-mode noise, i.e., the noise signals presented on both inputs at the same time. The amplifier consists of three operational amplifiers (U1, U2, and U3) with two amplification stages (U1 and U2 form the first amplification state and U3 forms the second):
· The details of the operational amplifier (OP37), including the pin out and data sheet information, can be found in Section 2.2 of Lab #2.
4.2.2. Gain of Circuits
· The following is a derivation of the gain of the amplifier circuit above (assuming the capacitors C1 and C2 are short circuited or they are not considered):
From the first two operational amplifiers (U1 and U2), we have:
(Vo_1 −Vin_1) (Vin_1 −Vin_2) Vo_1 1 1 1
· = => =( + )Vin_1 − Vin_2 Eq. (1)
R2 R1 R2 R R1 2 R1
· (Vo_2 −Vin_2) = (Vin_2 −Vin_1) =>Vo_2 =( 1 + 1 )Vin_2 − 1 Vin_1 Eq. (2)
R3 R1 R3 R R1 3 R1
Subtract Eq. (2) from Eq. (1), noticing that R2 = R3 , we have:
· 1 (Vo_1 −Vo_2) = ( 2 + 1 )Vin_1 −( 2 + 1 )Vin_2 = ( 2 + 1 )(Vin_1 −Vin_2) Eq. (3)
R3 R R1 3 R R1 3 R R1 3
From Eq. (3), the total differential gain of the first two operational amplifiers (U1 and U2) is given by:
|
Vo_1 −Vo_2 2 1 2R3 + =1 2 10× +1≈ 92 =R3( + ) = Vin_1 −Vin_2 R R1 3 R1 0.22 |
· Eq. (4)
From the third operational amplifier (U3), we have:
· Vin_3 = R6 Vo_1 Eq. (5) R R4 + 6
· Vo −Vin_3 = Vin_3 −Vo_2 => −Vo Vin_3 = Vin_3 −Vo_2 Eq. (6)
R7 R5 R7 R7 R5 R5
Substituting Vin_3 of Eq. (5) into Eq. (6), we have (notice that
R4 = R5 and R6 = R7 .):
Vo − Vo_1 = R V7 o_1 −Vo_2
R7 R5 + R7 (R5 + R R7) 5 R5
· => =Vo ( R7 + 1 )Vo_1 −V o_2 (Eq. 7) R7 (R5 + R R7) 5 R5 + R7 R5
= 1 Vo_1 −Vo_2 = 1 (Vo_1 −Vo_2)
R5 R5 R5
From (Eq. 7), we have the gain from the third operational amplifier (U3):
|
Vo
Vo_1 −Vo_2 |
= =R7 100 =10 R5 10 |
· (Eq. 8)
Therefore, the overall gain of the circuits is given by:
|
Vo
Vin_1 −Vin_2 |
V = ( o Vo_1 −Vo_2 |
Vo_1 −Vo_2 =R R7 (2 3 +1) ≈ × ≈10 92 920 )( ) Vin_1 −Vin_2 R R5 1 |
· (Eq. 9)
4.2.3. High-Pass Filters (First Order)
· In the circuit above, the capacitors C1 and C2 block the DC and low-frequency components from the first amplification stage to avoid a saturation of the second and any later stages due to small DC offset voltages of practical operational amplifiers or signal sources. Without them, it is difficult to measure ECG signals from human body. These capacitors and their respective resistors form high-pass filters (C1, R4, and R6 form the first high-pass filter and C2 and R5 form the second). The orders of these filters are 1. As mentioned in Lab #3, a filter of a high order will be complicated when realized with electronic components and may distort signals, although an ideal filter should have an infinitely high order.
· The cut-off frequency (the frequency of the signal when the magnitude of the output signal of the filter falls to of its maximum value) of the high-pass filter consisting of C1, R4, and R6 is estimated by
1
0.707
2
≈
|
fc1 = 4 1 6 1 = 4 1 5 −6 = π100×11 ≈1.45 Hz 2 (π R + R C) 2π×(10 +10 ) 10× 2 |
(the resistor R4 is
added to balance the inputs of the practical operational amplifier U3 and it is not needed for an ideal OpAmp), and the cut-off frequency of the high-pass filter consisting of C2 and
R5 is estimated by . Since
2
4
6
52
1
1
100
15.92
Hz
10
10
2
2
2
c
f
RC
π
π
π
−
=
≈
=
=
××
the two high-pass filters are in series in the input signal paths, the one with a higher cut-off frequency dominates. The effects of the capacitors on the frequency response of the gain of the amplifier will be investigated through computer simulations of the circuit in this lab (for the ECG signals, the high-pass filters may have some effects on the signals). More information about high-pass filters can be found on the website at: http://en.wikipedia.org/wiki/High-pass_filter .
• The following is a derivation of the cut-off frequency of the high-pass filter: As mentioned above, fc is defined as the
1
|
fc = 1 1 2πRC |
frequency at which the magnitude of the output signal becomes of its maximum (assuming here the maximum is 1.0). I.e., (a voltage divider formula), or , or
1
2
1
1
1
2
c
R
R
j
C
ω
=
+
1
2
1
1
1
2
1
(
)
c
RC
ω
=
+
1
1
1
1
1
2
1
c
j
RC
ω
=
+
1
, or 1+ 1 2 = 2, or 2 =1, or ωc1 RC =1, or (ωc RC) (ωc RC)
1 1
ω πc = 2 fc = , or above, where R = R4+R6 is the total
1 1 RC
value of the resistance and C = C1 is the capacitance, which gives the cut-off frequency formula above and thus in the circuit.
1
1.45
Hz
c
f
≈
4.3. **Schematics of Circuits
• D4.001. (i) Produce the schematic of the first part of the ECG circuit in Section 4.2 above with MultiSim (see Section 2.3 of Lab #2 if you have forgotten how to make schematics). (ii) Click “File” -> “Save” on MultiSim to save the schematic to a file named “d4.001.ms13”. (This file is needed also in the next Lab.) (iii) Save your circuit diagram using the screen capture with the Print Screen key (or Alt + Print Screen) on the keyboard and the MS Photo Editor into .jpg format with the file name, d4.001.jpg, for your report. (The .jpg format allows you to handle the file and insert the image into your report without needing to use the lab computers.) (The Microsoft Photo Editor was introduced in the classnote of Lab #1 and the method to use it to save computer screen images is in Section
2.3 of the classnote of Lab #2.)
4.4. **Simulation of Circuits
· D4.002. (i) Connect Vin_1 and Vin_2 to a signal source (shown in the dotted box below with a resistor R12 that is used to avoid common mode noise) as in the following figure. (ii) Set up the same parameters for AC analyses as you have done for circuit simulation in Lab #2, with an expression of V(vo)/(V(vin_1)V(vin_2)) for the overall gain of the circuit, and then do simulation. (iii) Compare the gain between what you calculated and what you obtained from the simulation at frequency of 100 Hz. (iv) Save your schematic of the circuit and simulation result as .jpg files with the Microsoft Photo Editor in the procedure described above for your report.
· The following is the simulation result:
4.5. Study Circuit with One of Inputs Grounded
4.5.1. **Calculation of Gain
· Connecting the input Vin_2 or Pin #3 of U2 of the circuit in Section 4.2 to ground as follows:
· D4.003. Calculate the overall gain of the amplifier circuit over another input (i.e., Gain=Vo/Vin_1). Please write down all steps of your derivation (use Eqs. (1)-(8) in Section 4.2 as a reference). Save the results for your report.
4.5.2. **Simulation
• D4.004. (i) Simulate the circuit with input Vin_2 connected to ground as shown in following figure to confirm the calculated gain above at frequency 100 Hz using AC analyses with the same parameters as you have done for circuit simulation in Lab #2 and with an expression of V(vo)/V(vin_1) for the overall gain of the circuit. (ii) Save the schematic of the circuit and the simulation result in .jpg format with MS Photo Editor for your report. (iii) What conclusion could you make in terms of the difference of gains of the amplifier with two inputs open and with one input grounded?
4.6. Study Influences of Capacitors by Simulation
4.6.1. **Remove C1
• D4.005. (i) Using the same circuit diagram in Section 4.5 above, remove Capacitor C1 and then replace it with a wire. (ii) Simulate the circuit using AC analyses with the same parameters as you have done for circuit simulation in Lab #2 and with an expression of V(vo)/V(vin_1) for the overall gain of the circuit. (iii) Save the simulation result in a .jpg file for your report. (iv) Do you see any change in terms of cut-off frequency of the high-pass filter before and after the removal of the capacitor? (v) Estimate the cut-off frequency from the figure and compare it with that calculated in Section 4.2.
4.6.2. **Remove C2
•
D4.006.
(
i) Recover Capacitor C1 in the circuit. (ii) Using the
same circuit diagram in Section 4.5 above, remove Capacitor
C2 and then replace it with a wire. (iii) Simulate the circuit
using AC analyses with the same parameters as you have done
for circuit simulation in Lab #2 and with an expression of
V(vo)/V(vin_1) for the overall gain of the circuit. (iv) Save the
simulation result in a
.jpg
file for your report. (v) Do you see
any change in terms of cut-off frequency of the high-pass filter
before and after the removal of the capacitor? (vi) Estimate the
cut-off frequency from the figure and compare it with that
calculated in Section 4.2 (notice that with removal of C2, the
gain of the circuit at very low frequency is about half of its
maximum and thus the cut-off frequency should be estimated at
max
max
max
max
1
1
1
(
)
0.85
2
2
2
o
o
o
o
V
V
V
V
+
−
≈
)
.
4.6.3. **Remove Both C1 and C2
• D4.007. (i) Using the same circuit diagram in Section 4.5 above, remove both Capacitors C1 and C2 and then replace them with wires. (ii) Simulate the circuit using AC analyses with the same parameters as you have done for circuit simulation in Lab #2 and with an expression of V(vo)/V(vin_1) for the overall gain of the circuit. (iii) Save the simulation result in a .jpg file for your report. (iv) Do you see any change in the frequency response (magnitude)? (v) Explain why you get such a result.
4.6.4. Recover Both C1 and C2
• Recover both capacitors C1 and C2 since they are needed in the circuits.
4.7. **Study Rejection of Common-Mode Signals by Simulation
• D4.008. (i) Apply the signal source to both inputs of the differential amplifier as shown in figure below. (ii) Simulate the circuit using AC analyses with the same parameters as you have done for circuit simulation in Lab #2 and with an expression of V(vo)/V(vin_1) for the overall gain of the circuit. (iii) Save the schematic of the circuit and the simulation result in .jpg format with MS Photo Editor for your report. (iv) What conclusion could you make in terms of rejection of commonmode signals (signals such as noises that appear simultaneously on both inputs of a differential amplifier)?
4.8. Construction of Circuits
· Important: Understand Circuit Diagram and Wiring: Please make sure that you understand how the breadboard is pre-wired (there are hidden wires underneath the holes of the breadboard) according to the explanations in Section 1.3 of Lab #1. Please also check the entire circuit (taking into account the hidden wires) with the schematic in Section 4.2 after you have completed the construction of the circuit to make sure that your connections are correct.
· Important: Purposely Blurring of Figures: The figures/photos below for circuit construction are for illustration purpose only and the steps described, if there are any, are to specify where the main components of the circuit should be located to leave room for other circuits to be inserted in future labs and make the circuit neat for easier troubleshooting. The resolution of figures is purposely made low to keep the file size of the classnotes small and allow students to learn how to wire the circuit using the circuit diagram, instead of mechanically following the figures to wire without understanding the circuit. Multiple ways of electrical connections are permissible as long as they result in a correct circuit. You must check the correctness of the circuit before you start to test it.
4.8.1. Disassemble Inverting Amplifier of Lab #2
· Disassemble the inverting amplifier and all associated jump wires from the bread board that you saved from Lab #2, and reuse some components and jump wires recovered. (You will recover two 1.5k Ohm resistors, one 10k Ohm resistor, and one OpAmp. The two 1.5k Ohm resistors will not be used in Lab #4 and should be put back to the correct component drawer.)
· Before disassembling the inverting amplifier:
Inverting
amplifier to
be removed
· After the removal of the inverting amplifier, the board should look similar to the figure below:
4.8.2. Place Operational Amplifiers
· Add the new circuit to the left-hand-side of the circuit of the non-inverting amplifier you have built in Lab #2. In the next lab, additional circuits will be inserted between the new circuit and the circuit of Lab #2. Therefore, it is advised to place components and jump wires as shown in this classnote.
· Place the operational amplifier (OP37) U1 as indicated in the schematics above (please lineup Pin #1, indicated with a red circle, of U1 with Row #5 on the breadboard):
· Place the operational amplifier (OP37) U2 as indicated in the schematics above (please lineup Pin #1, indicated with a red circle, of U2 with Row #15 on the breadboard):
· Place the operational amplifier (OP37) U3 as indicated in the schematics above (please lineup Pin #1, indicated with a red circle, of U3 with Row #10 on the breadboard):
4.8.3. Place Wires and Other Components
• Place wires and all other components as needed in the circuit diagram in Section 4.2. In addition to the three OpAmps, it includes one 220 Ohm resistor, four 10k Ohm resistors, two 100k Ohm resistors, and two 1uF capacitors (a total of 12 components).
4.8.4. Attach Signal Wires
· Attach a yellow jump wire to one of the inputs of the amplifier (Vin_1):
· Attach another yellow jump wire for another input of the amplifier (Vin_2):
· Attach an orange jump wire at the output of the amplifier (Vo):
4.8.5. A Sample Circuit
• The following is an example of completed circuit to give you a general idea of where the components are placed. The figure may be purposely blurred so that you have an opportunity to learn how to wire the circuit. Please check your constructed circuit against the schematics in Section 4.2 above to make sure that the connections are correct. Please take into account the hidden connections of the breadboard explained in Section 1.3 of Lab #1.
4.9. Tests of Circuits with Function Generator
4.9.1. Sine Wave (100 Hz, 20 mVpp)
4.9.1.1. Connect to Power Supply
· Attach a yellow banana-to-banana plug to the -15V output post of the power supply as shown:
· Attach a blue banana-to-banana plug to the ground (GND) post of the power supply as shown:
· Attach a red banana-to-banana plug to the +15V output post of the power supply as shown:
4.9.1.2. Connect to Function Generator and Ground One Input
· Attach a BNC-to-alligator-clips cable to the function generator as shown:
· Attach the black alligator clip to the ground (GND) that is connected with a green jump wire on the circuit as shown:
· Attach the red alligator clip to one of the inputs (Pin #3 of the operational amplifier U1) that is connected with a yellow jump wire on the circuit as shown:
· Ground the other input (Pin #3 or Vin_2 of the operational amplifier U2) to make the circuit to have only one input for testing with signals from the function generator (the yellow jump wire is connected to the ground as shown).
· Note: Make sure that the value of the potentiometer in the circuit of Lab #2 (although it is not used in this lab) is set to be larger than about 3k Ohm to avoid oscillations that may create noise and make the circuit in this lab malfunction.
4.9.1.3. Connect to Oscilloscope
· Attach a BNC-to-BNC cable to the other end of the T adaptor on the function generator as shown:
· Attach the other end of the BNC-to-BNC cable to the input Channel #1 (CH 1) of the oscilloscope as shown:
· Attach another BNC-to-alligator-clips cable to the input Channel #2 (CH 2) of the oscilloscope as shown:
· Attach the black alligator clip to the ground (GND) that is connected with a green jump wire on the circuits as shown:
· Attach the red alligator clip to the amplified signal output (Pin #6 or Vo of the operational amplifier U3) that is connected with an orange jump wire on the circuits as shown:
4.9.1.4. Setup Function Generator
· Important: Please notice that in our labs, the direct current (DC) offset of the function generator must be set to zero if this has not already been done. If this is neglected and your function generator has a DC offset that is not zero, the measurements and results of this and future labs will not be correct and it may take a lot of time to troubleshoot to find out this problem. (Notice that when you turn on the function generator, the option “Offset” will be shown on the display.) For safe, you should check at the beginning of each lab to ensure that the offset is set to 0 to avoid problems in case senior design students use the equipment while the labs are not in session.
· Produce 100 Hz, 20 mVpp sine wave with the function generator. The output of the function generator should be set to the “High Z” mode. (Please follow Section 1.5 “Use of Function Generator” in the classnote of Lab #1 for steps of set up if you forget how to do this.)
4.9.1.5. Setup Power Supply
· Please make sure that the green (ground) wires on the power supply and bread board are not losing each time you use the power supply for any of your labs. This is important since losing ground will make your circuit not to work and it may be difficult for you to figure out what goes wrong.
· Set the voltages of the power supply to +/- 15V and set the current limit to 35 mA (or 0.035 A) for both positive and negative powers to reduce the risk of burning out the breadboard or circuit components. (Please follow Section 1.6 “Use of Power Supply” in the classnote of Lab #1 for steps of set up if you forget how to do this.)
4.9.1.6. **Setup Oscilloscope and Display Sine Wave Signal
· Display the sine waves produced on both channels of the oscilloscope. If the circuit does not work, you should troubleshoot each operational amplifier stage to find loose connections, shorts, or misconnections by checking their output signals successively with the oscilloscope.
· D4.009. (i) Setup the oscilloscope and measure the “Peak-toPeak” amplitudes of the input (Channel #1) and output (Channel #2) waveforms of the circuit with the oscilloscope. (The “Quick Meas” button and then “Select Source” in the menu allow you to display the results of selected channel.) (ii) Compare the measured gain of the amplifier with that calculated theoretically in Section 4.5 above (R1=220 Ohm, R3=R5=10k Ohm, and R7=100k Ohm). (iii) Save the waveforms along with displayed amplitudes to the computer desktop with IntuiLink in the .png file format for your report. (Please follow Section 1.4 “Use of Oscilloscope” in the classnote of Lab #1 for steps of set up if you forget how to do this. The steps to save oscilloscope screen with IntuiLink are given in Section 1.3 “Information” of Lab #1.)
4.9.2. Pseudo ECG Signal (1 Hz, 20 mVpp)
4.9.2.1. Setup Function Generator
• Produce 1 Hz and 20 mVpp pseudo ECG signal with the function generator. The output of the function generator should be set to the “High Z” mode. Make sure the DC Offset is set to zero. (Please follow Section 1.5 “Use of Function Generator” in the classnote of Lab #1 for steps of set up if you forget how to do this.)
4.9.2.2. **Setup Oscilloscope and Display Pseudo ECG Signal
· Display the pseudo ECG signal produced on both channels of the oscilloscope.
· D4.010. (i) Setup the oscilloscope in “Roll” mode and measure the “Peak-to-Peak” amplitudes of the input (Channel #1) and output (Channel #2) pseudo ECG waveforms of the circuit with the oscilloscope. (The “Quick Meas” button and then “Select Source” in the menu allow you to display the results of selected channel.) (ii) Compare the measured gain of the amplifier with that calculated theoretically in Section 4.5 above (R1=220 Ohm, R3=R5=10k Ohm, and R7=100k Ohm). (iii) Save the waveforms along with displayed amplitudes to the computer desktop with IntuiLink in the .png file format for your report. (Please follow Section 1.4 “Use of Oscilloscope” in the classnote of Lab #1 for steps of set up if you forget how to do this. The steps to save oscilloscope screen with IntuiLink are given in Section 1.3 “Information” of Lab #1.)
4.9.2.3. **Study the Influence of Capacitors on Pseudo ECG Signal
· Bypass the capacitors C1 and C2 by connecting resistor R4 and R5 directly to the outputs (Pin #6) of OpAmp U1 (Vo_1) and U2 (Vo_2) respectively.
· D4.011. (i) Setup the oscilloscope in “Roll” mode and measure the “Peak-to-Peak” amplitudes of the input (Channel #1) and output (Channel #2) waveforms of the circuit with the oscilloscope. (The “Quick Meas” button and then “Select Source” in the menu allow you to display the results of selected channel.) (ii) Compare the measured gain of the amplifier with that calculated theoretically in Section 4.5 above (R1=220 Ohm, R3=R5=10k Ohm, and R7=100k Ohm). (iii) Save the waveforms along with displayed amplitudes to the computer desktop with IntuiLink in the .png file format for your report. (iv) What are the effects of the capacitors to the pseudo ECG signal? (Please follow Section 1.4 “Use of Oscilloscope” in the classnote of Lab #1 for steps of set up if you forget how to do this. The steps to save oscilloscope screen with IntuiLink are given in Section 1.3 “Information” of Lab #1.)
4.9.2.4. Restore both Capacitors
• Restore Capacitors C1 and C2 in the circuit (i.e., reconnect them back into the circuit) if they have not been restored.
4.9.3. Turn off Function Generator and Disconnect Cables
• Disable (not to power off) the output of the power supply by pushing the “Output On/Off” button and turn off the function generator. Remove the BNC-to-BNC cable and remove the BNC-to-alligator-clips cable that connects between the function generator and Channel #1 of the oscilloscope.
4.10. Test Circuits on Human ECG Signals
4.10.1. ECG Electrodes
4.10.1.1. Notes
· Note #1: Connection of ECG Electrodes: ECG electrodes are important for making electrical connections between human body and the amplifier circuits. The quality of these electrodes will have a strong influence on the quality of ECG signals that you can get. When the electrical coupling between the electrodes and the body is not good, the signals may be buried in noise.
· Note #2: Working on Human ECG Signals: If your circuit works fine with signals from the function generator but you get excessive noise that prevents you from continuing the experiment when you measure ECG signals from the human body, you should suspect that your electrodes may be dried out (this may happen if the electrodes are left out of a sealed enclosure for a few days) and do not make good electrical connections.
· Note #3: Excessively High Frequency Displayed: If your oscilloscope displays a frequency that is much higher than your actual heart beating rate when you measure the ECG signals from human body, the frequency displayed is likely to be that of the noise, which is random.
· Note #4: Movement of Body: In addition, the movement of human body will produce irregular ECG signals that cannot be used for medical diagnoses. Therefore, please stand or sit still when acquiring the ECG signals.
· Note #5: Need a High Gain: ECG signals are generally weak and thus needs to be amplified more than 1000 folds by electrical circuits to reach an amplitude in the range of volts.
4.10.1.2. Labels of Electrodes
· We have purchased ECG electrodes from Vermed Company as shown in the label below:
· The front face of a sealed pouch of the ECG electrodes is shown below:
· The back face of a sealed pouch of the ECG electrodes is shown below:
4.10.1.3. Electrodes
· The front side of 10 ECG electrodes inside each pouch:
· The back side of 10 ECG electrodes inside each pouch:
· Methods of detaching the ECG electrodes from sheets:
4.10.1.4. Placement of Electrodes
· Place an ECG electrode on the inner wrist of the left hand:
· Placement of ECG electrodes on the inner wrist of both hands:
· Place an ECG electrode on the side of the inner ankle of the left foot:
4.10.2. Test on ECG Signal
4.10.2.1. Recover Differential Setting
• Recover the differential setting of the amplifier by disconnecting the grounded input (Pin #3 of operational amplifier U2) from the ground to prepare the circuit for testing on human ECG signal:
4.10.2.2. Attach Cables to Circuit
· Attach a red alligator-clip-to-alligator-clip cable to one of the inputs (Pin #3 of the operational amplifier U1) of the amplifier circuit:
· Attach a yellow alligator-clip-to-alligator-clip cable to the other input (Pin #3 of the operational amplifier U2) of the amplifier circuit:
· Attach a black alligator-clip-to-alligator-clip cable to the ground (GND) of the amplifier circuit:
· Extend the length of the ground (GND) cable with another black alligator-clip-to-alligator-clip cable:
4.10.2.3. Connect to Electrodes
· Connect the other end of the red alligator-clip-to-alligator-clip cable to the ECG electrode on the inner wrist of the left hand:
· Connect the other end of the yellow alligator-clip-to-alligatorclip cable to the ECG electrode on the inner wrist of the right hand (please notice that the polarity of the ECG signal may change, or the ECG waveform may be upside down, when you switch the connections of the two input cables):
· Attach the other end of the extended black alligator-clip-toalligator-clip cable to the ECG electrode on the inner ankle of the left foot:
4.10.2.4. Enable Output of Power Supplies
• Enable the output of the power supply by pushing the “Output On/Off” button:
4.10.2.5. **Setup Oscilloscope and Display ECG Signal
• D4.012. (i) Setup the oscilloscope in “Roll” mode to display and measure the “Peak-to-Peak” amplitude of the ECG signal (Channel #2). Turn off Channel #1 display of the oscilloscope by pushing the Channel #1 display light since it is not used. (ii) Save the waveform along with displayed amplitude to the computer desktop with IntuiLink in the .png file format for your report. (Please follow Section 1.4 “Use of Oscilloscope” in the classnote of Lab #1 for steps of set up if you forget how to do this. The steps to save oscilloscope screen with IntuiLink are given in Section 1.3 “Information” of Lab #1.)
4.11. Save Your Work
4.11.1. *Save Files with winSCP
• Use the “winSCP” program to: (i) save your files to your engineering account and then (ii) delete the saved files from your desktop. Deleting from your computer desktop the files that you produced and transferred to your account would avoid confusing the groups that do the same lab using the same computer after you and also would prevent your results be misused by others. (Please follow Section 1.3.4 “Software to Use” in the classnote of Lab #1 for steps to use winSCP if you forget how to do this.)
4.11.2. *Save Your Constructed Circuits
• Save the bread board that contains your completed circuits for uses in future labs by putting it on the shelves at the back of the room after you have completed this lab. Please pin a piece of paper with your name(s) on the bread board if you have not already done so.
4.12. Turn off and Disconnect Equipment
• After completing the lab, turn off (i) power supply, (ii) function generator, (iii) multimeter, (iv) oscilloscope, (v) computer, and (vi) monitor if they have not been turned off already. Disconnect the cables that you have used and put them on the hangers at the back of the room.
4-1
4-48
4-49
class note/bioinst_lab_report01_last_firstname.doc
Lab Report I
Lab Report #I
Modern Biomedical Electronics and Instrumentation
Student Name: Last XXX, First XXX
(Partner Name: Last YYY, First YYY)
Date of Completion: Month, Day, Year
Due Date of the Report:
On-Time submissions mean that both electronic version and paper version are submitted before the end of the respective lecture classes of the due dates instead of the lab classes. Please see the grading criteria below for details.
1. Notes (please notice that there were students who have violated these requirements in the past and, as a result, their scores were 0 and thus they got F grade for this course)
· Important Requirements (gets a total grade of 0 and F for the course if any of the requirements below is not met):
a. N1. Finish the report independently. Although the labs are completed with group efforts, each report should be completed independently by each student. You and your partner(s) should independently decide what results to include and in what format to present the results in the respective reports. The report provides a training for students on scientific documentation, analyses, and writing, and is an important part of your learning experience. If this requirement is not met, all students involved will get 0 and F for this course.
b. N2. Plagiarize from reports of others. Copying any parts of written reports from others or from each other is a plagiarism and is not allowed. The students involved, including those who allow their reports to be plagiarized or do not properly guard their reports, will get 0 point and F for this course, and are subject to the academic misconduct proceedings of the University of Toledo. Therefore, please do not show your complete or incomplete report to anyone else including your partner!
c. N3. Plagiarize from other sources. Copying contents (figures, tables, equations, or texts, etc) from other sources (including the web and the classnotes of the course instructor) without quotations and proper citations immediately following each copied content is also a plagiarism. Please use your own words and avoid simply copying from the classnotes of the course instructor.
· Grading Criteria of the Report:
The total score of this report is 100, consisting of six parts. A student will get a score of 0 for all parts of the report and get F grade for this course if you are judged offending Notes N1, N2, or N3 above or submit a blank report. In the case of plagiarism, the student will also be subject to the academic misconduct proceedings of the University of Toledo.
Wherever applicable, the score of each part is determined by factors including but not limited to the following:
(i) Follow Instructions Closely: The instructions at the beginning of each part and in the labeled items, such as D1.001, D1.002, and D1.003, etc, in both this report template and the classnotes should be followed closely and questions in the items are answered correctly;
(ii) Do Intelligent Analyses: Perform intelligent analyses on experiment results and phenomena observed;
(iii) Have In-Depth understanding: Demonstrate an in-depth understanding of class-related materials; and
(iv) Correct Spelling and Grammar: Texts flow smoothly with correct spelling and grammar.
a. Part 1: On-Time Submissions: The score of this part accounts for 10% and is determined by whether a student has submitted the report on time. (You are on time if you submit both the paper and electronic (Microsoft) versions of your report on or before the end of the scheduled lecture class time on the due dates indicated at the beginning of this report template. The electronic version of the report must be submitted to the instructor via the email address, (this email address avoids many problems of my email address such as 10MB maximum email size limit and the “Winmail.dat” problem of Microsoft OutLook email client, in addition to the “utemail_digest” problem that could lead to missing emails) and the total size of the attached files should not exceed 25 MB to avoid your email being rejected by the email server. Methods of reducing the size of images are given in Item (A2) below. Please follow the instructions in A2 carefully. Smaller file sizes also will avoid overloading the computer system of the instructor and are easier to handle.)
(i) Paper version: (a) late: deduct 5 points; (b) no submission within one week after the due dates indicated at the beginning of this report template: deduct 100 points and your report will not be graded.
(ii) Electronic version in MS Word format: (a) late: deduct 2.5 points; (b) no submission: deduct 5 points.
b. Part 2: Results and Analyses According to Lab Procedures in Classnotes: The score of this part accounts for 50% and is determined by an accumulation of the quality points of each labeled item in the Classnotes, such as, D1.001, D1.002, and D1.003, etc. To get a full score of this part, you need to do experiments, get correct results, do correct analyses, and answer all questions in the items correctly. For Report #1, for example, if the accumulation of your quality points is 180, the deduction of you score will be 180/2=90 or 50, whichever is smaller (your score will be 50-50=0 for this part). If the accumulation of your quality points is 30, the deduction of you score will be 30/2=15 (your score will be 50-15=35 for this part). Notice in this part that the weight “2” in denominator for Report #1 may or may not be different from that of Report #2.
c. Part 3: Abstract: The score of this part accounts for 10%. Please follow instructions at the beginning of the section.
d. Part 4: Introduction (Technical Background, Significance, and Experimental Methods): The score of this part accounts for 15%. Please follow instructions at the beginning of the section.
e. Part 5: Discussion: The score of this part accounts for 10%. Please follow instructions at the beginning of the section.
f. Part 6: Conclusion: The score of this part accounts for 5%. Please follow instructions at the beginning of the section.
g. Deductions from the Total Score Above: Assuming you get a total of x% according to the criteria above, the final score of this report is calculated by subtracting from the total score according to the following 16 items: (i) A1 to A8; (ii) B1 and B2; (iii) C1; (iv) E1; (v) F1; and (vi) G1 to G3. I.e., your final score is x%-y% where y% is the deduction. The number of point(s) deducted is given in the corresponding item below. Please follow all instructions in these items exactly. Up to 25 points could be deducted.
2. Required Styles of the Report
The items below should all be followed carefully:
A1. Figure and Table Legends: (i) Figures and Tables in your report should have legends such as “Fig. D3.004a. The Biomedical Instrumentation Lab” for figures and “Table D1.013a. Resistor Color Codes” for tables, where “D1.013“ and “D3.004” are the item # and must be added to the figure/table legends for the corresponding items. (ii) Figure legends should be placed on the bottom of figures but table legends should be on the top of tables. The legends should be intelligent enough so that people can understand your figures and tables by just looking at the legends themselves. (iii) The legends should have different font and size (see figures below) than the main text of the report so that they can be easily distinguished. 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
Fig. D3.004a. Biomedical Instrumentation Lab (font size 10, Arial)
Table D1.013a. Resistor Color Codes (font size 10, Arial)
A2. File Format and Figure Sizes: (i) This lab report must be prepared with and also submitted as a Microsoft Word file. (ii) As a good practice, please use the .jpg format for images and compress each of your images with about 70% compression rate and then inserting it into the Microsoft Word file (please do not use COPY/PASTE, instead, use INSERT to maintain the 70% compression). If you use the Microsoft Photo Editor, you could do the following: File -> Save As -> Save As *.jpg -> More -> JPEG quality factor = 31. Neither the image width nor the image height should be larger than 1024 pixels (you should resize the images properly with an image manipulation software if the original dimension of the image is larger than 1024 pixels). If you use the Microsoft Photo Editor, you could do the following to resize the images: Image -> Resize -> Units = Pixel -> Enter width or height that is less than 1024 pixels. I have used these methods to produce the classnotes that contain hundreds of images but with only a few megabytes. 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
A3. Have a Correct Text Heading Structure: (i) This report template should be used directly to write your report. (ii) The heading structure of this report template should be maintained for your report. Please see the “Heading Structure of Report (First-Level Section Headings)” below. 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
A4. Remove Illustration Texts: Please remove the illustration texts, i.e., all of the texts highlighted in yellow and placed before the Table of Contents and the instruction texts at the beginning of each section in square brackets “[…]”. Resolve formatting problems of the report after your report is final. You may greatly reduce the chance of getting formatting errors by showing the formatting symbols in Microsoft Word (you could search Google to find out how to do it for your version of the Microsoft Word). 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
A5. Filename of Submitted Report (MS Word File): For proper sorting and finding your report in a computer, you must use the filename naming format as follows. For example, assuming the filename of this report template is “bioinst_lab_report01_last_firstname.doc” and your name is Jim (first name) Miller (last name), your report should have the filename “bioinst_lab_report01_miller_jim.doc” so that the reports from the entire class can be sorted according to the last names. 1 point will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
A6. Names and Date: Enter your name, your partner’s name(s), and the date of completion of the report below the title at the beginning of this report. Please simply replace the red XXX , YYY , Month, Day, and Year with proper contents. 1 point will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
A7. Table of Contents: Please update your Table of Contents after you have completed your report by right clicking on the Table of Contents (grey area) and then select “Update Field” -> “Update entire table”. Otherwise, your Table of Contents and page numbers will be incorrect. (You could search Google to find out how to do it for your version of the Microsoft Word.) 1 point will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
A8. Should Not Include an Appendix: Appendix is not allowed in this report. 1 point will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
3. Heading Structure of the Report (First-Level Section Headings)
3.1. Heading Structure (Second-Level Section Headings)
3.1.1. Heading Structure (Third-Level Section Headings)
3.1.1.1. Heading Structure (Fourth-Level Section Headings)
[The four levels of section headings above will be automatically numbered according to the section they are in. Please copy the entire line of the headings (including the formatting symbols shown at the beginning and the end of the headings) and then paste it to where you need. To show the formatting in the texts, you need to enable the formatting toolbar if it is not already shown on top of your Microsoft Word program through the dropdown menu View -> Toolbars -> select “Formatting”. You could also use Google to search for the method to enable the formatting for your version of Microsoft Word. You should try this once so that you are familiar with the behavior of the copy/paste process before you start writing). An example is shown in the figures below.]
[Copy by highlighting the entire row of heading “1.1. Second-Level Section Headings” that includes the formatting you would like to copy as shown in Fig. 1 below:]
Fig. 1. Copy action of a heading “1.1. Second-Level Section Headings”
[Paste by placing the mouse at the beginning of the text at which you would like to have the heading. This results in a new heading “2.1. Second-Level Section Headings” automatically as shown in Fig. 2 below with correct heading number “2.1.”:]
Fig. 2. Result of pasting of the heading “2.1. Second-Level Section Headings”
Table of Contents
1 1. Notes (please notice that there were students who have violated these requirements in the past and, as a result, their scores were 0 and thus they got F grade for this course)
3 2. Required Styles of the Report
6 3. Heading Structure of the Report (First-Level Section Headings)
6 3.1. Heading Structure (Second-Level Section Headings)
6 3.1.1. Heading Structure (Third-Level Section Headings)
6 3.1.1.1. Heading Structure (Fourth-Level Section Headings)
10 2. Introduction (Technical Background, Significance, and Experimental Methods)
11 3.1. Results and Analyses of Lab #1 “Use of Instruments”
11 3.2. Results and Analyses of Lab #2 “Basic Circuits Development”
11 3.3. Results and Analyses of Lab #3 “LabView Programming”
11 3.4. Results and Analyses of Lab #4 “ECG Amplifier – Part I”
11 3.5. Results and Analyses of Lab #5 “ECG Amplifier – Part II”
4. Abstract
[(10%) A good abstract should be as follows:
(i) It is written concisely but is intelligent enough and complete by itself to reflect the entire report.
(ii) After reading the abstract, one should get an overall picture of the entire report and get all of the highlights of the report.
(iii) The abstract should be written the last.
B1. Reference should not be included in the abstract. 1 point will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
B2. This section should not exceed 250 words (the “Word Count …” in MS Word can be used to check). 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.]
5. Introduction (Technical Background, Significance, and Experimental Methods)
[(15%) This section should include the following:
(i) (6%) Technical Background: Give broad background information on biomedical electronics related to the labs. - A lot of information can be obtained from websites, scientific journal papers/magazines/periodicals, or books. As mentioned before, copied materials must be properly referenced in the format as required in the “Notes” near the beginning of this report template to avoid plagiarism and getting 0 point for this report.
(ii) (4%) Significance: State the significance of each of the labs.
(iii) (5%) Experimental Methods: Describe the experimental methods for each of the labs.
C1. This section should not exceed 3 full single-spaced pages using the 12-point font of this template. 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.]
5.1. Background
5.2. Significance
5.3. Experiment Methods
6. Results and Analyses
[(50%) You should place in this section all of the results that you have obtained by following the lab procedures of the classnotes and do analyses using the heading structures below, as required in various items. No appendix is allowed. Additional analyses for the items, if there are any, should also be in this section and be placed in the corresponding items. It would be of help when relevant figures are placed side-by-side for comparisons to illustrate your point. Scores in this section may be deducted if you have any violation of these rules.
The results and analyses from each labeled item of the classnotes should have corresponding labels so that they will not be overlooked during scoring. If there is more than one table for an item, say, D1.013, they should be labeled as Table D1.013a, Table D1.013b, and so on. Figures corresponding to an item should also be labeled with item number, such as Fig. D3.004a and Fig. D3.004b, etc. The labels should be used for analyses too.]
6.1. Results and Analyses of Lab #1 “Use of Instruments”
D1.001
D1.002
D1.003
D1.004
D1.005
D1.006
D1.007
D1.008
D1.009
D1.010
D1.011
D1.012
D1.013
6.2. Results and Analyses of Lab #2 “Basic Circuits Development”
6.3. Results and Analyses of Lab #3 “LabView Programming”
6.4. Results and Analyses of Lab #4 “ECG Amplifier – Part I”
6.5. Results and Analyses of Lab #5 “ECG Amplifier – Part II”
7. Discussion
[(10%) Discuss each of the labs on:
(i) What you have learnt;
(ii) Your experiences with the labs; and
(iii) Anything that you feel important;
E1. This section should not exceed 1 full single-spaced page using the 12-point font of this template. 1 point will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.]
8. Conclusion
[(5%) Make a conclusion over the entire report.
F1. This section should not exceed 500 words (the “Word Count …” in MS Word can be used to check). 1 point will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.]
9. References
[For this report, you should do the following:
G1. References Should Include All of These: (i) Classnotes of the instructor; (ii) at least one relevant book that you have read; (iii) at least one relevant scientific journal paper that you have read; and (iv) at least one relevant website URL. 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.]
G2. Citation Method of References: The citations in the report should be indicated by the citation number, [1], [2], and [3], etc, immediately following the figures, tables, equations, or texts, etc, that they are referred to. The citation number, [1], [2], and [3], etc, should correspond to the full citations in this section. An example for citations is given in the scientific journal paper below, which can be accessed via the following 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
G3. Reference Formats: All of the references in this section should have correct formats (for example, for a scientific journal, it should include authors’ names, title, journal name, volume, number, pages, month, and year) as given in the examples below. For books and scientific journal papers, all authors should be listed. For websites, the URLs should refer to the individual items referred to. 2 points will be deducted from the total score defined in the grading criteria above if this item is not followed exactly.
[1] Classnotes:, Class Notes for Instruction. Course #
[2] Book: R. Bracewell, The Fourier Transform and its Applications. New York: McGraw-Hill, 1965.
[3] Website: Resistor Color Codes: http://www.elexp.com/t_resist.htm ]
4