Lab Week 4 Analog Discovery introduction MATLAB Circuit building and Oscilloscope Measurements Ethics
Digilent supplies You should have received an Analog Discovery from the Digilent order that you placed. The kit includes: USB micro cable Header pins, DO NOT THROW AWAY Analog Discovery
Analog Discovery This will be your main tool for this lab. Your analog discovery is capable of: Measuring time varying voltages Create voltage waveforms Supply power Analyze filter response And much more!
Analog Discovery Pinout We will be using today We will be using today We will be using today We will be using today We will be using today We will be using today
How do I use it? 1. Install waveforms 2015 2. Connect your Analog Discovery to your PC 3. Make sure you are not running in Demo Mode 4. Select a tool We will be mainly using the Scope tool on the Analog Discovery, we will introduce tools as we use them. Note: Your Waveforms will not run unless the Analog Discovery is hooked up to your computer.
Oscilloscope Tool What is an oscilloscope? It is a measuring tool that allows you to analyze time varying voltage waveforms. Why do I need it? To troubleshoot circuits, measure output voltages, look at different voltage waveforms.
Analog Discovery Oscilloscope Operation Select Instrument Oscilloscope Turn on Screen settings Time Scale (1 min/div to 10 ns/div) Voltage Scale (5 V/div to 100 µv/div) Offset (from scale or manual) Channels 1 and 2 (on or off) Measurements Maximum Average
MATLAB WE WILL USE MATLAB IN THIS COURSE AS A GRAPHING TOOL IN ORDER TO MODEL LAB RESULTS Enter commands in MATLAB to graph data points Enter each data point individually, or Enter first and last data points, and specify the increment between these 2 numbers. (we will do this today) Export data from Waveforms (Analog Discovery) and import into MATLAB Data appears as a matrix with more than 1000 individual points (we will do this next week, and for every module)
MATLAB: Plotting Data V = 5 ; R =100:100: 1000; I = V./R; plot(r, I, b ) hold on Assigns the value 5 to the variable V (the ; symbol prevents the value from showing again on the command window) Sets Voltage values from 0 to 1000V in increments of 100 Calculates current using Ohm s Law for V = 5 V, and for each value of R. Assume V is in volts, R in ohms, and I in amps. Need to use./ instead of just / since R is a matrix Plots the current (I) as a function of resistance (R) using a blue line Allows you to plot more than 1 plot on the same plot area, and to continue working on formatting your graph.
MATLAB: Plotting Data
MATLAB: Plotting Data
MATLAB: Adding labels and text gtext( Ohms Law ) This commands will add text to your plot. Type the gtext command and MATLAB will take you to your graph, then allow you to place the cursor where you want the text. You can use the graphing window to add an arrow from the text to the line. Notice that I spelled Ohm s as Ohms -- Because this command contains it is confusing to MATLAB when you add the apostrophe after the m xlabel( Resistance (ohms) ) ylabel( Current (amps) ) The xlabel and ylabel commands place labels on the x- and y- axes. You can also do this from the graphing window using the toolbar.
MATLAB: Graph Select Edit in main toolbar at top and click on Figure Properties Right click anywhere on the figure, select font, and adjust to at least 14. You can also right click on the gtext you added to increase that font as well. IS FONT TOO SMALL? LET S FIX THAT.
MATLAB: Graph WHAT COMPONENTS SHOULD YOUR GRAPH HAVE? FORMAT? WHAT OBSERVATIONS CAN YOU MAKE ABOUT YOUR GRAPH? HOW WOULD YOU WRITE THEM IN A REPORT?
Breadboard Refresher Remember your breadboard layout NEVER connect both terminals of a component on the same row
Analog Discovery Measurements Use header pins to connect CH1+/CH1- or CH2+/CH2- Place the pins where you want to take measurements Remember that we measure voltage in parallel
Exercise 1 - LED Circuit (a) Build the LED circuit shown below. (b) Measure the voltage across the LED and the resistor (c) Compare your measurements to the LED and resistor voltage drop calculations that you made last week. 5V Compon ent LED Resistor Voltage (measurements) Voltage (calculations)
Using the Wavegenerator Tool The wavegen tool is used to supply time varying voltage signals to a circuit. The wavegen is a power supply! You have 2 wavegen channels, solid yellow is Wavegen 1 and stripped yellow is wavegen 2
Exercise 2 - Using the Wavegenerator Tool Go back to the LED circuit and apply a voltage signal using wavegenerator 1 (solid yellow wire) Disconnect the USB power supply, you do not need it since the wavegenerator is a power supply
Using the Wavegenerator Tool Open up the wavegenerator tool on waveforms Select a voltage signal type Set the frequency to 5Hz and the Amplitude to 5V Click on Run All What is the LED doing? Try different combinations of signal type, amplitude, and frequency.
Series Circuit Exercise (a) Build this circuit on one of your breadboards. Assume R1 is 100, R2 is 500, R3 is 1 k, and 5V for your power supply. A B (b) Calculate the total current (I total ) of the circuit. (c) Calculate the voltage drops across (a) A-B, (b) B-C and (c) C-D. (d) Use CH1+ (orange wire) and CH1- (orange/white wire) to measure the voltage drops across (a) A-B, (b) B-C and (c) C-D. D Voltage Voltage A-B Calculated Values C Measured Values Ask TAs for help if you do not know where to start. Voltage B-C Voltage C-D
Exercise 4 - Parallel Circuit (a) Build the parallel circuit (b) Measure the voltage across the R1(100Ω), R2(500Ω), R3(1kΩ) (c) Explain how the values compare to the power supply of 5 V Component R1 R2 R3 Voltage
Academic Dishonesty Examples of Acts of scholastic dishonesty: Cheating Plagiarism Collusion The submission for credit of any work or material that are attributable in the whole or in part to another person. Means you are taking credit for someone else s work. Taking an examination for another person Any act designed to give unfair advantage to a student Source: http://sa.utep.edu/osccr/wp-content/uploads/sites/8/2012/09/avoiding-plagiarism.pdf
Plagiarism Plagiarism means using another s work without giving credit. You must put others words in quotation marks and cite your source(s) and must give citations when using others ideas, even if those ideas are paraphrased in your own words. Source: http://sa.utep.edu/osccr/wp-content/uploads/sites/8/2012/09/avoiding-plagiarism.pdf
Work Writing Charts Pictures Graphs Diagrams Data Websites May include sentences, phrases, innovative terminology, formatting, or other representations Source: http://sa.utep.edu/osccr/wp-content/uploads/sites/8/2012/09/avoiding-plagiarism.pdf
Source Books Magazines Newspapers Websites Plays Movies Photos Paintings Textbooks Unpublished sources Class Lectures Class Notes/Handouts Speeches Other Student Papers Computer Code Source: http://sa.utep.edu/osccr/wp-content/uploads/sites/8/2012/09/avoiding-plagiarism.pdf
Citations Using words, ideas, computer code, or any work by someone else without giving proper credit is plagiarism. Anytime you use information from a source, you must cite it. Source: http://sa.utep.edu/osccr/wp-content/uploads/sites/8/2012/09/avoiding-plagiarism.pdf
Why should YOU be concerned about Plagiarism? You are cheating yourself BECAUSE you are not trying to learn to write and express your thoughts in your own words. You are missing the feedback pertaining to your own work. You miss the chance of succeeding based on your own merit. Plagiarism is dishonest it misrepresents the work of another as yours. Plagiarism violates the Handbook of Operating Procedures of the University and can result in Suspension or Dismissal. Plagiarism devalues others original work it is taking advantage of other students that do their own work. It is wrong to take or use other s work without giving credit to the author. Source: http://sa.utep.edu/osccr/wp-content/uploads/sites/8/2012/09/avoiding-plagiarism.pdf
Citing the work of others When using phrases word for word, you should indent and place the phrases in to highlight that you are using other s work to make a point or communicate something important. When writing about someone else s ideas, research, and/or data, you need to cite the author using proper citation format. In this class, we will use IEEE format (to be covered on 9/22 lecture). When you conduct research and write an article, and then you write a second article based on the first piece of work, you need to CITE the original work in the second article, even if you are the author of both!!! Source: http://sa.utep.edu/osccr/wp-content/uploads/sites/8/2012/09/avoiding-plagiarism.pdf
Work in this class Data is required to be original All phrases and sentences are required to be original Figure/Table captions are required to be original Homework problems can be discussed, and methods can be shared through teaching, but CANNOT be copied from one paper to another.
Template Highlights 1. Font Requirements (12 Font, single spaced) 2. Table Labels, Units, Captions, and References. Table 1. LED Band Gap Data [1] Material Color Wavelength, nm Max. Forward Current, ma AlGaAs Red 660 30 GaAsP Yellow 585 20 GaP Green 565 30
Template Highlights 3. Figure Labels, Units, Captions, and References. Figure 1. Photon Energy as a function of Wavelength for several LED Materials [1]. 4. Legible Text on all graphs and tables. Compare it to your 12 font text in narrative.
Template Highlights 5. Refer to all tables and figures in your narrative. 6. Include all appropriate headings in bold font. See template. Ex. Procedure I: Description 6. For the results section, include subheadings referring back to each procedure in your module handout. 7. Keep report organized, concise and short. 8. Use your own words throughout your report.
Template Highlights 10.You can copy and past the circuits from each module handout, with a citation. See example below. Figure 5: Ultrasonic Sensor Circuit [5] This citation would be included under References [5] Ultrasonic Sensor Circuit, Introduction to Sensors, Instrumentation, and Measurements Course: Module II, [Online document], 2015, 2/9/2018, Available HTTP: http://isim.olin.edu/labs.shtml.
Template Highlights 11. Make sure to follow the citation formal for all references. See example below for online documents. Online Document: [3] Author name(s), title, [Online document], year month day webpage created, [cited year month day], Available HTTP: full internet address. Example: [3] T. Land, "Web extension to American Psychological Association style (WEAPAS)," [Online document], 1996 Mar 31(Rev 1.2.4), [cited 1996 Sept 14], Available HTTP: http://www.nyu.edu/pages/psychology/weapas.
What s Next in Week 5? Will introduce LAB Module 1 Angle Sensor LECTURE Ohm s law and its applications: Voltage Divider Please bring laptops to all lectures and labs.
Questions?