You are on page 1of 6

Lab1 Report (Please submit in PDF format)

• Resistor (20 points)


1. Pick 5 different resistors from your kit.
2. Record their color bands from the first band to the last band. (e.g. red,
black, red, gold)
3. Record their nominal values and tolerance. (e.g. 2000 ohms, 5%)
4. Measure and record the resistance with Digital Multimeter. (e.g. 2110.5
ohms)
5. Calculate the percent error. (e.g. (2110.5 – 2000)/2000 * 100% = 5.5%)
6. If the percent error within tolerance (yes/no). (e.g. 5.5% > 5%, NO)
Record all the data in a table and include it in your report.
Attach the photo of a resistor that you randomly choose and the corresponding readings from DMM to
your lab repost
• DC power supply unity (30 Points)
− − +
6V + 20V + − -20V

1 COM 2 3

1. If we want a 5V DC inputs. Which nodes should we connect on the breadboard in all cases?
Include all possible combination of nodes and specify how to set up.
2. If we want a 12V DC inputs. Which nodes should we connect on the breadboard in all
cases? Include all possible combination of nodes and specify how to set up.
3. If we want a 24V DC inputs. Which nodes should we connect on the breadboard in all
cases? Include all possible combination of nodes and specify how to set up.
4. If we want a 30V DC inputs. Which nodes should we connect on the breadboard in all
cases? Include all possible combination of nodes and specify how to set up.

For example, if we want a 4V DC inputs, the answer should be: We need node 1 and node COM been
connected on the breadboard. We should set power supply 1 (the one that is controlled by node 1) to 4V.
Please attach photos of DC PSU and DMM readings for the last question to your lab report.
• Breadboard (14 Points)
Suppose the breadboard you have is the same as the one on the right and answer the following
questions.
1. Consider the “+” column (or we call it bus strip) on the left-hand side, are all contacts on that column connected
to each other underneath the surface? How about the “-” column on the left-hand side?
How about the “+” column on the right-hand side?

2. If we denote the contact on row 1 and column a as (1,a), and the contact on row 1 and
column c as (1,c). Are (1,a) and (1,c) connected?

3. We apply the same notation above, are (1,b) and (1,h) connected?

4. Are (1,b) and (3,b) connected?

5. If we denote an arbitrary contact on the “+” column as (~,+), are (~,+) and (5,d)
connected?

• MATLAB (36 points)


1. Assign the following values to X and Y. Plot the Y against X using MATLAB. (You
need to attach the code and
figure) x = 0:pi/100:2*pi;
y = sin(x); plot(x,y)

2. What’re the start point, incremental step and ending point of X?


3. What’s the length of vector x? What’s the length of vector y? Can we plot the figure if they’re at the
different length?
4. Redo the first step, this time the sine wave end at 1s. What’s the length of vector x? (You also need to
attach the code and figure)
5. Redo the first step, this time the interval between two data points changes to 0.01s. What’s the length of
vector x this time? (You also need to attach the code and figure)
Take a screen shoot of your codes and figures. Also, include the answers to those questions.
Here’re some useful link for new MATLAB user: Two ways of
creating vectors in MATLAB
https://www.mathworks.com/help/matlab/ref/colon.html
https://www.mathworks.com/help/matlab/ref/linspace.htm
l Check dimension of an array (vector) in MATLAB
https://www.mathworks.com/help/matlab/ref/length.html
2D plot in MTALAB
https://www.mathworks.com/help/matlab/ref/plot.html

You might also like