0% found this document useful (0 votes)
25 views42 pages

Lab Slides Week 2 F23

Uploaded by

jflores86
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views42 pages

Lab Slides Week 2 F23

Uploaded by

jflores86
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 42

• Ethics

Lab • Analog Discovery


introduction
Week 2 • MATLAB
• Circuit building and
Oscilloscope Measurements
Ethics

eth·ics
/ˈeTHiks/
noun

moral principles that govern a person's behavior or the conducting of an activity.

- Oxford Dictionary http://english.oxforddictionaries.com/ethics


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  Unpublished sources
• Magazines  Class Lectures
• Newspapers  Class Notes/Handouts
• Websites  Speeches
• Plays  Other Student’ Papers
• Movies  Computer Code
• Photos
• Paintings
• Textbooks

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
Table 1. LED Band Gap Data [1]
References.
Material Color Wavelength, Max. Forward Current,
nm 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.


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

7. For the results section, include subheadings


referring back to each procedure in your
module handout.

8. Keep report organized, concise and short.


Template Highlights
10.You can copy and paste 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 format 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.
Digilent supplies
The Analog Discovery from
Digilent 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
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 in some versions.
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 • Powerful computing tool with many built
THIS COURSE in functions and libraries. Widely used in
AS A academia and industry.
GRAPHING
TOOL IN • Built in help and documentation
ORDER TO
MODEL LAB
RESULTS Type:
help <function name> - explains function

doc <function name> - shows full


documentation for function
(with examples usually)
MATLAB
WE WILL USE
MATLAB IN • Enter commands in MATLAB to graph data
THIS COURSE points
AS A ⁻ Enter each data point individually, or
GRAPHING
TOOL IN
⁻ Enter first and last data points, and specify
ORDER TO the increment between these 2 numbers.
MODEL LAB (we will do this today)
RESULTS
• 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
WE WILL USE
MATLAB IN • One way to work in MATLAB is to type
THIS COURSE commands in the command line.
AS A However, these need to be done one by
GRAPHING
TOOL IN
one, making it easy to make mistakes.
ORDER TO • A better way to work in MATLAB is to
MODEL LAB
RESULTS
create a script .m file, which you can
then execute.
• In the command prompt type:
edit EE1105example.m
• This will open the editor. Once you save
the file, you can now run it by typing:
EE1105example
MATLAB: Plotting Data
 V=5; • Assigns the value 5 to the variable ‘V’ (the ‘;’ symbol prevents the value from
showing again on the command window)

 R =100:100:1000; • Sets Resistance values from 100 to 1000 Ohms in increments of 100

 I = V./R; • 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

 plot(R, I, ’b’); • Plots the current (I) as a function of resistance (R) using a blue line

 hold on • 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)’) 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.
 ylabel(‘Current (amps)’)
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
Hands on Example Time
• There will now be four different examples to complete for your
team. To complete them you will need:

• 1 – LED (same color as last week)


• 1 – 200Ω resistor (current limiting resistor from last week)
• 1 – 100Ω resistor
• 1 – 500Ω resistor
• 1 – 1000Ω resistor

When the lab is complete, please return these parts if possible.


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. Red wire is 5V, black wire is 0V
(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.

Compon Voltage Voltage


ent (measurements) (calculations)
5V LED 1.8V
Resistor 3.2V
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.
Exercise 3 - Series Circuit
(a) Build this circuit on one of your
breadboards. Assume R1 is 100, A B
R2 is 500, R3 is 1000, and 5V for
your power supply.
(b) Calculate the total current (Itotal) of
the circuit.
(c) Calculate the voltage drops across
(a) A-B, (b) B-C and (c) C-D. D C
(d) Use CH1+ (orange wire) and CH1-
(orange/white wire) to measure the Voltage Calculated Measured
voltage drops across (a) A-B, (b) B-C Values Values
and (c) C-D. Voltage A-B
Voltage B-C
Ask TAs for help if you do not know Voltage C-D
where to start.
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 Voltage
R1
R2
R3
What’s Next in Week 3?
Will introduce…

LAB
• Module 1 – Power Supply

LECTURE
• Ohm’s law and its applications: Parallel Resistance and
Voltage Divider

Please bring laptops to all labs.


Questions?

You might also like